Closed xiaoqiangclub closed 8 months ago
that would be amazing
You could use Communicate's steam()
to get the audio data as it arrives, afterwards you'll have to figure out how to play it on the fly.
My tip is to use a library to convert the MP3 stream to PCM and have a library that can take PCM data and play it (edit: but basically you can't do this out of the box).
Is there a way to not save the speech file, but let the program read the speech directly in the Python code? Thank you!