Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class GeminiAsrConfig.
Configuration for using Gemini ASR models served via Vertex AI. This message is used to override the default Gemini ASR model or provide additional advanced parameters.
Generated from protobuf message google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig
Namespace
Google \ Cloud \ Dialogflow \ V2 \ SpeechToTextConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ model_id |
string
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" |
↳ silence_duration_ms |
int
Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed. |
↳ prefix_padding_ms |
int
Optional. The required duration of detected speech before start-of-speech is committed. |
↳ start_of_speech_sensitivity |
int
Optional. Start of speech sensitivity. |
↳ end_of_speech_sensitivity |
int
Optional. End of speech sensitivity. |
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"
| Returns | |
|---|---|
| Type | Description |
string |
|
setModelId
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"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSilenceDurationMs
Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSilenceDurationMs
Optional. The required duration of detected silence (or non-speech) before end-of-speech is committed.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrefixPaddingMs
Optional. The required duration of detected speech before start-of-speech is committed.
| Returns | |
|---|---|
| Type | Description |
int |
|
setPrefixPaddingMs
Optional. The required duration of detected speech before start-of-speech is committed.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStartOfSpeechSensitivity
Optional. Start of speech sensitivity.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type StartSensitivity. |
setStartOfSpeechSensitivity
Optional. Start of speech sensitivity.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type StartSensitivity. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEndOfSpeechSensitivity
Optional. End of speech sensitivity.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type EndSensitivity. |
setEndOfSpeechSensitivity
Optional. End of speech sensitivity.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type EndSensitivity. |
| Returns | |
|---|---|
| Type | Description |
$this |
|