2024年11月21日星期四 下午10:19:38

How to manually install Piper and whisper on Home Assistant OS?

11 个月 前
#23820 引用
How to manually install Piper and whisper on Home Assistant OS?


Home Assistant Add-on: Whisper
Home Assistant add-on that uses faster-whisper
https://github.com/guillaumekln/faster-whisper/
https://github.com/guillaumekln/faster-whisper/)for speech-to-text.

2024.05
https://github.com/SYSTRAN/faster-whisper

2024.05.5
Whisper
https://github.com/home-assistant/addons/blob/master/whisper
Home Assistant Add-on: Whisper
https://github.com/guillaumekln/faster-whisper/

Home Assistant Add-on: Piper
Home Assistant add-on that uses piper for text-to-speech.

https://github.com/home-assistant/addons/tree/master/piper
2024.05
The documentation within the repo only says:
Home Assistant add-on that uses https://github.com/rhasspy/piper/ for text-to-speech.
0
11 个月 前
#23821 引用
Hardwaore

Realteak(R)Audio   杨声器

Hassos 附加声卡进来


what about wyoming-piper and wyoming-faster-whisper

wyoming-piper

Home Assistant add-on that uses piper https://github.com/rhasspy/piper/ for text-to-speech

source:Home Assistant Add-on: Piper
http://192.168.2.119:8123/hassio/addon/core_piper/info
0
11 个月 前
#23822 引用
Piper add-on

The documentation within the repo only says:

Follow these steps to get the add-on installed on your system:


Navigate in your Home Assistant frontend to Settings → Add-ons → Add-on store.
Find the “Piper” add-on and click it.
Click on the “INSTALL” button.


On first run, piper downloads voices.json and a model $model.onnx.json

Piper  download voices.json and the model files on first run,

This will automatically download voice files the first time they're used.
0
11 个月 前
#23823 引用
https://github.com/home-assistant/addons/tree/b2c5fdcaa091bf8b29ad10bfcc20ea9283f7bbc4/piper

https://github.com/home-assistant/addons/tree/b2c5fdcaa091bf8b29ad10bfcc20ea9283f7bbc4/whisper

whisper add-on
https://github.com/home-assistant/addons/blob/master/whisper/Dockerfile

RUN \
    apt-get update \
    && apt-get install -y --no-install-recommends \
        build-essential \
        netcat \
        python3 \
        python3-dev \
        python3-pip \
    \
    && pip3 install --no-cache-dir -U \
        setuptools \
        wheel \
    && pip3 install --no-cache-dir \
        "wyoming-faster-whisper @ https://github.com/rhasspy/wyoming-faster-whisper/archive/refs/tags/v${WYOMING_WHISPER_VERSION}.tar.gz" \
    \
    && apt-get purge -y --auto-remove \
        build-essential \
        python3-dev \
    && rm -rf /var/lib/apt/lists/*


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

piper add on

https://github.com/home-assistant/addons/blob/master/piper/Dockerfile

RUN \
    apt-get update \
    && apt-get install -y --no-install-recommends \
        netcat-traditional \
        python3 \
        python3-pip \
    \
    && pip3 install --no-cache-dir -U \
        setuptools \
        wheel \
    && pip3 install --no-cache-dir \
        "wyoming-piper @ https://github.com/rhasspy/wyoming-piper/archive/refs/tags/v${WYOMING_PIPER_VERSION}.tar.gz" \
    \
    && ARCH="${BUILD_ARCH}" \
    && if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi \
    && curl -L -s \
        "https://github.com/rhasspy/piper/releases/download/v${BINARY_PIPER_VERSION}/piper_${ARCH}.tar.gz" \
        | tar -zxvf - -C /usr/share \
    \
    && rm -rf /var/lib/apt/lists/*


https://github.com/rhasspy/wyoming-piper
0
11 个月 前
#24080 引用


On first run, piper downloads voices.json and a model $model.onnx.json

Piper  download voices.json and the model files on first run,
0
8 个月 前
#29816 引用
Set your voice and language in the Piper addon configuration.


Check and update voices.json on first run (i.e. do --update-voices by default if voices.json doesn't exist)

在 AI 领域,大模型的下载对于研究和开发至关重要。然而,用户难以直接访问 Huggingface.co 来获取所需资源。


DEBUG:wyoming_piper.download:Downloading https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/zh/zh_CN/huayan/x_low/zh_CN-huayan-x_low.onnx to /data/zh_CN-huayan-x_low.onnx
ERROR:wyoming_piper.download:Unexpected error while downloading files for zh_CN-huayan-x_low


wyoming_piper.download.VoiceNotFoundError: zh_CN-huayan-x_low
[08:02:16] INFO: Service exited with code 1 (by signal 0)

https://blog.matterxiaomi.com/blog/Local-Voice-Home-Assistant-OS-part2/
0
8 个月 前
#29817 引用
1
0
8 个月 前
#29818 引用
Whisper add-on


wyoming_faster_whisper
0
8 个月 前
#29819 引用


s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service whisper: starting
s6-rc: info: service whisper successfully started
s6-rc: info: service discovery: starting

0
7 个月 前
#29858 引用
After this add-on is installed and running, it will be automatically discovered by the Wyoming integration
0