RealtimeAudioInput

@Serializable
data class RealtimeAudioInput(val format: RealtimeAudioFormat? = null, val noiseReduction: JsonElement? = null, val transcription: JsonElement? = null, val turnDetection: JsonElement? = null)

Incoming audio format, transcription and detection.

Constructors

Link copied to clipboard
constructor(format: RealtimeAudioFormat? = null, noiseReduction: JsonElement? = null, transcription: JsonElement? = null, turnDetection: JsonElement? = null)

Properties

Link copied to clipboard

PCM or G.711 audio format.

Link copied to clipboard
@SerialName(value = "noise_reduction")
val noiseReduction: JsonElement? = null

Noise reduction configuration, or JSON null to disable it.

Link copied to clipboard
val transcription: JsonElement? = null

Transcription configuration.

Link copied to clipboard
@SerialName(value = "turn_detection")
val turnDetection: JsonElement? = null

VAD configuration, or JSON null to disable automatic turn detection.