How to build your own Speech-to-Text Transcription App in Python using AssemblyAI
Obtain your free AssemblyAI API key.
Firstly, copy and paste the AssemblyAI API key into the api.txt
file (you can replace the text replace_with_your_AssemblyAI_API_key
with your own API key).
Secondly, install prerequisite pytube
library by typing the following:
pip3 install pytube
Thirdly, run the transcriber by typing the following (note that you can replace the URL with a YouTube video of your choice):
python3 transcriber.py -i "https://youtu.be/mkVjrB8g6mM"
To recreate this web app on your own computer, do the following.
Firstly, we will create a conda environment called transcriber
conda create -n transcriber python=3.7.9
Secondly, we will login to the transcriber environment
conda activate transcriber
git clone https://github.com/dataprofessor/transcriber-app
pip install -r requirements.txt
streamlit run app.py