Android: Speech Recognition without using google server
Asked Answered
C

5

58

I want to develop an Speech recognizer in android, which should work in offline. As the android's built-in speech recognizer uses google server which needs internet, i want an alternative which works in the absence of internet.

Please suggest me some way to achieve the above feature.

Chloromycetin answered 9/12, 2010 at 7:57 Comment(3)
Please use SO as per the regulations. This is a very clean place, please help to keep it that way.Nunatak
Has Google made this easy using SpeechRecognizer? androidpolice.com/2013/02/15/…Permission
#35389220Hysterectomy
O
54

We used to recommend pocketsphinx, but now more advanced technology based on Kaldi toolkit is available.

The demo is here: Vosk API, you can simply load it in Android Studio and run. Full disclosure: I am the primary author of Vosk.

It supports speech recognition in 7 major languages - English, Chinese, Spanish, Portuguese, German, French and Russian.

Oarlock answered 9/12, 2010 at 9:41 Comment(4)
@Swathi EP did you have any success?Pericope
Yes, he did. See this thread sourceforge.net/projects/cmusphinx/forums/forum/5471/topic/…Oarlock
Hi Tom, You want to know the steps to run android pocketsphinx demo project refer: swathiep.blogspot.com/2011/02/…Chloromycetin
Why it is closed as not a real question by Kev♦ ?? This is not only a real question, it's a research problem.Scalene
T
0

If the speech recognizer has limited vocabulary (as in a simple voice user interface) and is limited few samples - it maybe possible. Applications such as Transcription is not a likely task to be performed on Android (in offline mode). Also DSP is required for Voice Recognition ... A limited vocabulary and limited to very few samples might be your best bet.

Tyrant answered 9/12, 2010 at 8:10 Comment(2)
yes, i need only limited vocabulary. My requirement is to have voice commands to trigger applications.Chloromycetin
I'd recommend seeing if you can figure out (academic papers maybe?) how "dumbphones" do that.Berserk
C
0

If you really want to invest time and manpower for your goal, look at the Java-Project Java Speech API 2.0 (JSR 113).

It is used on "normal" mobile phones for voice commands and works offline. Unfortunately, the project is discontinued.

Courlan answered 9/12, 2010 at 9:19 Comment(0)
V
0

You can download Google voices for later use. From you mobile -> Setting -> “Language and Input” -> "Voice Search" -> "Download offline speech recognition" -> Choose the language pack .

Or you can use other programs, such as Dragon Mobile Assistant https://play.google.com/store/apps/details?id=com.nuance.balerion&hl=en

Valonia answered 12/10, 2014 at 1:1 Comment(7)
Seems to be incompatible with nexus 5? What about nuancemobilelife.com/apps ?Fraley
And there is no "Download offline speech recognition" on my kit katFraley
There is no "Download offline speech recognition" on my Jelly Bean (4.1.2) either. Nexus S. Looks like a whimsical feature.Perk
kizeo.com/… But you can find it in slightly different places depending on your exact version. It's available even on MIUI V5Valonia
@Valonia Thank you. I did arrive at the same exact screen shown in the link you provided but instead of the 3 options ("Choose input languages", "Block offensive words" and "Offline speech recognition"), I only have 2 options on my phone (No "Offline speech recognition"). Weird.Perk
Maybe depends on your firmware. I'm sorry I can't help you more. Perhaps you can download it in some other way.Valonia
Only one android version, which I don't remember, was blessed with this feature.Tunnell
P
-3

You're not going to be happy with this workaround but here goes: Record the speech & store it for later. When an internet connection is available, connect to the internet, playback the recorded speech and convert it to text.

Hey, it's the easiest way I can think of and might work for some applications, like dictation and memos.

Pyrimidine answered 8/4, 2012 at 20:58 Comment(1)
So "offline" means "connect to the internet later"?!?!?Joli

© 2022 - 2024 — McMap. All rights reserved.