Is there a way to force Google Speech api to return only words as response?

前端 未结 2 795
天命终不由人
天命终不由人 2021-02-05 10:20

I am using Googles this api :-

https://www.google.com/speech-api/v2/recognize?output=json&lang=\"+ language_code+\"&key=\"My key\"

2条回答
  •  死守一世寂寞
    2021-02-05 10:44

    You may have to convert numbers (not digits) to words by yourself. As there is some logic in most languages (e.g. English, German), you can do this with an algorithmic approach.

    See How to convert number to words in java

提交回复
热议问题