This is a Python project that uses Flask and Flasgger to create a web API for transcribing audio files. The transcription is done using the whisper
library.
- Clone this repository.
- Install Docker and Docker Compose if you haven't already.
- Build the Docker image by running
docker-compose build
.
- Start the server by running
docker-compose up
. - Send a POST request to
http://localhost:5000/transcribe
with an audio file in the form data under the keyaudio
.
POST /transcribe
: Transcribes an audio file. The audio file should be included in the form data under the keyaudio
.
Here's an example of how to use the /transcribe
endpoint:
Request:
curl -X POST -F "audio=@path_to_your_audio_file.wav" http://localhost:5000/transcribe
Response:
{
"text": "transcribed text from the audio file"
}