Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
},
"exclude_types_from_init_exports": true
},
"originGitCommit": "37ba641a90aa4496eb97146f05555706aaf92670"
"originGitCommit": "3fdb45ab45802742325afca544fdc22f5ae58db8"
}
12 changes: 9 additions & 3 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion src/agora_agent/types/gemini_asr_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .gemini_asr_params_mode import GeminiAsrParamsMode


class GeminiAsrParams(UncheckedBaseModel):
Expand Down Expand Up @@ -32,9 +33,29 @@ class GeminiAsrParams(UncheckedBaseModel):
The language code for speech recognition. This takes precedence over the top-level `asr.language` value.
"""

language_hints: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
"""
Candidate language codes for transcription. When non-empty, these take precedence over language.
"""

custom_vocabulary: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
"""
Words and phrases used to bias transcription. A non-empty custom vocabulary cannot be combined with word_timestamp.
"""

mode: typing.Optional[GeminiAsrParamsMode] = pydantic.Field(default=None)
"""
Transcription output mode. SMART removes disfluencies and applies formatting; VERBATIM preserves literal speech. When omitted, the service defaults to VERBATIM. SMART cannot be combined with word_timestamp or diarization.
"""

word_timestamp: typing.Optional[bool] = pydantic.Field(default=None)
"""
Whether to include word-level timestamps in the transcription results.
Whether to include word-level timestamps in the transcription results. Cannot be enabled when mode is SMART or custom_vocabulary is non-empty.
"""

diarization: typing.Optional[bool] = pydantic.Field(default=None)
"""
Whether to include speaker labels in the transcription results. Cannot be enabled when mode is SMART.
"""

if IS_PYDANTIC_V2:
Expand Down
5 changes: 5 additions & 0 deletions src/agora_agent/types/gemini_asr_params_mode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

GeminiAsrParamsMode = typing.Union[typing.Literal["SMART", "VERBATIM"], typing.Any]
Loading