12

Can I improve Google speech API recognition by give him a words list (in my case the request of user is very predictable) to make recognition more accurate?

Dharman
  • 30,962
  • 25
  • 85
  • 135
Rnd_d
  • 557
  • 2
  • 7
  • 20
  • Related to https://stackoverflow.com/questions/8683772/is-there-a-way-to-use-a-grammar-with-the-html-5-speech-input-api – Nikolay Shmyrev Jun 18 '17 at 11:05
  • Has google added support for grammars since the question was answered? – Deeps Aug 14 '19 at 11:51
  • @Deeps to some extent... take a look at this: https://cloud.google.com/speech-to-text/docs/context-strength . You can now provide hints to provide sentence context. – Phillip Aug 20 '19 at 18:18
  • 2
    @PhillipS unless I am missing something this is additional functionality for Google Cloud Speech API, not for the Google implementation of the Web Speech API – Deeps Aug 21 '19 at 08:56

3 Answers3

7

Correct answer is: no, you can't. =(

Rnd_d
  • 557
  • 2
  • 7
  • 20
6

I can't speak for Chrome, but in Android they are quite clear that you cannot provide a grammar. In Android speech recognition you are limited to a choice of two models: "free form" and "web search".

See Android: Speech Recognition Append Dictionary?

Community
  • 1
  • 1
Michael Levy
  • 13,097
  • 15
  • 66
  • 100
1

For Google Cloud Speech API (Not Web Speech API) but some may find this useful:

Although currently in beta, Google has released new capability which allows you to

include a list of phrases to act as "hints" to Cloud Speech-to-Text. Providing these hints, a technique called speech adaptation, helps Speech-to-Text API to recognize the specified phrases from your audio data."

See https://cloud.google.com/speech-to-text/docs/context-strength

Phillip
  • 631
  • 6
  • 15