740 B
740 B
- Updated
SpeechmaticsSTTServiceto use new Python Voice SDK with improved VAD, Smart Turn capabilities, and brings dramatic improvements to latency without any impact on accuracy. Use theturn_detection_modeparameter to control the endpointing of speech, withTurnDetectionMode.EXTERNAL(default),TurnDetectionMode.ADAPTIVE, orTurnDetectionMode.SMART_TURN.stt = SpeechmaticsSTTService( api_key=os.getenv("SPEECHMATICS_API_KEY"), params=SpeechmaticsSTTService.InputParams( language=Language.EN, turn_detection_mode=SpeechmaticsSTTService.TurnDetectionMode.ADAPTIVE, speaker_active_format="<{speaker_id}>{text}</{speaker_id}>", ), )