initial commit homeintent
This commit is contained in:
78
homeintent/rhasspy/en/docker-compose.yml
Normal file
78
homeintent/rhasspy/en/docker-compose.yml
Normal file
@@ -0,0 +1,78 @@
|
||||
services:
|
||||
dialogue:
|
||||
command: --debug --host mqtt --port 12183 --site-id default --session-timeout
|
||||
30 --sound wake /usr/lib/rhasspy/etc/wav/beep_hi.wav --sound recorded /usr/lib/rhasspy/etc/wav/beep_lo.wav
|
||||
--sound error /usr/lib/rhasspy/etc/wav/beep_error.wav --volume 1 --min-asr-confidence
|
||||
0 --say-chars-per-second 33 --sound-suffix .wav --sound-suffix .mp3 --sound-suffix
|
||||
.ogg --sound-suffix .flac
|
||||
depends_on:
|
||||
- mqtt
|
||||
image: rhasspy/rhasspy-dialogue-hermes
|
||||
tty: true
|
||||
intent_recognition:
|
||||
command: --intent-graph /profiles/en/intent_graph.pickle.gz --debug --host mqtt
|
||||
--port 12183 --site-id default --replace-numbers --language en_US --casing lower
|
||||
--converters-dir /profiles/en/converters --failure-token <unk>
|
||||
depends_on:
|
||||
- mqtt
|
||||
image: rhasspy/rhasspy-nlu-hermes
|
||||
tty: true
|
||||
volumes:
|
||||
- /profiles:/profiles
|
||||
microphone:
|
||||
command: --sample-rate 16000 --sample-width 2 --channels 1 --debug --host mqtt
|
||||
--port 12183 --site-id default --udp-audio-host 127.0.0.1 --udp-audio-port 12202
|
||||
--frames-per-buffer 1024
|
||||
depends_on:
|
||||
- mqtt
|
||||
devices:
|
||||
- /dev/snd
|
||||
image: rhasspy/rhasspy-microphone-pyaudio-hermes
|
||||
tty: true
|
||||
mqtt:
|
||||
command: -p 12183
|
||||
entrypoint: mosquitto
|
||||
image: eclipse-mosquitto
|
||||
ports:
|
||||
- 12183:12183
|
||||
tty: true
|
||||
speakers:
|
||||
command: --play-command 'aplay -q -t wav' --list-command 'aplay -L' --volume 1
|
||||
--debug --host mqtt --port 12183 --site-id default
|
||||
depends_on:
|
||||
- mqtt
|
||||
devices:
|
||||
- /dev/snd
|
||||
image: rhasspy/rhasspy-speakers-cli-hermes
|
||||
tty: true
|
||||
speech_to_text:
|
||||
command: --model-type nnet3 --model-dir /profiles/en/kaldi/model --graph-dir /profiles/en/kaldi/model/graph
|
||||
--debug --host mqtt --port 12183 --site-id default --dictionary /profiles/en/kaldi/dictionary.txt
|
||||
--language-model /profiles/en/kaldi/language_model.txt --language-model-type
|
||||
text_fst --base-dictionary /profiles/en/kaldi/base_dictionary.txt --base-dictionary
|
||||
/profiles/en/kaldi_custom_words.txt --dictionary-casing lower --g2p-model /profiles/en/kaldi/g2p.fst
|
||||
--unknown-words /profiles/en/kaldi_unknown_words.txt --base-language-model-fst
|
||||
/profiles/en/kaldi/base_language_model.fst --base-language-model-weight 0 --mixed-language-model-fst
|
||||
/profiles/en/kaldi/mixed.fst --frequent-words /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/frequent_words.txt
|
||||
--max-frequent-words 100 --max-unknown-words 8 --unknown-words-probability 1e-05
|
||||
--unknown-token '<unk>' --silence-probability 0.5 --cancel-word '' --cancel-probability
|
||||
0.01 --voice-skip-seconds 0 --voice-min-seconds 1 --voice-max-seconds 20 --voice-speech-seconds
|
||||
0.3 --voice-silence-seconds 0.5 --voice-before-seconds 0.5 --voice-sensitivity
|
||||
1 --voice-silence-method vad_only
|
||||
depends_on:
|
||||
- mqtt
|
||||
image: rhasspy/rhasspy-asr-kaldi-hermes
|
||||
tty: true
|
||||
volumes:
|
||||
- /profiles:/profiles
|
||||
wake:
|
||||
command: --keyword jarvis_linux.ppn --sensitivity 0.5 --keyword-dir /profiles/en/porcupine
|
||||
--debug --host mqtt --port 12183 --site-id default --udp-audio 127.0.0.1 12202
|
||||
default
|
||||
depends_on:
|
||||
- mqtt
|
||||
image: rhasspy/rhasspy-wake-porcupine-hermes
|
||||
tty: true
|
||||
volumes:
|
||||
- /profiles:/profiles
|
||||
version: '2'
|
||||
28
homeintent/rhasspy/en/profile.json
Normal file
28
homeintent/rhasspy/en/profile.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"dialogue": {
|
||||
"system": "rhasspy"
|
||||
},
|
||||
"intent": {
|
||||
"system": "fsticuffs"
|
||||
},
|
||||
"microphone": {
|
||||
"pyaudio": {
|
||||
"udp_audio_host": "127.0.0.1",
|
||||
"udp_audio_port": "12202"
|
||||
},
|
||||
"system": "pyaudio"
|
||||
},
|
||||
"sounds": {
|
||||
"system": "aplay"
|
||||
},
|
||||
"speech_to_text": {
|
||||
"system": "kaldi"
|
||||
},
|
||||
"wake": {
|
||||
"porcupine": {
|
||||
"keyword_path": "jarvis_linux.ppn",
|
||||
"udp_audio": "127.0.0.1:12202"
|
||||
},
|
||||
"system": "porcupine"
|
||||
}
|
||||
}
|
||||
0
homeintent/rhasspy/en/sentences.ini
Normal file
0
homeintent/rhasspy/en/sentences.ini
Normal file
53
homeintent/rhasspy/en/supervisord.conf
Normal file
53
homeintent/rhasspy/en/supervisord.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:mqtt]
|
||||
command=mosquitto -p 12183
|
||||
priority=0
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:microphone]
|
||||
command=rhasspy-microphone-pyaudio-hermes --sample-rate 16000 --sample-width 2 --channels 1 --debug --host localhost --port 12183 --site-id default --udp-audio-host 127.0.0.1 --udp-audio-port 12202 --frames-per-buffer 1024
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:speakers]
|
||||
command=rhasspy-speakers-cli-hermes --play-command 'aplay -q -t wav' --list-command 'aplay -L' --volume 1 --debug --host localhost --port 12183 --site-id default
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:wake_word]
|
||||
command=rhasspy-wake-porcupine-hermes --keyword jarvis_linux.ppn --sensitivity 0.5 --keyword-dir /profiles/en/porcupine --debug --host localhost --port 12183 --site-id default --udp-audio 127.0.0.1 12202 default
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:speech_to_text]
|
||||
command=rhasspy-asr-kaldi-hermes --model-type nnet3 --model-dir /profiles/en/kaldi/model --graph-dir /profiles/en/kaldi/model/graph --debug --host localhost --port 12183 --site-id default --dictionary /profiles/en/kaldi/dictionary.txt --language-model /profiles/en/kaldi/language_model.txt --language-model-type text_fst --base-dictionary /profiles/en/kaldi/base_dictionary.txt --base-dictionary /profiles/en/kaldi_custom_words.txt --dictionary-casing lower --g2p-model /profiles/en/kaldi/g2p.fst --unknown-words /profiles/en/kaldi_unknown_words.txt --base-language-model-fst /profiles/en/kaldi/base_language_model.fst --base-language-model-weight 0 --mixed-language-model-fst /profiles/en/kaldi/mixed.fst --frequent-words /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/frequent_words.txt --max-frequent-words 100 --max-unknown-words 8 --unknown-words-probability 1e-05 --unknown-token '<unk>' --silence-probability 0.5 --cancel-word '' --cancel-probability 0.01 --voice-skip-seconds 0 --voice-min-seconds 1 --voice-max-seconds 20 --voice-speech-seconds 0.3 --voice-silence-seconds 0.5 --voice-before-seconds 0.5 --voice-sensitivity 1 --voice-silence-method vad_only
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:intent_recognition]
|
||||
command=rhasspy-nlu-hermes --intent-graph /profiles/en/intent_graph.pickle.gz --debug --host localhost --port 12183 --site-id default --replace-numbers --language en_US --casing lower --converters-dir /profiles/en/converters --failure-token <unk>
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:dialogue]
|
||||
command=rhasspy-dialogue-hermes --debug --host localhost --port 12183 --site-id default --session-timeout 30 --sound wake /usr/lib/rhasspy/etc/wav/beep_hi.wav --sound recorded /usr/lib/rhasspy/etc/wav/beep_lo.wav --sound error /usr/lib/rhasspy/etc/wav/beep_error.wav --volume 1 --min-asr-confidence 0 --say-chars-per-second 33 --sound-suffix .wav --sound-suffix .mp3 --sound-suffix .ogg --sound-suffix .flac
|
||||
stopasgroup=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
23
homeintent/rhasspy/en/supervisord.log
Normal file
23
homeintent/rhasspy/en/supervisord.log
Normal file
@@ -0,0 +1,23 @@
|
||||
2022-05-12 23:00:35,768 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
|
||||
2022-05-12 23:00:35,772 INFO supervisord started with pid 181
|
||||
2022-05-12 23:00:36,775 INFO spawned: 'mqtt' with pid 204
|
||||
2022-05-12 23:00:37,885 INFO success: mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:38,675 WARN received SIGHUP indicating restart request
|
||||
2022-05-12 23:00:38,676 INFO waiting for mqtt to die
|
||||
2022-05-12 23:00:38,782 INFO stopped: mqtt (exit status 0)
|
||||
2022-05-12 23:00:38,799 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
|
||||
2022-05-12 23:00:38,800 INFO supervisord started with pid 181
|
||||
2022-05-12 23:00:39,802 INFO spawned: 'mqtt' with pid 206
|
||||
2022-05-12 23:00:39,806 INFO spawned: 'dialogue' with pid 207
|
||||
2022-05-12 23:00:39,813 INFO spawned: 'speech_to_text' with pid 208
|
||||
2022-05-12 23:00:39,827 INFO spawned: 'speakers' with pid 211
|
||||
2022-05-12 23:00:39,832 INFO spawned: 'intent_recognition' with pid 213
|
||||
2022-05-12 23:00:39,842 INFO spawned: 'wake_word' with pid 214
|
||||
2022-05-12 23:00:39,855 INFO spawned: 'microphone' with pid 216
|
||||
2022-05-12 23:00:40,840 INFO success: mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,841 INFO success: dialogue entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,841 INFO success: speech_to_text entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,841 INFO success: speakers entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,841 INFO success: intent_recognition entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,841 INFO success: wake_word entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
2022-05-12 23:00:40,852 INFO success: microphone entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
|
||||
1
homeintent/rhasspy/en/supervisord.pid
Normal file
1
homeintent/rhasspy/en/supervisord.pid
Normal file
@@ -0,0 +1 @@
|
||||
181
|
||||
Reference in New Issue
Block a user