Unlock the Future of AI: Real-Time Voice & Video

Abstract: 

Audio and Video Streaming are revolutionizing AI applications right now.
ChatGPT and Gemini can listen and respond in real-time audio conversations.
The latest Text-to-Speech models and APIs make it easier than ever to generate lifelike audio.

But here's the challenge: building real-time voice and video applications in Python has been painfully complex... until now.

**Enter FastRTC: Your Gateway to Voice & Video AI**

In this hands-on workshop, you'll build a voice assistant that can listen, speak, and understand you in real-time - with just a fraction of the code you'd expect. We'll demystify WebRTC and Websockets and show you how to create Siri-like experiences in pure Python.

Session Outline:

## Introduction to FastRTC (10 min)
-
- What is FastRTC? The Real-Time Communication Library for Python
- Key features: WebRTC support, automatic voice detection, built-in Gradio UI, Free telephone integration
- Installation: `pip install """"fastrtc[vad, stt, tts]""""`

## Core Concepts (10 min)
- The `Stream` class - the foundation of FastRTC
- Deployment options:
- `.ui.launch()` - Built-in Gradio UI for testing and sharing
- `.fastphone()` - Get a temporary phone number
- `.mount(app)` - Integrate with FastAPI

## Audio and VideoStreaming Deep Dive (15 min)
- `ReplyOnPause` - Automatic voice detection and turn-taking
- Handling interruptions
- Customizing voice detection parameters
- `ReplyOnStopWords` - Trigger on specific phrases (like """"Hey Siri"""")
- Speech-to-Text and Text-to-Speech capabilities
- Creating custom `StreamHandler` and `AsyncStreamHandler`

## Building Real Applications (25 min)
- Hands-on coding session
- Example projects from the cookbook:
- LLM Voice Chat - Talk to an AI with voice
- Audio-Video Chat - Stream both webcam and audio to AI
- Hello Computer - Create a """"siri-like"""" voice assistant in 100 lines of python code

## Q&A and Workshop (10 min)

Learning Objectives and Tools:

**Why Join?**
- Build voice and video AI applications in minutes instead of weeks
- Learn how to create Siri-like experiences with just ~100 lines of code
- Discover how to integrate real-time communication with popular AI models
- Get hands-on experience with cutting-edge real-time communication technology
- Take home working code examples you can immediately use in your projects

Background Knowledge:

What You'll Need:
- Python 3.8+
- Basic Python knowledge
- Laptop with microphone (webcam optional for video examples)

Bio: 

Freddy Boulton is an open source engineer at Hugging Face where he maintains Gradio - a Python framework for building production-grade web applications for AI models - and FastRTC - an open source package for streaming audio and video over WebRTC or websockets, entirely in Python.

Open Data Science

 

 

 

Open Data Science
One Broadway
Cambridge, MA 02142
info@odsc.com

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google