Dockerized REST API service for Persian/Farsi speech-to-text conversion. Utilizes m3hrdadfi/wav2vec2-large-xlsr-persian model.
Go to file
2023-12-11 03:57:20 +03:30
.env.sample Feat: ReST API is done using FastAPI 2023-12-11 03:55:43 +03:30
.gitignore Initial commit 2023-12-10 20:54:33 +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 Add FastAPI and relevant dependencies to requirements.txt 2023-12-11 03:57:20 +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