Skip to content

Instantly share code, notes, and snippets.

@msva
Forked from putnik/install.sh
Created October 1, 2023 14:28
Show Gist options
  • Save msva/a66ad46e380b33ae92a55dc9d2a5f482 to your computer and use it in GitHub Desktop.
Save msva/a66ad46e380b33ae92a55dc9d2a5f482 to your computer and use it in GitHub Desktop.
OpenVoiceOS Russian config
# Configure RPi
sudo /sbin/iwconfig wlan0 power off
sudo sed -i 's/exit 0/\/sbin\/iwconfig wlan0 power off\n\nexit 0/g' /etc/rc.local
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
sudo usermod -aG docker $USER
newgrp docker
# Prepare ovos-docker
git clone https://github.com/OpenVoiceOS/ovos-docker.git -b dev
mkdir -p ~/ovos/{config,share,tmp} ~/hivemind/{config,share}
chown ${USER}:${USER} -R ~/ovos ~/hivemind
cd ~/ovos-docker/compose
# Configure ovos-docker
cp .env-raspberrypi .env
curl https://gist.githubusercontent.com/putnik/26d8a8ad70cd428bb79bbe0c25811bfe/raw/mycroft.conf --output ~/ovos/config/mycroft.conf
echo "ovos-tts-plugin-silero" > ~/ovos/config/audio.list
# Run docker containers
sudo service docker start
docker compose --project-name ovos --file docker-compose.yml --file docker-compose.raspberrypi.yml --file docker-compose.skills.yml up --detach
docker exec -ti ovos_cli ovos-speak "всё готово к работе" # preload model
{
"debug": true,
"log_level": "DEBUG",
"listener": {
"wake_word": "marvin",
"microphone": {
"module": "ovos-microphone-plugin-alsa"
},
"device": "hw:3,0"
},
"hotwords": {
"marvin": {
"module": "ovos-ww-plugin-precise-lite",
"listen": true,
"active": true,
"sound": "snd/start_listening.wav",
"model": "https://github.com/OpenVoiceOS/precise-lite-models/raw/master/wakewords/en/marvin.tflite"
}
},
"play_wav_cmdline": "aplay %1",
"lang": "ru-ru",
"stt": {
"module": "ovos-stt-plugin-vosk",
"ovos-stt-plugin-vosk": {
"model": "https://alphacephei.com/vosk/models/vosk-model-small-ru-0.22.zip"
}
},
"tts": {
"module": "ovos-tts-plugin-silero",
"ovos-tts-plugin-silero": {
"model": "v4_ru",
"voice": "eugene",
"sample_rate": 8000
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment