You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/elevenlabs/realtime/scribe.py
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ class RealtimeAudioOptions(typing.TypedDict, total=False):
48
48
min_speech_duration_ms: Minimum speech duration in milliseconds (must be between 50 and 2000)
49
49
min_silence_duration_ms: Minimum silence duration in milliseconds (must be between 50 and 2000)
50
50
language_code: An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand.
51
+
include_timestamps: Whether to receive the committed_transcript_with_timestamps event after committing the segment (optional, defaults to False)
51
52
"""
52
53
model_id: str
53
54
audio_format: AudioFormat
@@ -58,6 +59,7 @@ class RealtimeAudioOptions(typing.TypedDict, total=False):
@@ -72,7 +74,8 @@ class RealtimeUrlOptions(typing.TypedDict, total=False):
72
74
vad_threshold: Threshold for voice activity detection (must be between 0.1 and 0.9)
73
75
min_speech_duration_ms: Minimum speech duration in milliseconds (must be between 50 and 2000)
74
76
min_silence_duration_ms: Minimum silence duration in milliseconds (must be between 50 and 2000)
75
-
An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand.
77
+
language_code: An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand.
78
+
include_timestamps: Whether to receive the committed_transcript_with_timestamps event after committing the segment (optional, defaults to False)
76
79
"""
77
80
model_id: str
78
81
url: str
@@ -82,6 +85,7 @@ class RealtimeUrlOptions(typing.TypedDict, total=False):
0 commit comments