Skip to content
Open
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 google/genai/_interactions/types/audio_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AudioContent(BaseModel):
] = None
"""The mime type of the audio."""

rate: Optional[int] = None
sample_rate: Optional[int] = None
"""The sample rate of the audio."""

uri: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/audio_content_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AudioContentParam(TypedDict, total=False):
]
"""The mime type of the audio."""

rate: int
sample_rate: int
"""The sample rate of the audio."""

uri: str
Expand Down
3 changes: 3 additions & 0 deletions google/genai/_interactions/types/content_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ class DeltaAudio(BaseModel):
] = None

rate: Optional[int] = None
"""Deprecated. Use sample_rate instead. The value is ignored."""

sample_rate: Optional[int] = None
"""The sample rate of the audio."""

uri: Optional[str] = None
Expand Down
Loading