Skip to main content
For Cloud, set OPENSPLINE_API_KEY. For a local service, leave it unset or set OPENSPLINE_URL.
Play a WAV or MP3 file:
For callback based audio:
send_audio() defaults to mono PCM16. Use encoding="pcm_f32le" for Float32 or encoding="mp3" for MP3 chunks. stream() ends the turn and waits for playback. Call await avatar.wait_for_viewer() if your agent should wait until someone opens the player. Runnable Python example · Configuration · Backgrounds