Integration of microphone on Node Red dashboard

1,094 views
Skip to first unread message

Pablo Vicente García

unread,
Jun 21, 2017, 5:00:32 AM6/21/17
to Node-RED
Hi all!!

I am developing an IoT project based on Bluemix and Node Red and I wanted to integrate a microphone input on my dashboard.
I think the correct way to do it is by using this node:


which has an input that can be a button in my dashboard.
This is how I configured the node:


The Node Red crashes as soon as I press the button.

Dows anyone have experience with this node so I can ask a few questions?

Thank you in advance.

Glenn

unread,
Jun 21, 2017, 8:07:16 AM6/21/17
to Node-RED
Have you considered using a MQTT service

Mic to MQTT and MQTT to Dashboard?

Nick O'Leary

unread,
Jun 21, 2017, 8:30:10 AM6/21/17
to Node-RED Mailing List
Pablo,

Looking at that node, it expects to access a microphone connected to the computer running node-red. I doubt you have a lead long enough to plug into the bluemix server running your app.

I know this set of nodes: http://flows.nodered.org/node/node-red-contrib-browser-utils : includes one that accesses the microphone; the node has a button in the node-red editor (like the inject node does) which will use the browser's access to your microphone to capture sound when it is clicked.

If you want to do this from a node-red-dashboard page, you'll need to create a custom widget in a ui_template node that uses javascript to access the microphone within the browser. I don't have an example of that to hand - someone else in the community may do.

Nick


On 21 June 2017 at 13:07, Glenn <glo...@gmail.com> wrote:
Have you considered using a MQTT service

Mic to MQTT and MQTT to Dashboard?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/eb3e4636-0578-42e2-aef0-13170718488b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Pablo Vicente García

unread,
Jun 21, 2017, 9:28:10 AM6/21/17
to Node-RED
I haven't. I have recently started in this IoT world so I am not very familiar with the tools. I know what MQTT is but I have never implemented it.
Wouldn't you have a useful example in hand?

Thank you.

Pablo Vicente García

unread,
Jun 21, 2017, 9:31:05 AM6/21/17
to Node-RED
Nick,

That microphone node actually works. I can even send it to a Speech to Text node and get the transcription without a problem.
I will investigate the ui_template node and see if I can get something with it. Anyway, if someone has an example, it would be awesome.

Thank you.


El miércoles, 21 de junio de 2017, 14:30:10 (UTC+2), Nick O'Leary escribió:
Pablo,

Looking at that node, it expects to access a microphone connected to the computer running node-red. I doubt you have a lead long enough to plug into the bluemix server running your app.

I know this set of nodes: http://flows.nodered.org/node/node-red-contrib-browser-utils : includes one that accesses the microphone; the node has a button in the node-red editor (like the inject node does) which will use the browser's access to your microphone to capture sound when it is clicked.

If you want to do this from a node-red-dashboard page, you'll need to create a custom widget in a ui_template node that uses javascript to access the microphone within the browser. I don't have an example of that to hand - someone else in the community may do.

Nick

On 21 June 2017 at 13:07, Glenn <glo...@gmail.com> wrote:
Have you considered using a MQTT service

Mic to MQTT and MQTT to Dashboard?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Message has been deleted

Fatima Zahrah

unread,
Mar 11, 2018, 9:00:37 PM3/11/18
to Node-RED
Hi Pablo,

I was wondering if you managed to integrate the microphone node with the dashboard properly. Did you manage to successfully use the ui_template node to do this or did you find another way?

Dave C-J

unread,
Mar 13, 2018, 5:43:30 PM3/13/18
to node...@googlegroups.com
Hi

I have updated the play audio node to add status to it while it is playing audio - you can now use a status node to monitor the status and detect end of play and then trigger the next...

node-red-cont...@2.3.0


Zenofmud

unread,
Mar 13, 2018, 6:27:13 PM3/13/18
to node...@googlegroups.com
oooh I have to play with this. My skeleton head might be vastly improved!!

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Zenofmud

unread,
Mar 13, 2018, 8:31:58 PM3/13/18
to node...@googlegroups.com
Dave, 

Two issues:
1) node-red-contrib-play-audio is sending out a status when it starts and another one when it finishes.
2) if I add a second copy (N2) in the same tab and have it speak the payload then the original node (N1) only spits out a status at the start of the .wav - this won’t change till you restart NR.
 
if you have two copies of the node on two different tabs, they both seem to work - the TTL one sends the status when it is finished, but the .wav one still sends out two status’s - at start and end.

Paul

On Mar 13, 2018, at 5:43 PM, Dave C-J <dce...@gmail.com> wrote:

node-red-cont...@2.3.0

Zenofmud

unread,
Mar 13, 2018, 8:35:21 PM3/13/18
to node...@googlegroups.com
should have mentioned I did an apt-get update/upgrade and an update of NR before testing.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Reply all
Reply to author
Forward
0 new messages