I wrote a python script that generates text-to-speech and crates an output.mp3 that has the audio on it. But no matter what I do I can not get the file to be played via the command line. For context, I'm trying to script in a custom voice for my home assistant.
I can get it to open a VLC window and play it but thats not what I want, I want it to play the sound through the console. I have tried a few different Python modules but keep getting streaming issues on the mp3.
Has anyone gotten this working, so that they can shed some light or have an example of how I can implement it in my script??
