Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic SDK for convai agents #389

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Implement basic SDK for convai agents #389

merged 3 commits into from
Oct 25, 2024

Conversation

lacop11
Copy link
Member

@lacop11 lacop11 commented Oct 24, 2024

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 lacop11 force-pushed the laco/convai branch 6 times, most recently from c9ed357 to 4b0bdb6 Compare October 24, 2024 12:46
Copy link

@jodik jodik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! thanks a lot Laco

src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
src/elevenlabs/conversation.py Outdated Show resolved Hide resolved
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
Copy link
Member Author

lacop11 commented Oct 25, 2024

Thanks for reviews, addressed most of the feedback.

@lacop11
Copy link
Member Author

lacop11 commented Oct 25, 2024

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

Copy link

@jodik jodik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go

src/elevenlabs/conversational_ai/conversation.py Outdated Show resolved Hide resolved
@lacop11 lacop11 merged commit 9a45a3f into main Oct 25, 2024
5 checks passed
lacop11 added a commit that referenced this pull request Oct 31, 2024
Need to have that generated, should support the features we need for the
manually added stuff in #399 (and #389). But need to merge this first
before being able to test the generated SDK preview.
lacop11 added a commit that referenced this pull request Oct 31, 2024
Need to have that generated, should support the features we need for the
manually added stuff in #399 (and #389). But need to merge this first
before being able to test the generated SDK preview.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants