Raspberry Pi, Audio 3.5mm from TTS

412 views
Skip to first unread message

Henrik Kamvåg

unread,
Apr 5, 2018, 3:32:08 AM4/5/18
to Node-RED
Ok, so I fail to play TTS audio from my Raspberry Pi over 3.5mm jack.

Any pointers on how to achieve this? Would realy appreciate this.

Cheers.

Colin Law

unread,
Apr 5, 2018, 3:57:04 AM4/5/18
to node...@googlegroups.com
Are you sure you posted this to the right list?  It doesn't seem to be related to node red.

Colin

--
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/82854e30-2b95-4ee8-9021-29d32d8c3f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Henrik Kamvåg

unread,
Apr 5, 2018, 5:36:46 AM4/5/18
to Node-RED
Well, I run Node Red on a Raspberry Pi and I intend to play the content from a template node directly to the 3.5mm PCM outlet, not through a browser.

 I kind of expected it to be understood I was using Node Red as this forum is a Node Red forum. :/


Den torsdag 5 april 2018 kl. 09:57:04 UTC+2 skrev Colin Law:
Are you sure you posted this to the right list?  It doesn't seem to be related to node red.

Colin
On 5 April 2018 at 08:32, Henrik Kamvåg <kam...@gmail.com> wrote:
Ok, so I fail to play TTS audio from my Raspberry Pi over 3.5mm jack.

Any pointers on how to achieve this? Would realy appreciate this.

Cheers.

--
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.

Dave C-J

unread,
Apr 5, 2018, 5:39:29 AM4/5/18
to node...@googlegroups.com
does it work outside of Node-RED - eg with mpg123 or omxplayer ?

Zenofmud

unread,
Apr 5, 2018, 5:45:43 AM4/5/18
to node...@googlegroups.com
Take a look at node-red-contrib-speakerpi 

Paul

Adrian Brown

unread,
Apr 5, 2018, 5:57:30 AM4/5/18
to node...@googlegroups.com
Also the pi can be configured to use the hdmi or 3.5 audio jack so its similar to Dave’s question does it work outside node red? if not have a look to see the pi is configured to use hdmi or 3.5 jack


For more options, visit https://groups.google.com/d/optout.
--
Regards
Adrian Brown

Henrik Kamvåg

unread,
Apr 5, 2018, 7:03:11 AM4/5/18
to Node-RED
Yes, it works playing mPlayer, no problem there. I just might have found a way to utilize festival for TTS. I'll have to check when I get home.

Dave C-J

unread,
Apr 5, 2018, 7:30:45 AM4/5/18
to node...@googlegroups.com
I seem to recall espeak was marginally easier to use - but YMMV.

Henrik Kamvåg

unread,
Apr 9, 2018, 1:34:29 PM4/9/18
to Node-RED
Ok, so festival wasn't too great in my opinion.

I ended up using google TTS node and omxPlayer. It seem to do the trick.

[{"id":"9f090531.2807d8","type":"subflow","name":"Speak","info":"","in":[{"x":60,"y":60,"wires":[{"id":"53923f55.d40cc"}]}],"out":[]},{"id":"53923f55.d40cc","type":"google-tts","z":"9f090531.2807d8","name":"","inputField":"payload","inputFieldType":"msg","outputField":"payload","outputFieldType":"msg","languageField":"en","languageFieldType":"str","speedField":"1","speedFieldType":"num","x":200,"y":60,"wires":[["42716655.54fc98"]]},{"id":"20999c2f.8bb604","type":"exec","z":"9f090531.2807d8","command":"omxplayer ","addpay":true,"append":"{{payload}}","useSpawn":"true","timer":"5","oldrc":false,"name":"","x":610,"y":60,"wires":[[],[],[]]},{"id":"42716655.54fc98","type":"change","z":"9f090531.2807d8","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"https://","fromt":"str","to":"http://","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":60,"wires":[["20999c2f.8bb604"]]},{"id":"7edd254e.82936c","type":"subflow:9f090531.2807d8","z":"50b5149b.b1bd9c","x":650,"y":880,"wires":[]}]


Reply all
Reply to author
Forward
0 new messages