elevenlabs / elevenlabs-python

The official Python API for ElevenLabs Text to Speech.
https://elevenlabs.io/docs/api-reference/getting-started
MIT License
2.23k stars 258 forks source link

Implement basic SDK for convai agents #389

Closed lacop11 closed 1 month ago

lacop11 commented 1 month ago

Early prototype, subject to change based on user feedback.

Takes care of the websocket session and message handling, exposing a simplified audio interface to the client that can be hooked up to the appropriate audio inputs / outputs based on the usecase.

Also implements a basic speaker/microphone interface, via optional dependency on pyaudio.

lacop11 commented 1 month ago

Thanks for reviews, addressed most of the feedback.

lacop11 commented 1 month ago

Moved the code & updated demo code https://gist.github.com/lacop11/c29cc81fea5fe02b3e291bc12b9e9a31