Interface SpeechToTextConfig.GeminiAsrConfigOrBuilder (4.105.0)

public static interface SpeechToTextConfig.GeminiAsrConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndOfSpeechSensitivity()

public abstract SpeechToTextConfig.GeminiAsrConfig.EndSensitivity getEndOfSpeechSensitivity()

Optional. End of speech sensitivity.

.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeechToTextConfig.GeminiAsrConfig.EndSensitivity

The endOfSpeechSensitivity.

getEndOfSpeechSensitivityValue()

public abstract int getEndOfSpeechSensitivityValue()

Optional. End of speech sensitivity.

.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.EndSensitivity end_of_speech_sensitivity = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for endOfSpeechSensitivity.

getModelId()

public abstract String getModelId()

Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The modelId.

getModelIdBytes()

public abstract ByteString getModelIdBytes()

Optional. The Gemini ASR model ID used for transcription. This value overrides the default model ID configured on the server. Example: "gemini-3-flash-lite-asr-preview"

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for modelId.

getPrefixPaddingMs()

public abstract int getPrefixPaddingMs()

Optional. The required duration of detected speech before start-of-speech is committed.

int32 prefix_padding_ms = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The prefixPaddingMs.

getSilenceDurationMs()

public abstract int getSilenceDurationMs()

Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.

int32 silence_duration_ms = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The silenceDurationMs.

getStartOfSpeechSensitivity()

public abstract SpeechToTextConfig.GeminiAsrConfig.StartSensitivity getStartOfSpeechSensitivity()

Optional. Start of speech sensitivity.

.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeechToTextConfig.GeminiAsrConfig.StartSensitivity

The startOfSpeechSensitivity.

getStartOfSpeechSensitivityValue()

public abstract int getStartOfSpeechSensitivityValue()

Optional. Start of speech sensitivity.

.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig.StartSensitivity start_of_speech_sensitivity = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for startOfSpeechSensitivity.