MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

MMM-GoogleAssistant/ Assistant2Display : Issues with sound for radio



  • Hello everyone,

    I’ve been playing with vocal control lately, and GA/A2D is a great piece of module !
    Great job from @Bugsounet 🙂

    I’m facing a weird issue that I can’t solve on my own though… I can’t have sound both on the Assistant voice and on the radio/youtube streaming.

    Example:

    responseConfig: {
          useNative:true,
          playProgram: "mpg321" 
    },
    

    Results with above config :
    “Jarvis, Bonjour” : I can hear the chimes sound and voice from the assistant
    “Jarvis, Mets France Info” : bip sound is ok, logo appears but no sound
    “Jarvis, Mickael jackson youtube”: picture but no sound

          responseConfig: {
                useNative:true,
                playProgram: "mpg321" 
          },
    

    Results with above config :
    “Jarvis, Bonjour” : I can hear the chimes sound but no sound
    “Jarvis, Mets France Info” : bip sound is ok, logo appears with no sound
    “Jarvis, Mickael jackson youtube”: video and sound are ok

    Tried to change the program with aplay or afplay but no improvement.

    Any idea ?

    Thanks in advance !



  • @ZeFX both those responseConfig sections are the same



  • Thanks @sdetweil … second config should read “useNative:False,”

    Example:

    responseConfig: {
          useNative:true,
          playProgram: "mpg321" 
    },
    

    Results with above config :
    “Jarvis, Bonjour” : I can hear the chimes sound and voice from the assistant
    “Jarvis, Mets France Info” : bip sound is ok, logo appears but no sound
    “Jarvis, Mickael jackson youtube”: picture but no sound

    responseConfig: {
               useNative:false,
               playProgram: "mpg321" 
         },
    

    Results with above config :
    “Jarvis, Bonjour” : I can hear the chimes sound but no sound
    “Jarvis, Mets France Info” : bip sound is ok, logo appears with no sound
    “Jarvis, Mickael jackson youtube”: video and sound are ok


  • Module Developer

    @ZeFX said in MMM-GoogleAssistant/ Assistant2Display : Issues with sound for radio:

      responseConfig: {
            useNative:true,
            playProgram: "mpg321" 
      },
    

    this GA config is ONLY for GA and not A2D (i remember you … it’s 2 different modules 🙂 )

    if you have no sound in A2D it’s because your output sound card is not correcly configured in your RPI desktop try to setup it correctly (sound icon -> make correctly default and reboot)

    but generaly in 80% it will not works …
    why ?

    • use USB Sound card output audio (not works correctly with MagicMirror and drivers sucks)
    • use Pulseaudio … MagicMirror don’t like it (so more issue)
    • bluetooth using … yes only with pulseaudio … i know

    Solve way :

    • use native 3.5 Jack output or HDMI output
    • desinstalling pulseaudio (if installed) and reconfigure audio card
    • not using bluetooth …

    I can’t do better actually … I can’t playing Youtube with an MP3 player ! it’s only with HTML5 audio



  • Thanks for your help !

    I understand that it is 2 differents modules, however changing the parameters for “usenative” impacts the sound output for radio… i don’ understand why just what happened while I was trying to sovle the issue.

    I don’t have pulseaudio but the speaker is indeed an USB, even though it is working perfectly with VLC, youtube on chromium and so on… I’ll keep looking !

    By the way, is there anyway to change the default voice from GA ? From female to male ?

    have a nice day,
    Cheers


  • Module Developer

    hi, i don’t send any help … sorry

    maybe … try to ask to @MichMich … he have maybe some response

    (see my signature)

    I strongly advise you to mention it in your comments! ( @MichMich)
    thanks in advance
    @bugsounet


Log in to reply