# Maintenance / update/install

`sudo systemctl start/stop/status voice`

https://rhasspy.readthedocs.io/en/latest/installation/#virtual-environment

## Installation

* (clone le repo)
* `export PIP_VERSION="pip<=20.2.4”`
* `./configure RHASSPY_LANGUAGE=fr --enable-in-place`
* `make`

### With Gruut:
* `make install-init`
* comment or delete all install-init in the makefile
* `source .venv/bin/activate`
* install `onnxruntime` with pip from `https://github.com/synesthesiam/prebuilt-apps/releases`
* install `phonetisaurus` with pip from `https://github.com/rhasspy/phonetisaurus-pypi/releases`
* install gruut `https://github.com/rhasspy/gruut/releases/tag/v0.9.0` 
* `make install` in rhasspy dir

### Without Gruut:
* Edit `setup.py` and answer "no" to gruut installation
* `make install` in rhasspy dir

## Microphone

* `sudo apt install pulseaudio`
* `pactl list sinks`
* `pactl set-default-sink 0`
* `vim ~/.asoundrc`
```
pcm.!default { 
    type asym playback.pcm { type plug slave.pcm “hw:0” }
    capture.pcm { type plug slave.pcm “hw:1” }
}
```
* reboot

[![](https://wiki.ppsfleet.navy/uploads/images/gallery/2021-12/scaled-1680-/image-1639098774587.png)](https://wiki.ppsfleet.navy/uploads/images/gallery/2021-12/image-1639098774587.png)