gentle-dream-14103
09/12/2025, 11:20 AMtall-airline-16756
09/12/2025, 11:20 AMtall-airline-16756
09/12/2025, 11:20 AMprewarm()
function to load important models like VAD (Voice Activity Detection) right when the worker process starts. This helps reduce any delay for that very first response.
• Immediate Voice Greeting: Once your agent is up and running, you can use agent.say()
to warmly say something like, "Hello, how are you doing today?"
• Automated Greeting: You might want to override the on_enter()
lifecycle hook in a custom agent class so your agent automatically greets users as soon as it becomes active.
• Text-Based Greeting: Another nice touch is using stream_text()
to send a friendly text greeting to the room or specific participants.
If you'd like, I’m here to help you implement any of these methods or assist with integrating a particular TTS provider. Just let me know what works best for you!
Sources: examples/data-streams/data_streams.py | agent/main.py | agent-examples/agent_examples/pipeline_agent.py | agent/main.py | Docs::Agents