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

feat: add /:agentId/speak endpoint for text-to-speech functionality #1528

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

HowieDuhzit
Copy link
Contributor

@HowieDuhzit HowieDuhzit commented Dec 28, 2024

  • Implemented a new POST endpoint that allows users to send text to a specified agent.
  • The endpoint processes the message, generates a response, and converts it to speech using the ElevenLabs API.
  • Added error handling for missing text, agent not found, and ElevenLabs API errors.
  • Responses are streamed back as audio in MPEG format.

- Implemented a new POST endpoint that allows users to send text to a specified agent.
- The endpoint processes the message, generates a response, and converts it to speech using the ElevenLabs API.
- Added error handling for missing text, agent not found, and ElevenLabs API errors.
- Responses are streamed back as audio in MPEG format.
@odilitime odilitime changed the base branch from main to develop December 28, 2024 09:30
@odilitime odilitime merged commit d371fee into elizaOS:develop Dec 28, 2024
5 checks passed
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.

2 participants