Skip to content

Commit 864fdf3

Browse files
s0h3ylAssemblyAI
andauthored
chore: sync code base with OSS repository (#32)
Co-authored-by: AssemblyAI <[email protected]>
1 parent f4398cc commit 864fdf3

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

assemblyai/transcriber.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

assemblyai/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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."

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="assemblyai",
10-
version="0.15.1",
10+
version="0.16.0",
1111
description="AssemblyAI Python SDK",
1212
author="AssemblyAI",
1313
author_email="[email protected]",

0 commit comments

Comments
 (0)