Initial working setup
This commit is contained in:
commit
a1c8cc99e9
12
.mycroft/mycroft.conf
Normal file
12
.mycroft/mycroft.conf
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
12
README.md
Normal file
12
README.md
Normal file
|
@ -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.
|
18
deepspeech/config.json
Normal file
18
deepspeech/config.json
Normal file
|
@ -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"}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user