I am creating a chatbot and I want to be able to talk to the chatbot through the dashboard.
I have tried the microphone node with the utils package and then using STT my bot understand the message perfectly but I need to start the recording from the node red canvas... I want to be able to click a button on my dashboard to talk to the bot.
You didn't say which microphone node you are using, so I went looking for what is available in the flows library... it looks like the node-red-contrib-browser-utils provides a dashboard widget the start/stop button built-in:
Microphone
The browser starts recording after the button next to the node is clicked and stops it when the button is clicked again. The node outputs it as a WAV buffer.
I am using the node-red-contrib-browser-utils package for the microphone.
The problem is I need to start recording from the node red editor. I want to do it from the dashboard.
This flow works, but I want to add a button on my dashboard to start and stop the recording.
If you look at node-red-contrib-mic you will see you can send an action to it to start/stop recording. So you could have a button on the dashboard connected to a chage node that would set the action which is connected to the node.
Let's clarify where these various nodes capture their audio.
node-red-contrib-mic can be used to access the microphone on the device running Node-RED - the audio capture happens in the runtime. That isn't going to work when running in the cloud.
node-red-contrib-browser-utils provides a node that lets you capture audio from the microphone on the device running the browser you have opened the node-red editor in.
Neither of these nodes can be used to capture audio from a node-red-dashboard ui. To do that, you'd need to use a ui_template node to insert some custom javascript that can be used to do the audio capture when triggered. I'm sure someone must have done that - but I can't find an example at the moment.
Bump on this topic. I am at a hackathon this weekend and the team wants to build a Node-RED Dashboard which records audio in the browser using the microphone. They don't have the programming skills to implement what Nick outlined. Would be helpful to have this capability.
Nick did some great work on node-red-node-ui-microphone so you can now have a Node-RED Dashboard that records speech. It's straightforward to wire the new microphone node to the Watson Speech to Text node.
I have been trying to get node-red-node-ui-microphone for sometime now today, but have not been able to get it to work. As in Microphone node is not being recognized by the dashboard and default dashboard page shows up on /ui if deployed with just the microphone node on editor.
Are you using the latest version of node-red-dashboard (2.20.0 I think)? If not then try updating to that. Otherwise stop and restart node red in a terminal and copy/paste the log here (after deploying the node). Depending on your installation the easiest way to do that is to run node-red-stop node-red-start
If you are accessing the dashboard from any machine other than the one running it than the ui mic will only work if you enable https for the dashboard.
If on an iphone you will also have to go into the further safari settings in the settings app and enable the media-recorder in the experimental section.
Just two things to check depending on your set up.
so are you saying that the dashboard does not showup when running node-red on the IBM cloud server? Or are you saying you can't get the microphone to work when running on the IBM cloud server?