File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,30 @@ class UserTranscription(BaseModel):
3535 user_id : str = ""
3636
3737 words : list [Word ] | None = None
38- merged_turns : list [int ] | None = None
38+ merged_turns : list [int ] | None = None # TODO: should be removed in the future
3939 interruptable : bool = False # whether the text can be interrupted
4040
4141 metadata : dict | None = None # additional metadata for the transcription
4242
43+ class UserTranslation (BaseModel ):
44+ object : str = "user.translation" # [required] name of the object
45+ text : str = "" # [required] text for display
46+ final : bool = True # whether 'text' won't change anymore
47+ start_ms : int = 0 # start time of the text, milliseconds since epoch
48+ duration_ms : int = 0 # duration of the text, in milliseconds
49+ language : str = "" # IETF BCP 47(RFC 4646), such as 'en-US' or 'zh-CN'
50+
51+ turn_id : int = 0
52+
53+ # which stream/user the text belongs to
54+ stream_id : int = 0
55+ user_id : str = ""
56+
57+ transcript_text : str | None = None # corresponding transcribed text
58+ transcript_language : str | None = None # IETF BCP 47(RFC 4646), such as 'en-US' or 'zh-CN'
59+
60+ metadata : dict | None = None # additional metadata for the transcription
61+
4362
4463class AssistantTranscription (BaseModel ):
4564 object : str = "assistant.transcription" # [required] name of the object
You can’t perform that action at this time.
0 commit comments