diff --git a/assemblyai/__init__.py b/assemblyai/__init__.py index 1531dfc..7b090ba 100644 --- a/assemblyai/__init__.py +++ b/assemblyai/__init__.py @@ -13,6 +13,8 @@ ContentSafetyLabelResult, ContentSafetyResponse, ContentSafetySeverityScore, + CustomFormattingRequest, + CustomFormattingResponse, Entity, EntityType, IABLabelResult, @@ -54,8 +56,15 @@ Sentiment, SentimentType, Settings, + SpeakerIdentificationRequest, + SpeakerIdentificationResponse, SpeakerOptions, + SpeakerType, SpeechModel, + SpeechUnderstandingFeatureRequests, + SpeechUnderstandingFeatureResponses, + SpeechUnderstandingRequest, + SpeechUnderstandingResponse, StatusResult, SummarizationModel, SummarizationType, @@ -64,6 +73,8 @@ TranscriptionConfig, TranscriptItem, TranscriptStatus, + TranslationRequest, + TranslationResponse, Utterance, UtteranceWord, Word, @@ -87,6 +98,8 @@ "ContentSafetyLabelResult", "ContentSafetyResponse", "ContentSafetySeverityScore", + "CustomFormattingRequest", + "CustomFormattingResponse", "Entity", "EntityType", "IABLabelResult", @@ -117,8 +130,15 @@ "Sentiment", "SentimentType", "Settings", + "SpeakerIdentificationRequest", + "SpeakerIdentificationResponse", "SpeakerOptions", + "SpeakerType", "SpeechModel", + "SpeechUnderstandingFeatureRequests", + "SpeechUnderstandingFeatureResponses", + "SpeechUnderstandingRequest", + "SpeechUnderstandingResponse", "StatusResult", "SummarizationModel", "SummarizationType", @@ -129,6 +149,8 @@ "TranscriptError", "TranscriptGroup", "TranscriptItem", + "TranslationRequest", + "TranslationResponse", "TranscriptStatus", "Utterance", "UtteranceWord", diff --git a/assemblyai/__version__.py b/assemblyai/__version__.py index ebd2899..2404939 100644 --- a/assemblyai/__version__.py +++ b/assemblyai/__version__.py @@ -1 +1 @@ -__version__ = "0.45.3" +__version__ = "0.45.4" diff --git a/assemblyai/transcriber.py b/assemblyai/transcriber.py index 9ef5bda..07c0acf 100644 --- a/assemblyai/transcriber.py +++ b/assemblyai/transcriber.py @@ -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"