OpenVoiceOS / ovos-config

OVOS configuration manager library
Apache License 2.0
2 stars 11 forks source link

Invalid JSON Error #79

Closed qnlbnsl closed 1 year ago

qnlbnsl commented 1 year ago

Hey guys, i was trying to install OVOS in a VM when i ran across this error: Opening filename: /home/qnlbnsl/venv-ovos/lib/python3.11/site-packages/ovos_config/mycroft.conf Opening filename: /home/qnlbnsl/.config/mycroft/mycroft.conf Invalid JSON: Expecting property name enclosed in double quotes: line 1 column 198 (char 197) Opening filename: /home/qnlbnsl/.config/mycroft/mycroft.conf Invalid JSON: Expecting property name enclosed in double quotes: line 1 column 198 (char 197)

I dug a little bit more and i found that the config file was not overriding the first config file. rather it was being appended.

{
    Original config
}
{
    User config
}

I think maybe a search and replace function is not running?

qnlbnsl commented 1 year ago

here is my config:

{
    "listener": {
        "VAD": {
            "module": "ovos-vad-plugin-silero",
            "ovos-vad-plugin-silero": {"threshold": 0.2}
            },
        "remove_silence": true,
        },
    "hotwords": {
        "hey_mycroft": {
            "module": "ovos-ww-plugin-precise-lite",
            "model": "/home/ovos/.local/share/precise_lite/hey_mycroft.tflite",
            "listen": true,
            "sound": "snd/start_listening.wav",
            "expected_duration": 3,
            "trigger_level": 3,
            "sensitivity": 0.5,
            "fallback_ww": "hey_mycroft_vosk"
            },
        "hey_mycroft_vosk": {
            "module": "ovos-ww-plugin-vosk",
            "model_folder": "/home/ovos/.local/share/vosk/vosk-model-small-en-us-0.15",
            "samples": ["hey mycroft", "hey microsoft", "hey mike roft", "hey minecraft"],
            "rule": "fuzzy",
            "fallback_ww": "hey_mycroft_pocketsphinx"
            },
        "hey_mycroft_pocketsphinx": {
            "module": "ovos-ww-plugin-pocketsphinx",
            "phonemes": "HH EY . M AY K R AO F T",
            "threshold": 1e-90,
            "lang": "en-us"
            }
        },
    "tts": {
        "module": "ovos-tts-plugin-server",
        "ovos-tts-plugin-piper": {
            "model": "alan-low"
            },
        "fallback_module": "ovos-tts-plugin-mimic",
        "ovos-tts-plugin-mimic": {
            "voice": "ap"
            }
        }
}
JarbasAl commented 1 year ago

you have an extra comma after "remove_silence": true, <-

qnlbnsl commented 1 year ago

yep just saw that. I will open an issue where that file was located as it was eh default file i got by running the manual_install.sh from the rasbian_ovos repository