Skip to content

Commit 5150599

Browse files
AssemblyAIhe-james
authored andcommitted
Project import generated by Copybara.
GitOrigin-RevId: 827187e60d7eaedad2c83b9eee1f230e2c90adf1
1 parent 8ed6493 commit 5150599

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

assemblyai/transcriber.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,14 @@ 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+
387395
@property
388396
def summary(self) -> Optional[str]:
389397
"The summarization of the transcript"

0 commit comments

Comments
 (0)