File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,12 @@ def config(self) -> types.TranscriptionConfig:
272272
273273 return self ._impl .config
274274
275+ @property
276+ def json_response (self ) -> Optional [dict ]:
277+ "The full JSON response associated with the transcript."
278+
279+ return self ._impl .transcript .dict ()
280+
275281 @property
276282 def audio_url (self ) -> str :
277283 "The corresponding audio url"
@@ -861,6 +867,25 @@ def submit(
861867 poll = False ,
862868 )
863869
870+ def submit_group (
871+ self ,
872+ data : List [str ],
873+ config : Optional [types .TranscriptionConfig ] = None ,
874+ ) -> TranscriptGroup :
875+ """
876+ Submits multiple transcription jobs without waiting for their completion.
877+
878+ Args:
879+ data: A list of paths or URLs (can be mixed)
880+ config: Transcription options and features. If `None` is given, the Transcriber's
881+ default configuration will be used.
882+ """
883+ return self ._impl .transcribe_group (
884+ data = data ,
885+ config = config ,
886+ poll = False ,
887+ )
888+
864889 def transcribe (
865890 self ,
866891 data : str ,
Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ def auto_chapters(self, enable: Optional[bool]) -> None:
802802 "Enable Auto Chapters."
803803
804804 # Validate required params are also set
805- if self .punctuate == False :
805+ if enable and self .punctuate == False :
806806 raise ValueError (
807807 "If `auto_chapters` is enabled, then `punctuate` must not be disabled"
808808 )
@@ -1395,6 +1395,8 @@ class BaseTranscript(BaseModel):
13951395 "The URL we should send webhooks to when your transcript is complete."
13961396 webhook_auth_header_name : Optional [str ]
13971397 "The name of the header that is sent when the `webhook_url` is being called."
1398+ webhook_auth_header_value : Optional [str ]
1399+ "The value of the `webhook_auth_header_name` that is sent when the `webhook_url` is being called."
13981400
13991401 audio_start_from : Optional [int ]
14001402 "The point in time, in milliseconds, to begin transcription from in your media file."
Original file line number Diff line number Diff line change 77
88setup (
99 name = "assemblyai" ,
10- version = "0.15.1 " ,
10+ version = "0.16.0 " ,
1111 description = "AssemblyAI Python SDK" ,
1212 author = "AssemblyAI" ,
1313 author_email = "engineering.sdk@assemblyai.com" ,
You can’t perform that action at this time.
0 commit comments