Create your free AssemblyAI Account & obtain your API Key.
To recreate this web app on your own computer, do the following.
Firstly, we will create a conda environment called transcriber_env
conda create -n transcription_env python=3.7.9
Secondly, we will login to the transcription_env environment
conda activate transcription_env
git clone https://github.com/rmerzouki/speech-to-text.git
pip install -r requirements.txt
streamlit run audio_to_text_2.py
How to deploy on Streamlit Cloud your Speech-to-Text App in Python using AssemblyAI
Steps to deploy the app on Streamlit :
1 - Run your app locally, click on the Streamlit menu at the top right of the page and select "Deploy this app".
2 - Apps are deployed directly from their Github repo. Enter the location of your app and the settings i.e. secrets, in our specific case the api key i.e. api_key = 'replace_with_your_AssemblyAI API_key'
3 - Save & Hit Deploy!
4 - Once the application is deployed, share your web application path with the audience.
Streamlit Secrets Management allows you to store secrets securely and access them in your Streamlit app as environment variables. For further information on this topic, check out the following documentation :
https://docs.streamlit.io/streamlit-cloud/get-started/deploy-an-app/connect-to-data-sources/secrets-management
For your information, my web app is deployed on Streamlit and it is accessible through the following path :
https://share.streamlit.io/rmerzouki/speech-to-text/main/audio_to_text_2.py
* [1] Chanin Nantasenamat https://youtu.be/NNq_XBVk30w
A bug in pytube led me to temporarily use git+https://github.com/rmerzouki/pytube ; this bug is now fixed with pytube version 12.0.0.
A new bug in pytube led me to temporarily use git+https://github.com/jmsmg/pytube ; this bug is now fixed with pytube version 12.1.0 released in May 9, 2022 and available in https://pypi.org/project/pytube/
A new bug in pytube led me to use git+https://github.com/jmsmg/pytube as of April 26th 2022.