File size: 1,186 Bytes
a4ebcc4
 
 
 
 
 
2b84626
a4ebcc4
 
 
2b84626
 
 
 
 
 
 
 
 
 
 
 
 
 
b67ab05
 
07b85e8
 
 
2b84626
 
 
 
b67ab05
2b84626
07b85e8
 
2b84626
07b85e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: ASR Streaming Server
emoji: 🔥
colorFrom: pink
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
---

# ASR Streaming Server

Docker Space for running `https://github.com/Alimjoo/WhisperLiveKit-ug.git`
with Uyghur Whisper `.pt` models from `piyazon/whisper_uyghur_pt`.

## Space secrets

Set `HF_TOKEN` as a Space secret with read access to the private model repo.
`HUGGING_FACE_HUB_TOKEN` is also supported.

## Defaults

- WhisperLiveKit repo: `https://github.com/Alimjoo/WhisperLiveKit-ug.git`
- Hugging Face model repo: `piyazon/whisper_uyghur_pt`
- Downloaded model files: `uyghur_whisper_tiny.pt`
- Started model: `uyghur_whisper_tiny.pt`
- Language: `uz`
- Backend: `whisper`
- Backend policy: `localagreement`
- Port: `7860`

## Runtime configuration

- `WHISPER_MODEL_FILENAME=uyghur_whisper_base.pt` starts the base model instead.
- `WHISPER_MODEL_PATH=/path/to/model.pt` skips Hugging Face download.
- `WHISPER_LANGUAGE=ug` can be used if you want to force Uyghur instead of Uzbek.
- `WHISPER_BACKEND_POLICY=simulstreaming` switches back to the WLK default streaming policy.
- `WHISPERLIVEKIT_ARGS` appends extra CLI arguments, for example
  `--pcm-input`.