Google GenAI SDK Source Code (Speech)
Use web_fetch to retrieve raw code for deep inspection.
Base URL: https://raw.githubusercontent.com/googleapis/python-genai/main/google/genai/
Key Modules
Models (Generation)
- File:
models.py - URL:
https://raw.githubusercontent.com/googleapis/python-genai/main/google/genai/models.py - Purpose:
generate_contentlogic for TTS.
Types (Configuration)
- File:
types.py - URL:
https://raw.githubusercontent.com/googleapis/python-genai/main/google/genai/types.py - Purpose: Definitions for
SpeechConfig,VoiceConfig,PrebuiltVoiceConfig,MultiSpeakerVoiceConfig.
Client
- File:
client.py - URL:
https://raw.githubusercontent.com/googleapis/python-genai/main/google/genai/client.py