lugia19 / elevenlabslib

Full python wrapper for the elevenlabs API.
MIT License
150 stars 27 forks source link

How to return the stream in an endpoint? #22

Closed mcantillon21 closed 9 months ago

mcantillon21 commented 9 months ago

Let's say instead of playing the stream on one of the sound devices, I want to return the stream as a response to my endpoint. How do I do that?

lugia19 commented 9 months ago

What do you mean by 'the stream'? The audio stream? Websockets?

lugia19 commented 9 months ago

sounddevice pretty much requires a device to output to by definition, in order to construct the outputstream - you're probably gonna have to figure out some way to achieve what you want to do.

If you can explain what you're trying to make, I can probably help.