You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| local_whisper | 2 years ago | |
| pyinvoke | 2 years ago | |
| tests | 2 years ago | |
| .gitignore | 2 years ago | |
| .pre-commit-config.yaml | 2 years ago | |
| LICENSE | 2 years ago | |
| README.md | 2 years ago | |
| dev_requirements.in | 2 years ago | |
| dev_requirements.txt | 2 years ago | |
| macos-py3.11-dev_requirements.txt | 2 years ago | |
| macos-py3.11-requirements.txt | 2 years ago | |
| pyproject.toml | 2 years ago | |
| requirements.in | 2 years ago | |
| requirements.txt | 2 years ago | |
| tasks.py | 2 years ago | |
README.md
LocalWhisper
Making OpenAPI's Open Whisper available via ReST API locally.
Features
- Transcription
- Translation (Not-planned, but open to PRs)
Usage Example
Similar to the OpenAI API we can post an audio file to /audio/transcriptions as a multipart/form-data type.
curl --request POST \
--url http://localhost:9000/audio/transcriptions \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/json' \
--form 'file=@/path/to/file/example.wav;type=audio/wav'
--form 'model=whisper-1'
At present the model form field is not required or supported. The WHISPER_BASE_ASR_MODEL server configuration will be used to determine the Whisper model to use.