commit a1c8cc99e91b8a62a887233fb4422ee44469b954 Author: HugoPoi Date: Sun Oct 11 15:15:08 2020 +0200 Initial working setup diff --git a/.mycroft/mycroft.conf b/.mycroft/mycroft.conf new file mode 100644 index 0000000..7d4aff5 --- /dev/null +++ b/.mycroft/mycroft.conf @@ -0,0 +1,12 @@ +{ + "max_allowed_core_version": 20.8, + "listener": { + "device_index": 12 + }, + "stt": { + "deepspeech_server": { + "uri": "http://deepspeech-server:8080/stt" + }, + "module": "deepspeech_server" + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..70351af --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Demo setup for Mycroft powered by Deepspeech + +1. run `./setup.sh` for downloading models and scorer for deepspeech + engine +1. then `docker-compose up` is all you need + +## Notes + +* For setup audio correctly [this](https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/troubleshooting/audio-troubleshooting) was really helpfull +* Trying audio with `audiotest` is VERY helpfull `docker-compose run --entrypoint /bin/bash mycroft` then `./start-mycroft.sh audiotest -l` +* I have pulseaudio on my setup so device index 12 was pulse for me, + then I had to select the correct default device for pulse with `pactl list sources short` and `pactl set-default-source 2`. And device_index is the alsa index NOT the pulseaudio index. diff --git a/deepspeech/config.json b/deepspeech/config.json new file mode 100644 index 0000000..ff4ddd9 --- /dev/null +++ b/deepspeech/config.json @@ -0,0 +1,18 @@ +{ + "deepspeech": { + "model" :"/opt/deepspeech/deepspeech-0.8.2-models.pbmm", + "scorer" :"/opt/deepspeech/deepspeech-0.8.2-models.scorer" + }, + "server": { + "http": { + "host": "0.0.0.0", + "port": 8080, + "request_max_size": 1048576 + } + }, + "log": { + "level": [ + { "logger": "deepspeech_server", "level": "DEBUG"} + ] + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c311948 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.3' + +services: + mycroft: + image: mycroftai/docker-mycroft + environment: + PULSE_SERVER: unix:${XDG_RUNTIME_DIR}/pulse/native + volumes: + - .mycroft:/root/.mycroft + - ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native + - ~/.config/pulse/cookie:/root/.config/pulse/cookie + devices: + - /dev/snd + deepspeech-server: + image: romainsah/deepspeech-server:latest + volumes: + - ./deepspeech:/opt/deepspeech diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..a02884d --- /dev/null +++ b/setup.sh @@ -0,0 +1,3 @@ +cd ./deepspeech +wget https://github.com/mozilla/DeepSpeech/releases/download/v0.8.2/deepspeech-0.8.2-models.pbmm +wget https://github.com/mozilla/DeepSpeech/releases/download/v0.8.2/deepspeech-0.8.2-models.scorer