10. Call Batch Transcription API with Streamlit
This is a Streamlit app that calls Azure AI Speech Batch Transcription API.
Prerequisites
- Python 3.10 or later
 - Azure AI Speech Service subscription key
 
Infrastructure setup
Follow the steps in Assign a resource access role to assign the Storage Blob Data Reader role to the managed identity of your Speech resource.
FIXME: automate this step
Usage
- Get Azure AI Speech Service subscription key
 - Copy .env.template to 
.envin the same directory - Set credentials in 
.env - Run main.py
 
# Create a virtual environment
$ python -m venv .venv
# Activate the virtual environment
$ source .venv/bin/activate
# Install dependencies
$ pip install -r requirements.txt
# Run the script
$ python -m streamlit run apps/10_streamlit_batch_transcription/main.py
Example
