Skip to content

Commit 740c770

Browse files
he-jamesAssemblyAI
andauthored
chore: sync sdk code with DeepLearning repo (#144)
Co-authored-by: AssemblyAI <engineering.sdk@assemblyai.com>
1 parent 8ed6493 commit 740c770

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

assemblyai/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
ContentSafetyLabelResult,
1414
ContentSafetyResponse,
1515
ContentSafetySeverityScore,
16+
CustomFormattingRequest,
17+
CustomFormattingResponse,
1618
Entity,
1719
EntityType,
1820
IABLabelResult,
@@ -54,8 +56,15 @@
5456
Sentiment,
5557
SentimentType,
5658
Settings,
59+
SpeakerIdentificationRequest,
60+
SpeakerIdentificationResponse,
5761
SpeakerOptions,
62+
SpeakerType,
5863
SpeechModel,
64+
SpeechUnderstandingFeatureRequests,
65+
SpeechUnderstandingFeatureResponses,
66+
SpeechUnderstandingRequest,
67+
SpeechUnderstandingResponse,
5968
StatusResult,
6069
SummarizationModel,
6170
SummarizationType,
@@ -64,6 +73,8 @@
6473
TranscriptionConfig,
6574
TranscriptItem,
6675
TranscriptStatus,
76+
TranslationRequest,
77+
TranslationResponse,
6778
Utterance,
6879
UtteranceWord,
6980
Word,
@@ -87,6 +98,8 @@
8798
"ContentSafetyLabelResult",
8899
"ContentSafetyResponse",
89100
"ContentSafetySeverityScore",
101+
"CustomFormattingRequest",
102+
"CustomFormattingResponse",
90103
"Entity",
91104
"EntityType",
92105
"IABLabelResult",
@@ -117,8 +130,15 @@
117130
"Sentiment",
118131
"SentimentType",
119132
"Settings",
133+
"SpeakerIdentificationRequest",
134+
"SpeakerIdentificationResponse",
120135
"SpeakerOptions",
136+
"SpeakerType",
121137
"SpeechModel",
138+
"SpeechUnderstandingFeatureRequests",
139+
"SpeechUnderstandingFeatureResponses",
140+
"SpeechUnderstandingRequest",
141+
"SpeechUnderstandingResponse",
122142
"StatusResult",
123143
"SummarizationModel",
124144
"SummarizationType",
@@ -129,6 +149,8 @@
129149
"TranscriptError",
130150
"TranscriptGroup",
131151
"TranscriptItem",
152+
"TranslationRequest",
153+
"TranslationResponse",
132154
"TranscriptStatus",
133155
"Utterance",
134156
"UtteranceWord",

assemblyai/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.45.3"
1+
__version__ = "0.45.4"

assemblyai/transcriber.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,22 @@ def text(self) -> Optional[str]:
384384

385385
return self._impl.transcript.text
386386

387+
@property
388+
def translated_texts(self) -> Optional[Dict[str, str]]:
389+
"The translated texts transcription of your media file"
390+
if not self._impl.transcript:
391+
raise ValueError("The internal Transcript object is None.")
392+
393+
return self._impl.transcript.translated_texts
394+
395+
@property
396+
def speech_understanding(self) -> Optional[types.SpeechUnderstandingResponse]:
397+
"The text transcription of your media file"
398+
if not self._impl.transcript:
399+
raise ValueError("The internal Transcript object is None.")
400+
401+
return self._impl.transcript.speech_understanding
402+
387403
@property
388404
def summary(self) -> Optional[str]:
389405
"The summarization of the transcript"

0 commit comments

Comments
 (0)