2024年11月21日星期四 下午6:54:19

How to manually install wyoming-piper and whisper on Home Assistant core?

9 个月 前
#28496 引用
debian12 vmware on windows 10

root@debian:~# docker pull rhasspy/wyoming-whisper

Using default tag: latest
latest: Pulling from rhasspy/wyoming-whisper
5d0aeceef7ee: Pull complete
4f4fb700ef54: Pull complete
4c40534c4274: Pull complete
560d866274d3: Pull complete
Digest: sha256:e48b6f36f21c6e34cc2f6859293a282e740a56aff63a1ad3b8a67ee33d33b331
Status: Downloaded newer image for rhasspy/wyoming-whisper:latest
docker.io/rhasspy/wyoming-whisper:latest


docker run -p 10200:10200 rhasspy/wyoming-piper  

output

root@raspberrypi:~# docker run -p 10200:10200 rhasspy/wyoming-piper  
usage: __main__.py [-h] --piper PIPER --voice VOICE [--uri URI] --data-dir
                   DATA_DIR [--download-dir DOWNLOAD_DIR] [--speaker SPEAKER]
                   [--noise-scale NOISE_SCALE] [--length-scale LENGTH_SCALE]
                   [--noise-w NOISE_W] [--auto-punctuation AUTO_PUNCTUATION]
                   [--samples-per-chunk SAMPLES_PER_CHUNK]
                   [--max-piper-procs MAX_PIPER_PROCS] [--update-voices]
                   [--debug]
__main__.py: error: the following arguments are required: --voice


docker run -p 10200:10200 --voice="en-gb-southern_english_female-low" rhasspy/wyoming-piper  
0
9 个月 前
#28503 引用
https://github.com/rhasspy/wyoming-faster-whisper


version: '3'
services:
  wyoming-whisper:
    image: rhasspy/wyoming-whisper
    ports:
      - "10300:10300"
    volumes:
      - ./whisper-data:/data
    command: [ "--model", "medium-int8", "--language", "en" ]
    restart: unless-stopped
0
9 个月 前
#28509 引用
docker run -it -p 10200:10200 -v /piper-data/data:/data rhasspy/wyoming-piper \
    --voice en-gb-southern_english_female-low




version: "3"
services:
  wyoming-piper:
    image: rhasspy/wyoming-piper
    ports:
      - "10200:10200"
    volumes:
      - "./piper-data:/data"
    command: [ "--voice", "en-gb-southern_english_female-low" ]
    restart: unless-stopped
0
2 周 前
#47728 引用
Install piper - 202411


step 1.

dokcer pull rhasspy/wyoming-piper
docker pull rhasspy/wyoming-whisper



docker images
REPOSITORY                TAG       IMAGE ID       CREATED        SIZE
rhasspy/wyoming-whisper   latest    7163929fa497   2 weeks ago    558MB
nodered/node-red          latest    489a122103aa   6 weeks ago    576MB
rhasspy/wyoming-piper     latest    9e90dce8ae81   8 months ago   180MB
rhasspy/rhasspy           latest    80cde42c6126   3 years ago    1.82G




docker save -o ./wyoming-piper.tar 9e90dce8ae81
docker save -o ./wyoming-whisper.tar rhasspy/wyoming-whisper



docker run  -p 10200:10200 -v /t/path/to/local/data:/data rhasspy/wyoming-piper \
    --voice en_US-lessac-medium


step 2.
cp from remote to local

/t/path/to/local/data/en_US-lessac-medium.onnx.json
/t/path/to/local/data/en_US-lessac-medium.onnx



docker load -i  ./wyoming-piper.tar
docker load -i  ./wyoming-whisper.tar

docker run  -p 10200:10200 -v /t/path/to/local/data:/data rhasspy/wyoming-piper \
    --voice en_US-lessac-medium



test on rpi
docker run  -p 10200:10200 -v /t/path/to/local/data:/data e64a72efd1ff     --voice en_US-lessac-medium
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/bash: exec format error


docker run  -p 10200:10200 -v /t/path/to/local/data:/data 4c9cf74e34fe    --voice en_US-lessac-medium





source:https://github.com/rhasspy/piper
0
2 周 前
#47729 引用
test  

service: tts.speak
data:
  message: Testing one two three
  language: en_US
  options:
    voice: en_US-lessac-medium
  media_player_entity_id: media_player.xiao_ai_yin_xiang_6318
  cache: true
target:
  entity_id: tts.piper


media_player.xiao_ai_yin_xiang_6318 - dlna

run ok

service: tts.speak
data:
  message: Testing one two three
  language: en_US
  options:
    voice: en_US-lessac-medium
  media_player_entity_id: media_player.qi_ju_shi
  cache: true
target:
  entity_id: tts.piper


run ok
0
2 周 前
#47730 引用
copy

wyoming-whisper


docker run -it -p 10300:10300 -v /path/to/local/data:/data rhasspy/wyoming-whisper \
    --model tiny-int8 --language en

https://github.com/rhasspy/wyoming-faster-whisper



docker run -it -p 10300:10300 -v /t/path/to/local/data:/data rhasspy/wyoming-whisper --model tiny-int8 --language en

docker run -it -p 10300:10300 -v /t/path/to/local/data:/data 9f52a59a54e2 --model tiny-int8 --language en




docker run -it -p 10300:10300 -v /t/path/to/local/data:/data rhasspy/wyoming-whisper \
    --model tiny-int8 --language en


source:https://github.com/rhasspy/wyoming-addons/blob/master/README.md
0
2 周 前
#47731 引用
docker images
REPOSITORY                TAG       IMAGE ID       CREATED        SIZE
rhasspy/wyoming-whisper   latest    7163929fa497   2 weeks ago    558MB
nodered/node-red          latest    489a122103aa   6 weeks ago    576MB
rhasspy/wyoming-piper     latest    9e90dce8ae81   8 months ago   180MB
rhasspy/rhasspy           latest    80cde42c6126   3 years ago    1.82G



docker save -o ./wyoming-whisper.tar 7163929fa497


docker save -o ./wyoming-whisper.tar rhasspy/wyoming-whisper


cp

/t/path/to/local/data/models--rhasspy--faster-whisper-tiny-int8
0