You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ac3c91
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: google/genai/types.py
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6522,6 +6522,10 @@ class AudioTranscriptionConfig(_common.BaseModel):
6522
6522
default=None,
6523
6523
description="""Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.""",
6524
6524
)
6525
+
source_text: Optional[str] = Field(
6526
+
default=None,
6527
+
description="""Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it.""",
6528
+
)
6525
6529
6526
6530
6527
6531
class AudioTranscriptionConfigDict(TypedDict, total=False):
@@ -6553,6 +6557,9 @@ class AudioTranscriptionConfigDict(TypedDict, total=False):
6553
6557
mode: Optional[AudioTranscriptionConfigMode]
6554
6558
"""Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`."""
6555
6559
6560
+
source_text: Optional[str]
6561
+
"""Optional. The source text to be edited or rewritten via voice instructions. When provided in `SMART` mode, the model evaluates the audio input against this text and emits the complete replacement text in the candidate response rather than appending to it."""
0 commit comments