# Bluetooth audio - mpg123

**URL:** <https://discourse.nodered.org/t/bluetooth-audio-mpg123/71527>\
**Category:** General\
**Created:** [1 December 2022 01:12 UTC](https://discourse.nodered.org/t/bluetooth-audio-mpg123/71527 "2022-12-01T01:12:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lights1971](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@Lights1971](https://discourse.nodered.org/u/Lights1971)\
**Post date:** [1 December 2022 01:12 UTC](https://discourse.nodered.org/t/bluetooth-audio-mpg123/71527/1 "2022-12-01T01:12:56Z")

</div>

I'm hoping someone out there might have experienced this issue and managed to resolve it. I am running my nodered instance on a raspberry pi with Raspbian Bullseye.

I have a flow that plays a mp3 file using the mpg123 command. It works fine with a speaker mpg123 /home/reddwarf/christmas/1.mp3  
connected to the 3.5mm audio jack on the pi.

I have now changed to using a bluetooth speaker, I have paired and connected with the speaker using bluetoothctl via ssh as it's running headless.

When issue the command :-

"mpg123 /home/reddwarf/christmas/1.mp3"

in the terminal the sound is played via the bluetooth speaker.

In nodered using the same command in an exec node the command runs and completes as without errors, but no sound is sent to the bluetooth speaker, I haven't put the original wired speaker back on yet, but I suspect the sound is still been routed to the wired speaker.

Has anybody got any suggestions on routing the sound to bluetooth speaker instead of the wired speaker?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 January 2023 01:13 UTC](https://discourse.nodered.org/t/bluetooth-audio-mpg123/71527/2 "2023-01-30T01:13:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
