Language

ProjectsAgentsModelFactory.VoiceAgentInputTranscription Method

Definition

Settings for transcribing input audio, including the transcription model, Custom Speech deployments, and phrase hints. When model is azure-speech-streaming, transcription is supported for cascaded text-model conversations only (not realtime speech-to-speech models), requires a nonempty language such as en-US (comma-separated locales are supported), and supports custom_speech, phrase_list, and profanity_filter.

public static Azure.AI.Projects.Agents.VoiceAgentInputTranscription VoiceAgentInputTranscription(string language = default, System.Collections.Generic.IEnumerable<string> languages = default, System.Collections.Generic.IEnumerable<string> keywords = default, string prompt = default, Azure.AI.Projects.Agents.VoiceAgentAudioInputConfigTranscriptionDelay? delay = default, Azure.AI.Projects.Agents.VoiceAgentInputTranscriptionModel model = default, System.Collections.Generic.IDictionary<string,string> customSpeech = default, System.Collections.Generic.IEnumerable<string> phraseList = default, Azure.AI.Projects.Agents.VoiceAgentProfanityFilterMode? profanityFilter = default);
static member VoiceAgentInputTranscription : string * seq<string> * seq<string> * string * Nullable<Azure.AI.Projects.Agents.VoiceAgentAudioInputConfigTranscriptionDelay> * Azure.AI.Projects.Agents.VoiceAgentInputTranscriptionModel * System.Collections.Generic.IDictionary<string, string> * seq<string> * Nullable<Azure.AI.Projects.Agents.VoiceAgentProfanityFilterMode> -> Azure.AI.Projects.Agents.VoiceAgentInputTranscription
Public Shared Function VoiceAgentInputTranscription (Optional language As String = Nothing, Optional languages As IEnumerable(Of String) = Nothing, Optional keywords As IEnumerable(Of String) = Nothing, Optional prompt As String = Nothing, Optional delay As Nullable(Of VoiceAgentAudioInputConfigTranscriptionDelay) = Nothing, Optional model As VoiceAgentInputTranscriptionModel = Nothing, Optional customSpeech As IDictionary(Of String, String) = Nothing, Optional phraseList As IEnumerable(Of String) = Nothing, Optional profanityFilter As Nullable(Of VoiceAgentProfanityFilterMode) = Nothing) As VoiceAgentInputTranscription

Parameters

language
String

The language of the input audio. Supplying the input language in ISO-639-1 (e.g. en) format will improve accuracy and latency. Optional for other transcription models; required and must be nonempty when model is azure-speech-streaming (such as en-US; comma-separated locales are supported).

languages
IEnumerable<String>

Possible languages of the input audio, in ISO-639-1 format. Supported by gpt-transcribe and gpt-live-transcribe.

keywords
IEnumerable<String>

Words or phrases to guide transcription of the input audio. Supported by gpt-transcribe and gpt-live-transcribe.

prompt
String

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.

delay
Nullable<VoiceAgentAudioInputConfigTranscriptionDelay>

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.

model
VoiceAgentInputTranscriptionModel

The transcription model identifier. Configure customer custom speech deployments in custom_speech. azure-speech-streaming is for cascaded text-model conversations only (not realtime speech-to-speech models), requires a nonempty language such as en-US (comma-separated locales are supported), and supports custom_speech, phrase_list, and profanity_filter.

customSpeech
IDictionary<String,String>

Optional customer custom speech deployment configuration, keyed by locale.

phraseList
IEnumerable<String>

Optional phrase hints that bias recognition toward domain terms.

profanityFilter
Nullable<VoiceAgentProfanityFilterMode>

Controls how profanity is handled in input transcripts. Supported only with managed Azure Speech (azure-speech and azure-speech-streaming), including Custom Speech. Set this property before the session starts. If omitted, the transcription provider's default applies. You cannot change the mode during a session. Filtering affects transcript events and the text sent to cascaded models. It does not change input audio, voice activity detection, or assistant speech; audio-native models still receive the original audio. Mandatory service masking policies apply even when you select unfiltered.

Returns

A new VoiceAgentInputTranscription instance for mocking.

Applies to