# Play Audio TTS via 3.5 mm audio out on Raspberry Pi

**URL:** <https://discourse.nodered.org/t/play-audio-tts-via-3-5-mm-audio-out-on-raspberry-pi/36571>\
**Category:** General\
**Created:** [26 November 2020 16:30 UTC](https://discourse.nodered.org/t/play-audio-tts-via-3-5-mm-audio-out-on-raspberry-pi/36571 "2020-11-26T16:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [26 November 2020 17:31 UTC](https://discourse.nodered.org/t/play-audio-tts-via-3-5-mm-audio-out-on-raspberry-pi/36571/2 "2020-11-26T17:31:31Z")

</div>

This can’t work. The audio node you are using is only ment for playing audio in the browser. That’s why it says that the editor webpage has to be open in the Browser in the node info. For tts it uses the browsers inbuilt tts functionality and doesn’t actually do anything on the machine node-red is running on.  
So for local text to speech it will just not work. You will have to use a different solution. You can install [node-red-contrib-pico2wave](https://discourse.nodered.org/t/announce-node-red-contrib-pico2wave/36438) which I just released this week. Just install the node from the palette and [follow the instructions](https://github.com/johanneskropf/node-red-contrib-pico2wave#raspberrypi-os) in the nodes readme to install the Svox pico tts libraries (this is the former tts engine that was used in android) on Raspberry Pi OS.  
Once both the node and the libraries are installed you can generate a tts wav audio file or buffer locally on the machine nodered is running on. Now you can use a node like [node-red-contrib-play-sound](https://flows.nodered.org/node/node-red-contrib-play-sound) or something with more advanced features like [node-red-contrib-sox-utils](https://github.com/johanneskropf/node-red-contrib-sox-utils) (also my node but still in beta so needs to be installed manually) to play the sound locally to the 3.5 mm output.  
Hope this helps.

Johannes

---

_[View the full topic](https://discourse.nodered.org/t/play-audio-tts-via-3-5-mm-audio-out-on-raspberry-pi/36571)._
