MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-GoogleAssistant problem with .asoundrc

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 3 Posters 1.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Do not disturb
      sdetweil @RIKKO14
      last edited by sdetweil

      @RIKKO14 headphones is things u put over your ears to hear sound.

      arecord -l showed one device for capturing sound (a microphone) at card 0, device 0

      aplay -l showed two devices that can make sound.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        RIKKO14
        last edited by

        @sdeweil sorry but i don’t anderstand…
        you say :

        arecord -l showed one device for capturing sound (a microphone) at card 0, device 0

        But I see with the arecord-l :

        pi@raspberrypi:~ $ arecord -l
        **** Liste des Périphériques Matériels CAPTURE ****
        carte 1: USB [WordForum USB], périphérique 0: USB Audio [USB Audio]
        

        so my microphone should be on card 1, device 0, no ?

        and you said :

        aplay -l showed two devices that can make sound.

        So :

        **** Liste des Périphériques Matériels PLAYBACK ****
        carte 0: b1 [bcm2835 HDMI 1], périphérique 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
        

        HDMI free in card 0, device 0 (i don’t use it)
        and my headphones in card 2, device 0,

        carte 2: Headphones [bcm2835 Headphones], périphérique 0: bcm2835 Headphones [bcm2835 Headphones]

        I would have mistakenly switched the 2 ?

        And why when i open the .asoundrc file after writing what’s here : https://developers.google.com/assistant/sdk/guides/library/python/embed/audio the file is different after writting the command speaker-test -t wavand arecord --format=S16_LE --duration=5 --rate=16000 --file-type=raw out.raw

        Do you know if i wrote in my my node_helper.js, my My MMM-GoogleAssistant.jsand my pi/assistant.py are good ?

        And finally, does the procedure described in Introduction to the Google Assistant Library (https://developers.google.com/assistant/sdk/guides/library/python) still work because I just read at the top of the page ( I hadn’t paid attention): “Warning: The Google Assistant Library for Python is deprecated as of June 28th, 2019. Use the Google Assistant Service instead.”, and return to the Introduction to "the Google Assistant Service page "(https://developers.google.com/assistant/sdk/guides/service/python) so should I rather follow the procedure described in the Google Assistant Service and then continue step 3 of this page: https://www.magicmirrorcentral.com/get-google-assistant-magic-mirror/ ?

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @RIKKO14
          last edited by

          @RIKKO14 sorry, got the mic card wrong

          you are mixing instructions.
          I don’t care what Google doc you read.

          MMM-GoogleAssistant doc is the only doc that matters.

          and NEVER change the module source code files. change config.js only.

          @Bugsounet will have to help on his module

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • R Offline
            RIKKO14
            last edited by

            So my mic card is card 0, device 0 ?
            and my 3.5 jacks speakers is card 2, device 0 ?
            is that correct ?

            The MMM-GoogleAssistant of @Bugsounet doen’t work, at the end of the page it’s write : “By terms of Google Assistant SDK, You are not allowed to use or provide this module for commercial purpose.”
            the only MMM-GoogleAssistant which works is the gauravsacc/MMM-GoogleAssistant, but i don’t anderstand what to do in the part :
            “Register your GA device
            Register your GA device using the register-tool available here and replace the magic-mirror-device-id in the assistant.py with your unique device id https://developers.google.com/assistant/sdk/reference/device-registration/device-tool”,

            I dont’ anderstand the open page : “Registration Tool Help” in the link.
            and finally, the link to Setup Google Assistant on Pi return to the same google page for Introduction to the Google Assistant Library and it’s wrote in red at the top of the page “Warning: The Google Assistant Library for Python is deprecated as of June 28th, 2019. Use the Google Assistant Service instead.”

            can you just confirm me my number of card and device for my mic and my headphones according to you ? Thank you

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @RIKKO14
              last edited by

              @RIKKO14 we are not selling mm, so not commercial use. you are adding a module to your personal system ( unless YOU intend to sell it)

              I don’t know about the older module. only that @Bugsounet has done a lot of work to get it going

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by

                @RIKKO14 said in MMM-GoogleAssistant problem with .asoundrc:

                The MMM-GoogleAssistant of @Bugsounet doen’t work

                je ne savais pas que je fesais des module qui ne fonctionnait pas ;)
                Merci toutefois de me l’apprendre :)

                “By terms of Google Assistant SDK, You are not allowed to use or provide this module for commercial purpose.”

                cela veux simplement dire qu’il n’est pas permis d’utiliser ce module a des fin commerciale

                1 Reply Last reply Reply Quote 0
                • R Offline
                  RIKKO14
                  last edited by

                  @Bugsounet TOUTES MES PLATES EXCUSES !!! J’avais donc mal compris, vraiment désolé…
                  I continue in English because it is required here (and that you will understand that I all pages and tutorials read with google translate …):
                  But then why in the page of your MMM-GoogleAssistant there is only the link git@github.com: bugsounet / MMM-GoogleAssistant.git and not all the description to install MMM-GoogleAssistant ?

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by

                    It’s on wiki page …

                    just read ;)

                    It’s write on Readme page

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RIKKO14
                      last edited by

                      Great, thank you !
                      So can you confirm me the card and device for my mic and headphones ?

                      1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User
                        last edited by

                        It’s depend of you device.
                        It’s the job of micConfig check at the end of install

                        Attention:
                        you share some personal data in your config.
                        You can have some takeover
                        Don’t forget … it’s a forum ! everyone read this !

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy