TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
504 stars 118 forks source link

Play from a file like object? #116

Open clearoak opened 2 years ago

clearoak commented 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.

VeNoMouS commented 2 years ago

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

VeNoMouS commented 2 years ago

Oh my bad it seems like you can actually