how to solve this error? Is that api key and url wrong? I can't record my voice .... i using mic from earphone.....
Welcome to the forum Ling.
In order for anyone to help you, we wil need to know the name of the speech to text node ou are using. What is the name of the node you are using? It will be called something like 'node-red-contrib-????
It would also be helpful to provide
1 - the version of NR and node.js (look at node-red startup log)
2 - platform and os version you are using
3 - version of the dashboard (if related - also found in startup log)
Hi @lingzhongli
given the error is specific to the Watson Speech To Text node, then it may be best to ask its maintainer, @chughts for his input on it.
I doubt anyone else here will be able to help given it is an internal error of that node.
okey, thank you
It looks like the mic node is sending a stream, in which case you will need to set the STT node to streaming mode. if you don't then it is expecting either a buffer or a url. If you are running in streaming mode then you will also need to signal the start and end of the stream.
thank you, it work..but i want ask the check box i tick is correct or not? got anything need to tick or untick?
And why it no show the output?? i already tick the "Place output on msg.payload"
and listening for scoket data mean what?? is that still have error?
That means that the node has connected to the STT service via web sockets and is waiting for output from it. If you did not switch off interim results in the start packet then you should see interim results being output. As I said in the earlier post you do need to signal to the node the start and end of the stream.
Try unchecking Mute in Streaming Mode
to allow the web socket connection / disconnection events to appear in the debug panel.
unchecking Mute in Streaming Mode
already...but it no working... and how to end of the stream ?? how i should setting in debug panel?? can debug panel set in stream??
And start of the stream is mean like above pic?? set
output payload type
as stream , right?
This is a sample flow that I use for regression testing of the streaming functionality of the STT Node. The Start action sends the start packet and initialises the stream. The End action sends the end packet.
[{"id":"94ab69fb.22f7c8","type":"comment","z":"ca14c9b0.e20598","name":"STT Stream Simulation","info":"","x":158.5,"y":285,"wires":[]},{"id":"661b213a.cbd1d","type":"inject","z":"ca14c9b0.e20598","name":"Start and Audio","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":164,"y":326,"wires":[["f1b15206.1115b","cea2184b.2caf48"]]},{"id":"f1b15206.1115b","type":"http request","z":"ca14c9b0.e20598","name":"","method":"GET","ret":"bin","url":"https://raw.githubusercontent.com/watson-developer-cloud/speech-to-text-nodejs/master/public/audio/english2.g712.wav","tls":"","x":370,"y":300,"wires":[["886d3240.05a8a","e6739c9e.7d35d","80e9ca6a.aa3d78"]]},{"id":"886d3240.05a8a","type":"watson-speech-to-text","z":"ca14c9b0.e20598","name":"","alternatives":1,"speakerlabels":false,"smartformatting":false,"lang":"en-US","langhidden":"en-US","langcustom":"NoCustomisationSetting","langcustomhidden":"NoCustomisationSetting","band":"NarrowbandModel","bandhidden":"NarrowbandModel","password":"","apikey":"","payload-response":true,"streaming-mode":true,"streaming-mute":true,"auto-connect":true,"discard-listening":true,"disable-precheck":false,"service-endpoint":"https://stream.watsonplatform.net/speech-to-text/api","x":598,"y":374,"wires":[["212f2eb2.c5b552"]]},{"id":"212f2eb2.c5b552","type":"debug","z":"ca14c9b0.e20598","name":"Results","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":758,"y":376,"wires":[]},{"id":"e6739c9e.7d35d","type":"function","z":"ca14c9b0.e20598","name":"Bracket Stream","func":"tmpmsg = {\n payload : '{\"action\": \"start\",\"content-type\": \"audio/wav\", \"interim_results\": true}'\n};\n\nnode.send(tmpmsg); \nnode.send(msg);\n\n\n","outputs":1,"noerr":0,"x":560,"y":280,"wires":[["886d3240.05a8a","63adc494.79c7bc"]]},{"id":"a2316acb.394578","type":"inject","z":"ca14c9b0.e20598","name":"End","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":136,"y":433,"wires":[["88720198.d9398"]]},{"id":"88720198.d9398","type":"function","z":"ca14c9b0.e20598","name":"Signal End","func":"msg.payload = '{ \"action\": \"stop\"}';\nreturn msg;\n\n","outputs":1,"noerr":0,"x":384,"y":429,"wires":[["886d3240.05a8a"]]},{"id":"63adc494.79c7bc","type":"debug","z":"ca14c9b0.e20598","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":778,"y":320,"wires":[]},{"id":"cea2184b.2caf48","type":"debug","z":"ca14c9b0.e20598","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":148,"y":373,"wires":[]},{"id":"80e9ca6a.aa3d78","type":"debug","z":"ca14c9b0.e20598","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":360,"y":378,"wires":[]}]
how can i run this flow??
Are you not able to import it?
If you are having difficulty making use of the streaming mic node, there are alternative microphone node-red contributions eg. node-red-contrib-browser-utils.
it still have listening for socket data
....
it like no show the output at result node...
or is the problem of my credentials IBM?
Your screen shot appears to show the streaming and transcription working. If you expand the output from the results
debug tab, you should see the transcription, something like:
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.