A FastAPI-based server that uses Faster Whisper for speech-to-text transcription, deployed on modal.com. This guide walks you through cloning, setting up, and deploying the server.
- Python 3.x
- Modal Account for deployment
Clone the faster-whisper-modal
repository to your local machine. And install requirements from the requirements.txt:
git clone https://github.com/siremojp/faster-whisper
cd faster-whisper-modal
pip3 install -r requirements.txt
Install the Modal SDK for deploying applications to the Modal cloud:
pip install modal
Set up Modal authentication. This will open a browser window for you to authorize access to your Modal account:
python3 -m modal setup
Deploy the app on Modal and get the app link from terminal/Modal Dashboard
modal deploy app.py
After the code is deployed, retrieve the app link from the Modal.com Dashboard. The app link will look similar to:
curl --location 'https://your-name--faster-whisper-server-fastapi-wrapper.modal.run/transcribe' \
--form 'file=@"/home/user/Desktop/locean-et-lhumanite-destins-lies-lamya-essemlali-tedxorleans-128-ytshorts.savetube.me.mp3"'