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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user