gemini Gemini Python SDK Releases · · 2.25.0

Python GenAI SDK v2.25.0 enhances Voice and Speech APIs

sdkaigaengineer
feature patch

Version 2.25.0 of the `googleapis/python-genai` SDK introduces new Voice and Speech APIs, including a dedicated `Voices` API resource and `sample_audio` functionality within the Voice feature. These updates provide developers with enhanced capabilities for integrating advanced speech generation and configuration into their AI applications. The release also exposes key metadata and configuration options such as `SpeechMetadata`, `VoiceConfig.voice`, and `SpeechAnnotation` in the public SDKs. Additionally, the update includes bug fixes, such as sanitizing path parameter descriptions in GAOS OpenAPI generation.

  • Add sample_audio to Voice in GAOS SDK
  • Add Voices API resource to GAOS SDK
  • Expose SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public GenAI SDKs
  • Support field.value_field syntax for map add_union_value annotations
  • Update discovery doc
Features (6)
  • Add sample_audio to Voice in GAOS SDK
  • Add Voices API resource to GAOS SDK
  • Expose SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public GenAI SDKs
  • Support field.value_field syntax for map add_union_value annotations
  • Update discovery doc
  • Wire voice into sdk
Fixes (1)
  • Sanitize path parameter descriptions in GAOS OpenAPI generation
Read the original announcement →

https://github.com/googleapis/python-genai/releases/tag/v2.25.0

Related releases