Fix for H600 Logitech USB headset and Picroft

Thanks to @ake-mycroft we have a cool new fix. I now have a functional headset for

I’ve been trying forever to get my H600 Logitech USB headset to work by messing with settings and base files. Ake found it in two obscure lines of code I never would have guessed to look at.

The play wav and play mp3 lines were the culprits in my situation. Ake cleaned those up a little and I now have a functional headset.

Open your mycroft.conf file in etc/mycroft.

Replace the code with this shown below.

{
“play_wav_cmdline”: “aplay %1”,
“play_mp3_cmdline”: “mpg123 %1”,
“enclosure”: {
“platform”: “picroft”
},
“tts”: {
“mimic”: {
“path”: “/home/pi/mycroft-core/mimic/bin/mimic”
}
},
“ipc_path”: “/ramdisk/mycroft/ipc/”
}

So glad it’s working now, and good luck on the robotics project!

Just wanted to add a little more detail for others playing from home. As codewraith mentioned there are just two lines we’re interested in here.

So on your Picroft check the contents of your device level mycroft.conf file with:
cat /etc/mycroft/mycroft.conf

Make sure that the following two lines are set correctly:
"play_wav_cmdline": "aplay %1"
"play_mp3_cmdline": "mpg123 %1"

If they need to be edited you can do this by overriding them in your home directory:
sudo nano ~/.mycroft/mycroft.conf
then add the lines from above.

Very important! Don’t forget the “,” at the end of the line. JSON looks for this and throws an error if “,” is not included.

Yes, very much so, apologies for that!

You also need to be careful to not have it on the last entry. In the example provided in the original post this would be the “ipc_path”: “/ramdisk/mycroft/ipc/”

So the total file would look like:

{
  “play_wav_cmdline”: “aplay %1”,
  “play_mp3_cmdline”: “mpg123 %1”,
  “enclosure”: {
    “platform”: “picroft”
  },
  “tts”: {
    “mimic”: {
      “path”: “/home/pi/mycroft-core/mimic/bin/mimic”
    }
  },
  “ipc_path”: “/ramdisk/mycroft/ipc/”
}