Sure! Pl
This commit is contained in:
26
vosk/vosk_service/README.md
Normal file
26
vosk/vosk_service/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Vosk Speech-to-Text Docker Service
|
||||
|
||||
## Setup
|
||||
|
||||
1. Download and extract a Vosk model (already downloading `vosk-model-small-en-us-0.15.zip`):
|
||||
|
||||
```sh
|
||||
unzip model.zip -d model
|
||||
mv model/* model/
|
||||
```
|
||||
|
||||
2. Build the Docker image:
|
||||
|
||||
```sh
|
||||
docker build -t vosk-api .
|
||||
```
|
||||
|
||||
3. Run the Docker container (mounting the model directory):
|
||||
|
||||
```sh
|
||||
docker run -p 5000:5000 -v $(pwd)/model:/app/model vosk-api
|
||||
```
|
||||
|
||||
## API Usage
|
||||
|
||||
POST `/transcribe` with form-data key `audio` (WAV/FLAC/OGG file). Returns JSON with `transcription`.
|
||||
Reference in New Issue
Block a user