Angel Naydenov
Angel Naydenov

Reputation: 75

Google Speech API - numbers represented as strings?

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?

Upvotes: 1

Views: 1038

Answers (2)

alp
alp

Reputation: 712

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?

Upvotes: 1

Mykhailo Karnaukh
Mykhailo Karnaukh

Reputation: 1

Use something like this . Should cover your case of usage.

Upvotes: 0

Related Questions