GithubHelp home page GithubHelp logo

Slots creation about rhasspy HOT 5 CLOSED

rhasspy avatar rhasspy commented on July 30, 2024
Slots creation

from rhasspy.

Comments (5)

synesthesiam avatar synesthesiam commented on July 30, 2024

Did you create a new slot first?

from rhasspy.

keith721 avatar keith721 commented on July 30, 2024

Just noticed this same behavior. I'll try creating a single new slot first, then reloading all my previously existing 2.4.x slots.

Nope, didn't change the results. The slots file in my profile directory DOES contain all the slots I copied in, though. So that's good.

from rhasspy.

parasaurolophus avatar parasaurolophus commented on July 30, 2024

Not exactly the same issue, but FWIW in a fresh install of the 2.5.0 docker based version with no pre-existing profile, I had to manually create the $HOME/.config/rhasspy/profile/en/slots directory in order for "New Slot" to work. Once I did so, I was able to use the web UI to create and edit slots files.

Is it possible that there is some strangeness with file ownership / permissions that could affect users with pre-existing profile files? The whole directory tree under $HOME/.config/rhasspy ended up owned by root even though I launched the docker container without sudo after adding myself to the docker group -- i.e. "docker run..." rather than "sudo docker run..." -- even though that is very bad practice. I'm going to experiment with starting over and passing the user and group pids for myself into the "docker run..." command to see if that changes things.

from rhasspy.

keith721 avatar keith721 commented on July 30, 2024

@parasaurolophus nailed it, on the head.
Without the slots sub-directory being present in the profile directory, the service could not properly create and save new slot files.

from rhasspy.

synesthesiam avatar synesthesiam commented on July 30, 2024

The whole directory tree under $HOME/.config/rhasspy ended up owned by root even though I launched the docker container without sudo after adding myself to the docker group

This happens because the user inside the Docker container is root by default. You need to add this to your docker run command:

$ docker run ... --user "$(id -u):$(id -g)" ...

Beware that this can sometimes fail to access the microphone directly, which is why I don't do it by default in the documentation.

Rhasspy always tries to create the slot sub-directories before writing the slot, so this must be a permissions issue. After switching between Docker and a venv install, I often have to do:

$ sudo chown -R $USER:$USER ~/.config/rhasspy

from rhasspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.