Configure character audio
Set character voice volume, enable spatial audio, and control NPC playback through the ConvaiAudio facade for scripted mute and unmute.
Character audio output
Field
Default
Description
Audio facade
Microphone control
// Mute/unmute the local microphone
ConvaiManager.ActiveManager.Audio.SetMicMuted(true);
// Toggle and get the new state
bool isMuted = ConvaiManager.ActiveManager.Audio.ToggleMicMuted();
// Start microphone capture manually (if ConnectOnStart is false)
await ConvaiManager.ActiveManager.Audio.StartListeningAsync();Per-character playback control
Audio events
Usage examples
Example 1: Mute toggle UI button
Example 2: Per-character volume in a multi-instructor scene
Next steps
Configure microphoneLast updated
Was this helpful?