from assembly_ai_plus.assemblyai import AssemblyAI
assembly-ai-plus
Simple Library for transcribing and understanding audio and video files using AssemblyAI
Read more about AssemblyAI here 👇
Docs
Install
pip install assembly-ai-plus
How to use
This Library provides a AssemblyAI
class using which you can submit audio files for transcribing and uderstanding it better.
First create the assembly_ai instance by providing the AssemblyAI API KEY, which you can get it for free from here
= AssemblyAI(api_key=YOUR_API_KEY) assembly_ai
Submit the audio url for transcription
= assembly_ai.submit_url_for_transcription(audio_url="https://bit.ly/3yxKEIY") res
'id') # This id is used to extract the actual text from the audio files. res.get(
'rs3c8julbq-177d-4071-ab6f-d7c7a9bb6dbb'
Getting the Transcription Result
= assembly_ai.get_transcription_results('rs3c8julbq-177d-4071-ab6f-d7c7a9bb6dbb') full_details
print(full_details['text'])
You know, demons on TV like that. And and for people to expose themselves to being rejected on TV or, you know, humili humiliated by Fear Factor or, you know.
We can check out other details like sentiment analysis from full_details