Open clearoak opened 2 years ago
gtts provides a file-like object for playing directly without saving to a file first and playing that. But playsound cannot play file-like objects. (Neither can anything else, so far as I can discover, so this one must be a tall order.)
Edit: I'm on linux.
doubtful as hes palming the audio file off to dll's in windows etc...
https://github.com/TaylorSMarks/playsound/blob/master/playsound.py#L38-L64
Oh my bad it seems like you can actually
gtts provides a file-like object for playing directly without saving to a file first and playing that. But playsound cannot play file-like objects. (Neither can anything else, so far as I can discover, so this one must be a tall order.)
Edit: I'm on linux.