Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Apr 2020
    Posts
    4

    Mycroft and Squeezelite

    First: Thanks to all you people allowing me to have such a great music experience in my home based on Free Software! So flawless that I never needed to register in this forum - but now I am puzzled...

    I have been running a multi-room system (mostly Rasp3b with USB-Soundcard and speaker) merged with my OpenHAB - and I really like it. So the next step for me is to integrate proper VoiceAI into this and with Mycroft.ai there is a project I like. So, my plan is to simply add microphones to the existing RasPis + speaker and run mycroft + squeezelite on them.

    Technically I thought it might be wise to first install mycroft using the PiCroft image on the RasPi, apt-get install squeezelite and be done. But: No matter how I try to specify the squeezelite -o - while running squeezelite (which works fine) I cannot get Mycroft to talk to me. Once I kill squeezelite again, some stacked messages from Mycroft come through. I have read a bit about problems with dmix on RasPi, but to be honest I am technically quite a noob and don't really understand what the problem is... It looks like Mycroft listens, but cannot speak while squeezelite is running.

    I am thankful for any help to solve this!

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,475
    Check your version of Squeezelite to see if it has "-C"
    -C <timeout>Close output device when idle after timeout seconds, default is to keep it open while player is 'on'
    (note - upper case C)

    However, that is not going to work if Squeezelite is playing when you want the announcement to come out.

    Can you do it via a mixer in ALSA?

    There are experts here who will know - and even the current maintainer (Ralphy).
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  3. #3
    Junior Member
    Join Date
    Apr 2020
    Posts
    4
    Yes, the version has the "-C"

    And I don't know how to handle it manually via alsamixer, as I don't know how to orchestrate input streams there. The normal alsamixer seems to have no graphical option for this.

    I just tested with the Plasma-Bigscreen image and also the normal PiCroft image on a RasPi4, but no success either.

    In an ideal world, I would obviously like squezelite to mute while Mycroft is interacting, but a workflow that enables me to send mycroft the command to mute the music and then interact with it further would be good enough for the moment.

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,475
    This might help... using dmix with Squeezelite

    http://jheyman.github.io/blog/pages/...utput-optional
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  5. #5
    Junior Member
    Join Date
    Apr 2020
    Posts
    4
    Indeed looks promising. Will test soon.

  6. #6
    Junior Member
    Join Date
    Apr 2020
    Posts
    4
    It looks like there is project that tries to achieve exactly what I want by integrating the above solution and much more.

    https://community.mycroft.ai/t/mycro...ldroot/4708/44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •