Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid JSON Error #79

Closed
qnlbnsl opened this issue Oct 27, 2023 · 3 comments
Closed

Invalid JSON Error #79

qnlbnsl opened this issue Oct 27, 2023 · 3 comments

Comments

@qnlbnsl
Copy link

qnlbnsl commented Oct 27, 2023

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
Copy link
Author

qnlbnsl commented Oct 27, 2023

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
Copy link
Member

JarbasAl commented Oct 27, 2023

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

@qnlbnsl
Copy link
Author

qnlbnsl commented Oct 27, 2023

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

@qnlbnsl qnlbnsl closed this as completed Oct 27, 2023
@github-actions github-actions bot mentioned this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants