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

Add a WebRTC Audio Streaming Example in Python #882

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

freddyaboulton
Copy link

This PR adds a new tutorial demonstrating how to use WebRTC for real-time audio streaming with ElevenLabs' speech-to-text and text-to-speech capabilities. The tutorial shows how to build a simple echo application that listens to user audio input and repeats it back in a different voice.

The application is entirely built in python and abstracts the underlying asyncio webrtc logic so it should be very easy for python developers and newcomers to get started.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added a comprehensive WebRTC tutorial demonstrating real-time audio streaming with ElevenLabs' speech-to-text and text-to-speech services, featuring a Python-based echo application.

  • Added audio_to_bytes() helper function reference is missing in /fern/docs/pages/cookbooks/legacy/text-to-speech/webrtc.mdx
  • Missing error handling section for WebRTC connection failures and audio processing errors
  • Video demo source URL uses a user-specific GitHub attachment path that should be updated to a permanent CDN link
  • Consider adding a note about WebRTC browser compatibility and requirements
  • Should include memory/resource management best practices for long-running WebRTC connections

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

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.

1 participant