Skip to content

Commit

Permalink
More platform-specific configurations (#556)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Oct 10, 2023
1 parent 8df7025 commit 115c31b
Show file tree
Hide file tree
Showing 21 changed files with 535 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_debos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
echo ${GOOGLE_KEY}>action/neon_debos/overlays/80-google-json-overlay/home/neon/.local/share/neon/google.json
env:
GOOGLE_KEY: ${{secrets.google_api_key}}
- name: Build and Export Image
- name: Build and Export Mk2 Image
run: |
bash action/neon_debos/run_automation.sh debian-neon-image.yml ${{ github.ref_name }} /var/www/html/app/files/neon_images/pi/mycroft_mark_2 rpi4 mark_2
- name: Build and Export OPi5 Image
run: |
bash action/neon_debos/run_automation.sh debian-neon-image.yml ${{ github.ref_name }} /var/www/html/app/files/neon_images/orange_pi_5/ opi5 opi5
3 changes: 3 additions & 0 deletions neon_core/configuration/mark_2/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,6 @@ system:
user:
- gui_websocket:host
- websocket:host
language:
detection_module: None
translation_module: libretranslate_plug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"app_view_timeout_mode": "pause"
}
172 changes: 172 additions & 0 deletions neon_core/configuration/opi5/neon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
play_wav_cmdline: "play %1"
play_mp3_cmdline: "play %1"
play_ogg_cmdline: "play %1"
g2p:
module: "dummy"
tts:
module: neon-tts-plugin-coqui-remote
fallback_module: coqui
neon-tts-plugin-larynx-server:
host: "https://larynx.2022.us"
mozilla_remote:
api_url: "https://mtts.2022.us/api/tts"
Audio:
backends:
OCP:
type: ovos_common_play
active: true
dbus_type: system
audio_parsers:
blacklist:
- gender
stt:
module: neon-stt-plugin-nemo
fallback_module: ovos-stt-plugin-vosk
ovos-stt-plugin-vosk:
model: /home/neon/.local/share/neon/vosk-model-small-en-us-0.15
confirm_listening: true
listener:
VAD:
silence_method: vad_only
module: ovos-vad-plugin-silero
mute_during_output: true
instant_listen: true
speech_begin: 0.5
silence_end: 0.9
utterance_chunks_to_rewind: 1
hotwords:
wake_up:
active: false
hey_neon:
model_folder: /home/neon/.local/share/neon/vosk-model-small-en-us-0.15
hey_mycroft:
module: ovos-ww-plugin-precise-lite
model: https://github.com/OpenVoiceOS/precise-lite-models/raw/master/wakewords/en/hey_mycroft.tflite
listen: True
expected_duration: 3
trigger_level: 3
sensitivity: 0.5

