Audio setup

I found this in the documentation:

IF YOU RUN NODE-RED BEHIND DOCKER OR SOMETHING ELSE, BE AWARE:
PORT USED BY THE NODE ARE 1980 (DEFAULT) AND 1400 (FOR SONOS DISCOVER).
PLEASE ALLOW MDNS AND UDP AS WELL

Can I do that with core? Any pointers on how?

Any files stored in the public directory can only be accessed via the following path structure

Coreip:81/public/oh-la/filename

information on opening ports has been explained in both the documentation, and I did a tutorial here on the forums. Either one should be able to walk you through opening any needed port for any application :slight_smile:

https://community.oh-lalabs.com/t/basics-of-opening-binding-ports-to-a-container-on-core/1811?u=april.brandt

Thanks!!!
I made it work. I will share the steps tonight for others that are looking for it :slight_smile:

1 Like

For anyone searching for TTS creation and or sonos annoucements:
First I installed and configured node-red-contrib-tts-ultimate:


(I am using the Azure TTS, you can also use the free google TTS)
After that node-red needs to be restarted. I took the chance to make the changes to the ports:

cd /etc/core
sudo nano oll-node-red.conf

there I added the lines:

PORT_MAP+=("1400:1400")
PORT_MAP+=("1980:1980")

After restart node-red:

sudo oll-node-red --restart

Last configure the sonos part:


In the picture you can also see the subflow which saves the sonos play state, plays the TTS and then returns to whatever was playing.

1 Like