feat: add voice transcription feedback workflow
This commit is contained in:
31
compose.asr.yml
Normal file
31
compose.asr.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
funasr:
|
||||
build:
|
||||
context: ./asr-service
|
||||
ports:
|
||||
- "127.0.0.1:10095:10095"
|
||||
environment:
|
||||
ASR_MODEL: paraformer-zh
|
||||
ASR_VAD_MODEL: fsmn-vad
|
||||
ASR_PUNC_MODEL: ct-punc
|
||||
ASR_DEVICE: cpu
|
||||
ASR_MAX_CONCURRENCY: "1"
|
||||
ASR_BATCH_SIZE_SECONDS: "300"
|
||||
MODELSCOPE_CACHE: /models
|
||||
volumes:
|
||||
- funasr-model-cache:/models
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- python
|
||||
- -c
|
||||
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:10095/health', timeout=3)"
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 5m
|
||||
shm_size: 1gb
|
||||
|
||||
volumes:
|
||||
funasr-model-cache:
|
||||
Reference in New Issue
Block a user