Dockerized REST API service for Persian/Farsi speech-to-text conversion. Utilizes m3hrdadfi/wav2vec2-large-xlsr-persian model.
Go to file
2023-12-15 05:11:32 +03:30
.env.sample Feat: ReST API is done using FastAPI 2023-12-11 03:55:43 +03:30
.gitignore Add 'model/' to '.gitignore' 2023-12-15 05:11:04 +03:30
main.py Feat: ReST API is done using FastAPI 2023-12-11 03:55:43 +03:30
README.md Feat: ReST API is done using FastAPI 2023-12-11 03:55:43 +03:30
requirements.txt Downgrade python version to 3.10 2023-12-15 05:11:32 +03:30

Persian Speech-to-text

Testing

With curl

curl -X POST "http://localhost:8000/transcribe" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "audio_file=@sample.wav"

With HTTPie

http -f POST http://localhost:8000/transcribe audio_file@sample.wav