Using watson Speech to Text from a browser with websockets (Live detection)

I want to use IBM Watson Speech to Text from the browser with "Live Detection" ie I don't want to record the audio and send files, instead I want to use the websockets option for continuous speech to text.

I found this git repo https://github.com/watson-developer-cloud/speech-javascript-sdk

But I could not find any actual example on how to use. Can someone show me some code exaple of how to use it (or some other alternative).

I believe the WatsonSpeech.SpeechToText.recognizeMicrophone({token}) is probably what I need and some example of hot to use it would be enough.


Here's an example of it in action

You can find the source code for this on github here

I think the bit you're looking for is in /src/socket.js

链接地址: http://www.djcxy.com/p/34460.html

上一篇: MediaRecorder在Firefox中工作,但不适用于Chrome for Speech

下一篇: 从带有websockets的浏览器使用watson语音到文本(实时检测)