feat(gemini): enable audio transcription in live text example

Add options to transcribe both user and model audio during the GeminiMultimodalLiveLLMService setup in the 26d-gemini-multimodal-live-text.py example.
This commit is contained in:
Mert Sefa AKGUN
2025-01-09 15:38:33 +03:00
parent 7634058f97
commit 6664c492ac

View File

@@ -56,6 +56,8 @@ async def main():
llm = GeminiMultimodalLiveLLMService(
api_key=os.getenv("GOOGLE_API_KEY"),
# system_instruction="Talk like a pirate."
transcribe_user_audio=True,
transcribe_model_audio=True,
)
llm.set_model_modalities(
GeminiMultimodalModalities.TEXT