Language

VoiceAgentInputTranscription Class

Definition

Asynchronous input-audio transcription configuration. Extends the OpenAI Realtime transcription options with the Azure and MAI transcription models, custom speech models, and phrase hints.

public class VoiceAgentInputTranscription : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.VoiceAgentInputTranscription>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.VoiceAgentInputTranscription>
type VoiceAgentInputTranscription = class
    interface IJsonModel<VoiceAgentInputTranscription>
    interface IPersistableModel<VoiceAgentInputTranscription>
Public Class VoiceAgentInputTranscription
Implements IJsonModel(Of VoiceAgentInputTranscription), IPersistableModel(Of VoiceAgentInputTranscription)
Inheritance
VoiceAgentInputTranscription
Implements

Constructors

Name Description
VoiceAgentInputTranscription(VoiceAgentInputTranscriptionModel)

Initializes a new instance of VoiceAgentInputTranscription.

Properties

Name Description
CustomSpeech

Optional customer custom speech deployment configuration, keyed by locale.

Delay

Controls how long the model waits before emitting transcription text. Higher values can improve transcription accuracy at the cost of latency. Only supported with gpt-realtime-whisper in GA Realtime sessions.

Language

The language of the input audio. Supplying the input language in ISO-639-1 (e.g. en) format will improve accuracy and latency.

Model

The transcription model identifier. Configure customer custom speech deployments in custom_speech.

PhraseList

Optional phrase hints that bias recognition toward domain terms.

Prompt

An optional text to guide the model's style or continue a previous audio segment. For whisper-1, the prompt is a list of keywords. For gpt-4o-transcribe models (excluding gpt-4o-transcribe-diarize), the prompt is a free text string, for example "expect words related to technology". Prompt is not supported with gpt-realtime-whisper in GA Realtime sessions.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<VoiceAgentInputTranscription>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<VoiceAgentInputTranscription>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<VoiceAgentInputTranscription>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<VoiceAgentInputTranscription>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<VoiceAgentInputTranscription>.Write(ModelReaderWriterOptions)

Applies to