Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions assemblyai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
ContentSafetyLabelResult,
ContentSafetyResponse,
ContentSafetySeverityScore,
CustomFormattingRequest,
CustomFormattingResponse,
Entity,
EntityType,
IABLabelResult,
Expand Down Expand Up @@ -54,8 +56,15 @@
Sentiment,
SentimentType,
Settings,
SpeakerIdentificationRequest,
SpeakerIdentificationResponse,
SpeakerOptions,
SpeakerType,
SpeechModel,
SpeechUnderstandingFeatureRequests,
SpeechUnderstandingFeatureResponses,
SpeechUnderstandingRequest,
SpeechUnderstandingResponse,
StatusResult,
SummarizationModel,
SummarizationType,
Expand All @@ -64,6 +73,8 @@
TranscriptionConfig,
TranscriptItem,
TranscriptStatus,
TranslationRequest,
TranslationResponse,
Utterance,
UtteranceWord,
Word,
Expand All @@ -87,6 +98,8 @@
"ContentSafetyLabelResult",
"ContentSafetyResponse",
"ContentSafetySeverityScore",
"CustomFormattingRequest",
"CustomFormattingResponse",
"Entity",
"EntityType",
"IABLabelResult",
Expand Down Expand Up @@ -117,8 +130,15 @@
"Sentiment",
"SentimentType",
"Settings",
"SpeakerIdentificationRequest",
"SpeakerIdentificationResponse",
"SpeakerOptions",
"SpeakerType",
"SpeechModel",
"SpeechUnderstandingFeatureRequests",
"SpeechUnderstandingFeatureResponses",
"SpeechUnderstandingRequest",
"SpeechUnderstandingResponse",
"StatusResult",
"SummarizationModel",
"SummarizationType",
Expand All @@ -129,6 +149,8 @@
"TranscriptError",
"TranscriptGroup",
"TranscriptItem",
"TranslationRequest",
"TranslationResponse",
"TranscriptStatus",
"Utterance",
"UtteranceWord",
Expand Down
2 changes: 1 addition & 1 deletion assemblyai/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.45.3"
__version__ = "0.45.4"
16 changes: 16 additions & 0 deletions assemblyai/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,22 @@ def text(self) -> Optional[str]:

return self._impl.transcript.text

@property
def translated_texts(self) -> Optional[Dict[str, str]]:
"The translated texts transcription of your media file"
if not self._impl.transcript:
raise ValueError("The internal Transcript object is None.")

return self._impl.transcript.translated_texts

@property
def speech_understanding(self) -> Optional[types.SpeechUnderstandingResponse]:
"The text transcription of your media file"
if not self._impl.transcript:
raise ValueError("The internal Transcript object is None.")

return self._impl.transcript.speech_understanding

@property
def summary(self) -> Optional[str]:
"The summarization of the transcript"
Expand Down