英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论