sounds:
start_listening: snd/start_listening.wav
acknowledge: snd/acknowledge.mp3
gui_websocket:
host: 0.0.0.0
base_port: 18181
route: /gui
ssl: false
websocket:
host: 0.0.0.0
port: 8181
route: /core
ssl: false
allow_self_signed: false
ssl_cert:
ssl_key:
shared_connection: true
gui:
idle_display_skill: skill-ovos-homescreen.openvoiceos
extension: smartspeaker
run_gui_file_server: false
generic:
homescreen_supported: true
MQ:
server: mq.2023.us
port: 35672
users:
mq_handler:
user: neon_api_utils
password: Klatchat2021
signal:
use_signal_files: false
skills:
blacklisted_skills:
- skill-ovos-setup.openvoiceos
- skill-messaging.neongeckocom
- skill-custom_conversation.neongeckocom
- skill-instructions.neongeckocom
- skill-audio_record.neongeckocom
# TODO: extra_directories here is the default, can it be removed?
extra_directories:
- /home/neon/.local/share/neon/skills
default_skills: []
PHAL:
ovos-PHAL-plugin-balena-wifi:
enabled: false
debug: false
ssid: Neon
psk:
color: '#ff8600'
portal: start dot neon dot ai
device: Neon Device
ovos-PHAL-plugin-system:
core_service: neon.service
neon-phal-plugin-linear-led:
mute_color: burnt_orange
sleep_color: red
utterance_animation: refill
neon-phal-plugin-fan:
min_fan_temp: 40.0
admin:
neon-phal-plugin-device-updater:
enabled: true
initramfs_url: "https://github.com/NeonGeckoCom/neon_debos/raw/{}/overlays/02-opi5/boot/uInitrd"
initramfs_path: /opt/neon/firmware/uInitrd
initramfs_update_path: /opt/neon/uInitrd
squashfs_url: "https://2222.us/app/files/neon_images/opi5/updates/{}/"
squashfs_path: /opt/neon/update.squashfs
default_track: dev
neon-phal-plugin-linear-led-neopixel:
enabled: true
neon-phal-plugin-core-updater:
enabled: true
update_command: systemctl start neon-updater
core_module: neon_core
github_ref: NeonGeckoCom/NeonCore
neon-phal-plugin-reset:
enabled: true
default_config_url: "https://github.com/NeonGeckoCom/NeonCore/archive/refs/tags/{}.zip"
default_config_path: neon_core/configuration/opi5
neon-phal-plugin-audio-receiver:
enabled: true
ready_settings:
- skills
- voice
- audio
- gui_service
- internet
- network_skills
- internet_skills
# - setup
server:
backend_type: offline

# Logging Config
log_dir: /home/neon/logs/
log_level: INFO
logs:
path: /home/neon/.local/state/neon/
max_bytes: 50000000
backup_count: 3
diagnostic: False
level_overrides:
error: []
warning:
- filelock
- botocore
info: []
debug: []
debug: False
system_unit: imperial
system:
protected_keys:
remote:
- gui_websocket:host
- websocket:host
- ready_settings
user:
- gui_websocket:host
- websocket:host
language:
detection_module: None
translation_module: libretranslate_plug
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prompt_on_start": false,
"demo_tts_engine": "ovos-tts-plugin-mimic",
"__mycroft_skill_firstrun": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"emit_led": true,
"show_utterances": true,
"__mycroft_skill_firstrun": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prompt_on_start": false,
"__mycroft_skill_firstrun": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"__mycroft_skill_firstrun": false,
"demo_url": "https://2222.us/app/files/neon_music/music.zip",
"music_dir": "/media/sdb"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"weather_skill": "skill-weather.neongeckocom",
"datetime_skill": "skill-date_time.neongeckocom",
"examples_skill": "skill-about.neongeckocom",
"wallpaper": "neon_default.jpg",
"persistent_menu_hint": true,
"examples_enabled": true,
"examples_prefix": false,
"__mycroft_skill_firstrun": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"enable_language_selection": false,
"enable_backend_selection": false,
"enable_stt_selection": false,
"enable_tts_selection": false,
"preferred_stt_engine": "deepspeech_stream_local",
"preferred_tts_engine": "coqui",
"tts_blacklist": [
"ovos-tts-plugin-SAM",
"ovos-tts-plugin-beepspeak",
"ovos_tts_plugin_espeakng"
],
"stt_blacklist": [
"ovos-stt-plugin-pocketsphinx",
"ovos-stt-plugin-selene"
],
"langs": [
{
"name": "English",
"code": "en",
"system_code": "en_US"
},
{
"name": "Italian",
"code": "it",
"system_code": "it_IT"
},
{
"name": "French",
"code": "fr",
"system_code": "fr_FR"
},
{
"name": "Spanish",
"code": "es",
"system_code": "es_ES"
},
{
"name": "Portuguese",
"code": "pt",
"system_code": "pt_PT"
},
{
"name": "German",
"code": "de",
"system_code": "de_DE"
},
{
"name": "Dutch",
"code": "nl",
"system_code": "nl_NL"
}
],
"__mycroft_skill_firstrun": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"__mycroft_first_run": false,
"use_geolocation": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"app_view_timeout_mode": "pause"
}
Loading

0 comments on commit 115c31b

Please sign in to comment.