@@ -214,13 +214,13 @@ def sample_rate(self) -> Optional[int]:
214214 def to_config (self ) -> Dict [str , Any ]:
215215 params : Dict [str , Any ] = {
216216 "credentials" : self .options .key ,
217- "VoiceSelectionParams " : {"name" : self .options .voice_name },
217+ "voice_selection_params " : {"name" : self .options .voice_name },
218218 }
219219
220220 if self .options .language_code is not None :
221- params ["VoiceSelectionParams " ]["language_code" ] = self .options .language_code
221+ params ["voice_selection_params " ]["language_code" ] = self .options .language_code
222222 if self .options .sample_rate_hertz is not None :
223- params ["AudioConfig " ] = {"sample_rate_hertz" : self .options .sample_rate_hertz }
223+ params ["audio_config " ] = {"sample_rate_hertz" : self .options .sample_rate_hertz }
224224
225225 result : Dict [str , Any ] = {"vendor" : "google" , "params" : params }
226226 if self .options .skip_patterns is not None :
@@ -359,7 +359,7 @@ def to_config(self) -> Dict[str, Any]:
359359 params : Dict [str , Any ] = {
360360 "api_key" : self .options .key ,
361361 "speaker" : self .options .speaker ,
362- "modelId " : self .options .model_id ,
362+ "model_id " : self .options .model_id ,
363363 }
364364 if self .options .base_url is not None :
365365 params ["base_url" ] = self .options .base_url
0 commit comments