I am using Google Speech API and whenever in the utterance there is a number spoken the API returns it as a string of digits and not letters. Say the utterance is 'He is seventeen years old.' - The API would return 'He is 17 years old.' Now that is useful most of the cases, but in my case I need the returned string to be of letters not digits - 'He is seventeen years old.' Is there any option to return the recognized utterance with letters?
Asked
Active
Viewed 793 times
2 Answers
1
Currently there's a way with Phrase hints. The API will offer the option to transcribe numbers literally in the future, but there is no timeline for this feature yet.
this question is quite a duplicate:
Google-speech-api transcribing spoken numbers incorrectly
Is there a way to force Google Speech api to return only words as response?

alp
- 642
- 5
- 13
-
1Thank you for the answer! I will be waiting for this option. For now the Phrase hint workaround doesn't seem suitable for my project as I need to be working with a lot of languages and any kind of number so the work needed seems tremendous as I am not fluent in most of the languages. – Angel Naydenov Jan 31 '19 at 13:09
0
Use something like this . Should cover your case of usage.
-
I need it to be working not only for English but for more languages. I did search for libraries but didn't find anything suitable. – Angel Naydenov Jan 18 '19 at 15:08