@@ -104,7 +104,7 @@ aai.settings.api_key = "YOUR_API_KEY"
104104audio_file = " ./example.mp3"
105105
106106config = aai.TranscriptionConfig(
107- speech_models = [" universal-3-pro" , " universal-2" ],
107+ speech_models = [" universal-3-5- pro" , " universal-2" ],
108108 language_detection = True ,
109109 speaker_labels = True ,
110110)
@@ -130,7 +130,7 @@ aai.settings.api_key = "YOUR_API_KEY"
130130audio_file = " https://assembly.ai/wildfires.mp3"
131131
132132config = aai.TranscriptionConfig(
133- speech_models = [" universal-3-pro" , " universal-2" ],
133+ speech_models = [" universal-3-5- pro" , " universal-2" ],
134134 language_detection = True ,
135135 speaker_labels = True ,
136136)
@@ -177,7 +177,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
177177audio_file = " https://assembly.ai/wildfires.mp3"
178178
179179config = aai.TranscriptionConfig(
180- speech_models = [" universal-3-pro" , " universal-2" ],
180+ speech_models = [" universal-3-5- pro" , " universal-2" ],
181181 language_detection = True
182182)
183183
@@ -214,7 +214,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
214214audio_file = " https://assembly.ai/wildfires.mp3"
215215
216216config = aai.TranscriptionConfig(
217- speech_models = [" universal-3-pro" , " universal-2" ],
217+ speech_models = [" universal-3-5- pro" , " universal-2" ],
218218 language_detection = True
219219)
220220
@@ -248,7 +248,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
248248audio_file = " https://assembly.ai/wildfires.mp3"
249249
250250config = aai.TranscriptionConfig(
251- speech_models = [" universal-3-pro" , " universal-2" ],
251+ speech_models = [" universal-3-5- pro" , " universal-2" ],
252252 language_detection = True
253253)
254254
@@ -280,7 +280,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
280280audio_file = " https://assembly.ai/wildfires.mp3"
281281
282282config = aai.TranscriptionConfig(
283- speech_models = [" universal-3-pro" , " universal-2" ],
283+ speech_models = [" universal-3-5- pro" , " universal-2" ],
284284 language_detection = True
285285)
286286config.set_custom_spelling(
@@ -324,7 +324,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
324324audio_file = " https://assembly.ai/wildfires.mp3"
325325
326326config = aai.TranscriptionConfig(
327- speech_models = [" universal-3-pro" , " universal-2" ],
327+ speech_models = [" universal-3-5- pro" , " universal-2" ],
328328 language_detection = True
329329)
330330
@@ -402,7 +402,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
402402audio_file = " https://assembly.ai/wildfires.mp3"
403403
404404config = aai.TranscriptionConfig(
405- speech_models = [" universal-3-pro" , " universal-2" ],
405+ speech_models = [" universal-3-5- pro" , " universal-2" ],
406406 language_detection = True ,
407407).set_redact_pii(
408408 policies = [
@@ -431,7 +431,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
431431audio_file = " https://assembly.ai/wildfires.mp3"
432432
433433config = aai.TranscriptionConfig(
434- speech_models = [" universal-3-pro" , " universal-2" ],
434+ speech_models = [" universal-3-5- pro" , " universal-2" ],
435435 language_detection = True ,
436436).set_redact_pii(
437437 policies = [
@@ -465,7 +465,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
465465audio_file = " https://assembly.ai/wildfires.mp3"
466466
467467config = aai.TranscriptionConfig(
468- speech_models = [" universal-3-pro" , " universal-2" ],
468+ speech_models = [" universal-3-5- pro" , " universal-2" ],
469469 language_detection = True ,
470470 auto_chapters = True
471471)
@@ -493,7 +493,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
493493audio_file = " https://assembly.ai/wildfires.mp3"
494494
495495config = aai.TranscriptionConfig(
496- speech_models = [" universal-3-pro" , " universal-2" ],
496+ speech_models = [" universal-3-5- pro" , " universal-2" ],
497497 language_detection = True ,
498498 summarization = True ,
499499 summary_model = aai.SummarizationModel.informative,
@@ -531,7 +531,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
531531audio_file = " https://assembly.ai/wildfires.mp3"
532532
533533config = aai.TranscriptionConfig(
534- speech_models = [" universal-3-pro" , " universal-2" ],
534+ speech_models = [" universal-3-5- pro" , " universal-2" ],
535535 language_detection = True ,
536536 content_safety = True
537537)
@@ -583,7 +583,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
583583audio_file = " https://assembly.ai/wildfires.mp3"
584584
585585config = aai.TranscriptionConfig(
586- speech_models = [" universal-3-pro" , " universal-2" ],
586+ speech_models = [" universal-3-5- pro" , " universal-2" ],
587587 language_detection = True ,
588588 sentiment_analysis = True
589589)
@@ -626,7 +626,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
626626audio_file = " https://assembly.ai/wildfires.mp3"
627627
628628config = aai.TranscriptionConfig(
629- speech_models = [" universal-3-pro" , " universal-2" ],
629+ speech_models = [" universal-3-5- pro" , " universal-2" ],
630630 language_detection = True ,
631631 entity_detection = True
632632)
@@ -655,7 +655,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
655655audio_file = " https://assembly.ai/wildfires.mp3"
656656
657657config = aai.TranscriptionConfig(
658- speech_models = [" universal-3-pro" , " universal-2" ],
658+ speech_models = [" universal-3-5- pro" , " universal-2" ],
659659 language_detection = True ,
660660 iab_categories = True
661661)
@@ -690,7 +690,7 @@ aai.settings.api_key = "<YOUR_API_KEY>"
690690audio_file = " https://assembly.ai/wildfires.mp3"
691691
692692config = aai.TranscriptionConfig(
693- speech_models = [" universal-3-pro" , " universal-2" ],
693+ speech_models = [" universal-3-5- pro" , " universal-2" ],
694694 language_detection = True ,
695695 auto_highlights = True
696696)
@@ -745,7 +745,7 @@ client.on(StreamingEvents.Termination, on_terminated)
745745client.on(StreamingEvents.Error, on_error)
746746
747747client.connect(StreamingParameters(
748- sample_rate = 16000 , speech_model = " universal-3-5-pro" , format_turns = True ,
748+ sample_rate = 16000 , speech_model = " universal-3-5-pro" ,
749749))
750750try :
751751 client.stream(aai.extras.stream_file(filepath = " audio.wav" , sample_rate = 16000 ))
@@ -874,7 +874,7 @@ async def main():
874874 async with AsyncStreamingClient(StreamingClientOptions(api_key = " <YOUR_API_KEY>" )) as client:
875875 client.on(StreamingEvents.Turn, on_turn)
876876 await client.connect(StreamingParameters(
877- sample_rate = 16000 , speech_model = " universal-3-5-pro" , format_turns = True ,
877+ sample_rate = 16000 , speech_model = " universal-3-5-pro" ,
878878 ))
879879 await client.stream(stream_file_async(" audio.wav" , 16000 ))
880880
@@ -1032,7 +1032,7 @@ transcriber = aai.Transcriber(config=config)
10321032transcriber.transcribe(
10331033 " https://example.com/audio.mp3" ,
10341034 # overrides the above configuration on the `Transcriber` with the following
1035- config = aai.TranscriptionConfig(speech_models = [" universal-3-pro" , " universal-2" ], multichannel = True , disfluencies = True )
1035+ config = aai.TranscriptionConfig(speech_models = [" universal-3-5- pro" , " universal-2" ], multichannel = True , disfluencies = True )
10361036)
10371037```
10381038
0 commit comments