!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

511 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant133 Servers

Load older messages


SenderMessageTime
24 Jan 2025
@uep:matrix.orguep *
      services.home-assistant = {
        # ...
        extraComponents = [
          # ...
          # voice assistant
          "piper"
          "whisper"
          "wake_word"
          "wyoming"
        ];
      };

      services.wyoming = {
        faster-whisper.servers.whisper = {
          enable = true;
          uri = "tcp://127.0.0.1:10300";
          device = "cpu";
          language = "en";
          model = "medium-int8";
        };
        openwakeword = {
          enable = true;
          uri = "tcp://127.0.0.1:10400";
        };
        piper.servers.piper = {
          enable = true;
          uri = "tcp://127.0.0.1:10200";
          voice = "en_GB-semaine-medium";
        };
      };
11:00:35
@laurynasp:matrix.orglaurynaspThanks!11:31:01
@laurynasp:matrix.orglaurynaspI got it to work, thanks a lot uep! 15:49:23
@laurynasp:matrix.orglaurynasp P.s. I noticed that on nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and "find_voice" in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:49:28
@laurynasp:matrix.orglaurynasp * P.s. I noticed that on recent nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and "find_voice" in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:49:46
@hexa:lossy.network@hexa:lossy.networkoh no 😕15:54:49
@hexa:lossy.network@hexa:lossy.networkwhy can you specify both then?15:55:44
@laurynasp:matrix.orglaurynasp * P.s. I noticed that on recent nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and find\_voice in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming\_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:56:00
@laurynasp:matrix.orglaurynaspYeah, it does seem a bit strange.. I think data dirs can be a list of directories (having peeked at the pyton code briefly), but I am not that good at python, so I might be wrong15:57:16
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/rhasspy/wyoming-piper/blob/master/wyoming_piper/__main__.py#L4316:09:45
@hexa:lossy.network@hexa:lossy.networkthe download-dir is the first data dir 🤡16:09:51
@hexa:lossy.network@hexa:lossy.networkand if there is no downloads dir, then the first data dir becomes the downloads dir16:10:17
@uep:matrix.orguepyah, i noticed my HA box was failing builds after the last staging landed a couple of days ago, and that it was something with the voice things, but didn't look further.16:10:37
@hexa:lossy.network@hexa:lossy.networkI made a bunch of changes based on homeassistant-addons16:10:55
@hexa:lossy.network@hexa:lossy.networkbut I only approximated them and merged after two days without review16:11:04
@hexa:lossy.network@hexa:lossy.networkand obviously I made errors in that 🫣16:11:11
@hexa:lossy.network@hexa:lossy.networkok, this is stupid16:12:55
@hexa:lossy.network@hexa:lossy.networkdata dir is required16:13:23
@hexa:lossy.network@hexa:lossy.networkdownload dir is optional16:13:27
@hexa:lossy.network@hexa:lossy.networkand if you set a download dir, then it does not move anything to the datadir16:13:46
@hexa:lossy.network@hexa:lossy.networknor does it use the download dir as a datadir16:13:54
@hexa:lossy.network@hexa:lossy.networkall of this is fckd16:13:59
@hexa:lossy.network@hexa:lossy.networkfaster-whisper has the same pattern, wondering if it is fckd there as well16:22:59
@laurynasp:matrix.orglaurynasp faster-whisper works without any problems for me (using model medium-int8) 16:27:17
@hexa:lossy.network@hexa:lossy.networkso maybe some code to port over16:31:57
@hexa:lossy.network@hexa:lossy.networkok so17:22:12
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/search?q=repo%3Arhasspy%2Fwyoming-faster-whisper%20data_dir&type=code17:22:13
@hexa:lossy.network@hexa:lossy.networkI don't get it17:22:15
@hexa:lossy.network@hexa:lossy.networkthe data dir is mandatory17:23:35
@hexa:lossy.network@hexa:lossy.networkif no download dir is set, the first data dir becomes the download dir17:23:50

Show newer messages


Back to Room ListRoom Version: 6