RageAgainstThePixel / ElevenLabs-DotNet

A Non-Official ElevenLabs RESTful API Client for dotnet
https://elevenlabs.io/?from=partnerbrown9849
MIT License
53 stars 18 forks source link

Add support for TextToSpeech WebSockets #46

Open StephenHodgson opened 3 months ago

StephenHodgson commented 3 months ago

Support websockets for text to speech

ElevenLabs-DotNet-Proxy should also support forwarding websockets connections

ocinon commented 1 month ago

@StephenHodgson did you start implementing WebSockets by any chance? Also, I saw the speech-to-speech model in your 3.0.0 draft, but there is no support yet, correct?

StephenHodgson commented 1 month ago

Yes I was already doing this for the unity package and was considering porting it once done

ocinon commented 1 month ago

@StephenHodgson I couldn't find any previous WebSocket implementation in your Unity repo. As I needed it, I implemented it for the DotNet version here: ocinon/ElevenLabs-DotNet@93457e124ed0397bf3532c6fd2b62c9188406d41

It extends the client slightly and tries to pick up the same patterns the repo used before. It lacks proxy support and tests. If you have any notes, let me know.

StephenHodgson commented 1 month ago

@StephenHodgson I couldn't find any previous WebSocket implementation in your Unity repo. As I needed it, I implemented it for the DotNet version here: ocinon/ElevenLabs-DotNet@93457e1

It extends the client slightly and tries to pick up the same patterns the repo used before. It lacks proxy support and tests. If you have any notes, let me know.

Feel free to open a pull request!

Only feedback is to rebase on the development branch