#Recommended hardware for using HA with Voice

1 messages · Page 1 of 1 (latest)

valid ermine
#

Hey all I've recently decided to destroy my sanity and try to transition to voice in home assistant. I purchased the Voice PE and got it connected.

1st question I have is should I connect it to ESPHome? I know it stops automatic updates which is a nice feature and wondering is it worth it to have ESPHome take it over. Gives you that nice warning about you have to do it.

2nd question would be best setup for running Home Assistant. Currently I am running Home Assistant in a VM that has 6 cores and 8GBs of memory to it on proxmox. I have a zigbee usb stick on it. Works well and currently connected with Google so I can use google to control the home. Now I'm looking to move to local voice. Is my base configuration good? Should I upgrade the VM at all? What can be done to maybe speed up the process.

Any good videos around the topic you guys find useful on the topic? Appreciate all the input!

random valley
# valid ermine Hey all I've recently decided to destroy my sanity and try to transition to voic...

dont adopt it into ESPHome builder tool unless you intend to make custom firmware changes. there is no reason to do it otherwise.

I run my HA on a mini PC but i offload my whisper to another system which has a GPU and uses gpu acceleration to speed up the STT and allows me to run a larger whisper model (and local llm)

your current VM sounds fine for running the HA server but to run fully local voice quicker and more accuratly you may need to make changes. but it really depends on what your goal is, what you currently have available etc...

valid ermine
random valley
#

i have a 5060ti (16gb) on one of my proxmox servers which is used for gpu acceleration but that is more extreme tthan is needed for basic stuff as i also run LLM on it. if you just want basic voice then a lower end card is fine. before that upgrade i ran a 1650 super(4gb) which ran whisper perfectly fine.

if you only want more basic commands you can also look at using "speech to phrase" which is more limited in commands as it cant account for variables but it runs fast without acceleration if you only want to use "fixed commands"

valid ermine
#

wonder how well it would work on this macbook pro. Its my old work laptop and I just watch videos on it during work at the new job occasionally lol. That or curious to try setting up a VM and pass the radeon through to it, that has 8GB. You use an LXC container to run the whisper or another VM? IEventually I'd like to do an AI machine and thinking to see how these new intel cards look when they come out.

random valley
#

whisper is runnong on docker in an ubuntu virtual machine on proxmox. the GPU is attached directly to the VM by PCIE passthrough. I dont know anything about gpu acceleration of whisper with a radeon card. i am sure there are probably options but its not something i have looked into as i tend to keep with nvidia cards.

valid ermine
#

Thanks for the input. I also have the 580 passed through to my docker vm. I did the same, proxmox with a ubuntu vm running docker. I'll have to give this a try

valid ermine
#

cant seem to get this thing to even start lol

random valley
valid ermine
#

no i just get a restarting 132 on the docker

dusky pivot
#

Please share exactly what you see.

valid ermine
#

Hey impact sorry for delay. Not really anything to show. Docker logs don't have anything because it's not starting. I can share the dockerfile I ran from that repo where I ran the base docker file and nothing, I tried also some environment variables based on an open issue another person mentioned but still nothing. When it starts and you do a docker ps and you look at the status it just says restarting 132

random valley
#

or maybe a kernel module is missing. i don't know enough about the specific pieces of this puzzle

valid ermine
#

So it is a proxmox vm and I've passed thru the GPU. I don't know if I need to install anything specifically for it and I can't find anything stating something needs installed or setup before running the docker.

valid ermine
#

I don't think I've left anything disabled in the bios. It's an older supermicro board with only pcie 2 from looking at it. Pretty sure at this point this box might not be worth trynna do anything more.

random valley
valid ermine
#

oooo its not set to host

#

KVM64

random valley
#

yup, that will have been slowing things down a bit too.
so after switching it will be zoom zoom time 🙂 and all the cpu instructions should be available to the vm

valid ermine
#

Ahhhhh

#

ok let me give this a shot

#

i cant change type can I?

dusky pivot
#

Of course.

valid ermine
#

I must be missing something because its graeyed out.

dusky pivot
#

Can you share what you see?

valid ermine
#

nm got it, let me change it now. Alright lets see

valid ermine
#

alright so its on host, built it all over again and yea it just sits and does this ```CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
196af6630d55 whisper-rocm-whisper "/src/run.sh --downl…" 30 seconds ago Restarting (132) 1 second ago whisper

dusky pivot
#

What does docker logs -tf name/id say? Can you also share your compose file? Is amdgpu-dkms installed? Does lscpu show the right CPU now?

valid ermine
#

Maybe you have some insight on this. When I run amdgpu_top it tells me my graphics card is a 480 and I know for a fact its a 580 lol.

dusky pivot
#

Hmm. What does lspci and nvtop say? Does docker compose up log anything?

valid ermine
#

00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7) 00:10.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]

#

installing nvtop now

dusky pivot
#

Without -d so it starts in the foreground. About the model I'm not sure. Might be normal considering lspci shows it like that.

valid ermine
valid ermine
#

ok amdgpu-dkms I'm having trouble getting installed, I got amdgpu-install to run but yea I still can't get the container to load.

dusky pivot
valid ermine
#

Thank you, let me try doing this rocm install part, I didn't do this. I was looking around my stack of hardware to see what I have that make life easy.

dusky pivot
#

Damn this docker image is enormous. Try to run it like this

docker run --entrypoint '' -v $(pwd)/data:/data -v $(pwd)/src:/src -it --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video -p 10300:10300 rocm-wyoming-whisper bash

This gives you a CLI into the container. You can then run it like this which might give more information

python -m wyoming_whisper --download-dir /data --model medium --debug

Also try

apt install strace
strace python -m wyoming_whisper --download-dir /data --model medium --debug
valid ermine
#

Will give that a try. I think I have other issues with recently rebooting my docker VM docker just stops and never starts.I can uninstall and reinstall it and it works again. Which points me to moving to a different server but I dont think the new cisco server I'm thinking of migrating to has space for the card lol.

valid ermine
#
root@83e1d4b7dc7f:/src# python -m wyoming_whisper --download-dir /data --model medium --debug
Illegal instruction (core dumped)```