0

When using Android SpeechRecognizer I can see that it also uses my contacts as source for words to resolve some of what been said and translate it into text.

Is there an api to supply a bank of words for the speech recognition engine, instead of adding contacts which is not reasonable...

TacB0sS
  • 10,106
  • 12
  • 75
  • 118
  • 1
    Do you mean specifically for the Android Speech API (when Google is set to the default) or for an alternative speech API you could use? – brandall Aug 07 '16 at 16:10
  • Specifically for the android SpeechRecognizer api... a list of sentances that it would try to recover the speech from, like it is doing with the contacts names – TacB0sS Aug 09 '16 at 05:21
  • Kaarel's answer is technically correct - there are no additional parameters in the native API. There are external RESTFul services you can use instead though, to resolve the speech and use a machine learning back-end to 'train' your model to identify contact information. – brandall Aug 09 '16 at 11:33

1 Answers1

2

Let's be precise with the names. There is no "Google SpeechRecognizer" nor "google api". There is Android's RecognitionService (https://developer.android.com/reference/android/speech/RecognitionService.html). This is an interface, which comes with some pre-defined constants and callbacks, none of which offer what you want. The "Google App" does implement this interface however, and might extend it in some ways but these extensions are not publicly documented as far as I know.

Directly unrelated to Android, there is also Google's Cloud Speech API (https://cloud.google.com/speech/) which offers something towards the feature that you want.

Kaarel
  • 10,554
  • 4
  • 56
  • 78