noumanjavaid commited on
Commit
5eacad5
·
verified ·
1 Parent(s): 3d18608

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -2
src/streamlit_app.py CHANGED
@@ -105,8 +105,12 @@ else:
105
  # Start with the absolute minimum. If this connects, incrementally add back features.
106
  # If this still fails, the issue is likely MODEL_NAME or API Key/Project permissions.
107
  LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
108
- response_modalities=["text"], # Start with text only
109
- # speech_config=None, # Explicitly None or omit
 
 
 
 
110
  )
111
  logging.info(f"Attempting connection with highly simplified LiveConnectConfig: {LIVE_CONNECT_CONFIG}")
112
 
 
105
  # Start with the absolute minimum. If this connects, incrementally add back features.
106
  # If this still fails, the issue is likely MODEL_NAME or API Key/Project permissions.
107
  LIVE_CONNECT_CONFIG = types.LiveConnectConfig(
108
+ response_modalities=["audio"], # Start with text only
109
+ speech_config=speech_config=types.SpeechConfig(
110
+ voice_config=types.VoiceConfig(
111
+ prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
112
+ ),
113
+ # Explicitly None or omit
114
  )
115
  logging.info(f"Attempting connection with highly simplified LiveConnectConfig: {LIVE_CONNECT_CONFIG}")
116