Speech to speech recognition android studio

huangapple go评论101阅读模式
英文:

Speech to speech recognition android studio

问题

抱歉,这个问题是否结构错误或放错地方。

我想知道在Android Studio的应用程序中是否可能进行语音识别到语音的转换?

例如,用户说“注销”,应用程序会回应说再见并将他们注销?

这是否可能,还是只有文本转语音的功能?

英文:

Apologise if this question is structured wrong or in the wrong place.

I was wondering if it was possible to speech to speech recongition in android studio on an app?

For example the user says logout and the application responds by saying goodbye and logs them out?

Is this possible or just text to speech possible?

答案1

得分: 0

是的,这是可能的。您需要使用一些API将音频转换为文本,您可以使用Google语音转文本API(https://cloud.google.com/speech-to-text),可能还有其他选项,但我只知道这一个。

然后,根据从API获取的文本,您需要执行自己的逻辑,例如,如果您获取到单词“logout”,然后使用文本转语音说“再见”,然后注销用户。

英文:

yes, it is possible. you need to use some API to convert the audio to text, you can use google speech-to-text API (https://cloud.google.com/speech-to-text), there may be others, but I just know this one.

Then depending on the text that you get from the API you need to do your own logic, like for example, if you get the work "logout" you then use text to speach to say "goodbye" and then you logout the user.

huangapple
  • 本文由 发表于 2020年8月2日 07:53:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/63211104.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定