I have a simple code that I want to execute that links my raspberry pi4 to a bluetooth speaker. It works as it is, but when I link it to a a subprocess call, there is no sound.
#!/usr/bin/python3
from pydub import AudioSegment
from pydub.playback import play
sound = AudioSegment.from_wav('mywavfile.wav')
play(sound)
The stdlog does not show any errors and its as if it played normally but no sound came out.
Not sure what is wrong.