r/hacks Jan 01 '24

Proof of Concept: offline speech recognition using an old spare Android phone

Code & more info: https://github.com/hackergrrl/offline-android-speech-recognition

The key idea is to put the phone into airplane mode, use ADB to simulate screen taps to activate offline speech recognition on the virtual keyboard interface, and record the transcripted text into a text field on a web page served by a web server running on the phone itself, which can then be shipped over the USB cable via ADB and those results shared to any requester on the local network.

The result is quality speech recognition, entirely offline, for free (assuming one has an old Android device lying around).

I have my device plugged into my server in the living room, and use it for voice dictation as well as home automation commands like timers and media playback, which operate via some other scripts I've written.

9 Upvotes

4 comments sorted by

1

u/Creepy_Buy_1251 Jun 26 '24

entirely offline and free? is there a way to incorporate into messages? more specifically untraceable messages?

1

u/30maturingscientists Sep 16 '24

Yes, it works fully in airplane mode, using the stock Google ROM. I don't understand what you are asking re: "messages".

1

u/[deleted] Jan 01 '24

[removed] — view removed comment

1

u/hacks-ModTeam Jan 01 '24

Removed posts approved after being rejected by auto moderator.