Table of Contents

Class TurnDetection

Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to null to turn off, in which case the client must manually trigger model response.

Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.

Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability.
For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.

public class TurnDetection
Inheritance
object
TurnDetection

Properties

SemanticVad

Server-side semantic turn detection which uses a model to determine when the user has finished speaking.

public SemanticVad SemanticVad { get; set; }

Property Value

SemanticVad

ServerVad

Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence.

public ServerVad ServerVad { get; set; }

Property Value

ServerVad

Type

Required. Type of turn detection, server_vad to turn on simple Server VAD.

public string Type { get; set; }

Property Value

string