使用带有 websockets 的浏览器中的 watson Speech to Text(实时检测)
Using watson Speech to Text from a browser with websockets (Live detection)
我想使用 IBM Watson Speech to Text 从浏览器 "Live Detection" 即我不想录制音频和发送文件,相反我想使用 websockets 选项来连续语音到文本.
我找到了这个 git 存储库
https://github.com/watson-developer-cloud/speech-javascript-sdk
但是我找不到任何关于如何使用的实际例子。谁能告诉我一些如何使用它(或其他替代方法)的代码示例。
我相信 WatsonSpeech.SpeechToText.recognizeMicrophone({token})
可能是我需要的,使用它的一些热门示例就足够了。
Here's an example of it in action
您可以在 github here
上找到源代码
我想你要找的是 /src/socket.js
我想使用 IBM Watson Speech to Text 从浏览器 "Live Detection" 即我不想录制音频和发送文件,相反我想使用 websockets 选项来连续语音到文本.
我找到了这个 git 存储库 https://github.com/watson-developer-cloud/speech-javascript-sdk
但是我找不到任何关于如何使用的实际例子。谁能告诉我一些如何使用它(或其他替代方法)的代码示例。
我相信 WatsonSpeech.SpeechToText.recognizeMicrophone({token})
可能是我需要的,使用它的一些热门示例就足够了。
Here's an example of it in action
您可以在 github here
上找到源代码我想你要找的是 /src/socket.js