class TranscribeService:
def __init__(self):
self.client = boto3.client("transcribe")
def start_job(self, job_name: str, media_format: str, file_name: str):
self.client.start_transcription_job(
TranscriptionJobName=job_name,
LanguageCode="en-IN",
MediaFormat=media_format,
Media={
"MediaFileUri": f"s3://lejdiprifti-stt-inputs/{file_name}.{media_format}",
},
OutputBucketName="lejdiprifti-stt-outputs",
OutputKey=f"{file_name.replace(' ', '_')}.json",
)
[…] this article, we will add a new feature and continue developing the program we started in the last article. You guessed it right. It is real-time streaming with AWS Transcribe and […]
[…] audio to text by leveraging AWS services, such as Transcribe and Simple Storage Service (S3). Quick tutorial to AWS Transcribe with Python writes about the batch mode of audio transcription with AWS Transcribe and S3, while Real-time […]