https://github.com/itk-dev/moster-whisper
Prototype whisper project
https://github.com/itk-dev/moster-whisper
Last synced: 12 months ago
JSON representation
Prototype whisper project
- Host: GitHub
- URL: https://github.com/itk-dev/moster-whisper
- Owner: itk-dev
- Created: 2023-09-26T08:04:51.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-09-26T08:23:32.000Z (over 2 years ago)
- Last Synced: 2025-02-13T08:17:28.209Z (about 1 year ago)
- Language: PHP
- Size: 259 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Moster Whisper
```sh
docker compose pull
docker compose up --detach --build
docker compose exec phpfpm composer install
docker compose run --rm node yarn install
docker compose run --rm node yarn build
# We need HTTPS to record audio. This assumes we're using https://github.com/itk-dev/devops_itkdev-docker.
open "https://moster-whisper.local.itkdev.dk/record"
```
```sh
curl "http://$(docker compose port nginx 8080)/transcribe" \
--header 'content-type: multipart/form-data' \
--form 'audio_file=@tests/test.da.wav;type=audio/x-wav' \
--verbose
```
##
```sh
open "http://$(docker compose port whisper 5000)"
```
### Example
```sh
curl "http://$(docker compose port whisper 5000)/whisper" \
--header 'content-type: multipart/form-data' \
--form 'audio_file=@tests/test.da.wav;type=audio/x-wav' \
--verbose
```
##
```sh
open "http://$(docker compose port openai-whisper-asr-webservice 9000)/docs"
```
**Note**: it may take a while for this to respond for the first time.
### Example
```sh
curl "http://$(docker compose port openai-whisper-asr-webservice 9000)/asr?task=transcribe&encode=true&output=txt" \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form 'audio_file=@tests/test.da.wav;type=audio/x-wav' \
--verbose
```
## Coding standards
```sh
docker compose exec phpfpm composer coding-standards-check
docker compose exec phpfpm composer coding-standards-apply
```
```sh
docker compose run --rm node yarn install
docker compose run --rm node yarn coding-standards-check
docker compose run --rm node yarn coding-standards-apply
```