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.

    arecord sudo only

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 1.4k Views 2 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.
    • K Offline
      kupperma @sdetweil
      last edited by

      @sdetweil
      Thank you for your reply.

      pi@raspberrypi:/ $ arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
      Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
      out.wav: Keine Berechtigung

      This ist the arecord without sudo

      pi@raspberrypi:/ $ sudo arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
      Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono

      and here the task with sudo.

      ls arecord or find arecord – file or folder not found.

      I assume that arecord is part of aplay probably of the alsa family.
      But why do tasks of the same family ask for different rights.

      Manfred

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @kupperma
        last edited by

        @kupperma oh, you are in the root folder /

        it’s the write of out.wav that is causing the problem

        cd ~

        to go to the users home folder

        everything (mm related) should be installed there

        generally, never use sudo unless u know WHY u need to do that

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @kupperma
          last edited by

          @kupperma on your ls arecord, file not found

          u forgot to do

           which arecord
          

          and use it’s output, the full path to arecord

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kupperma @sdetweil
            last edited by kupperma

            @sdetweil
            pi@raspberrypi:~ $ which arecord
            /usr/bin/arecord

            pi@raspberrypi:~ $ ls /usr/bin/arecord -laF
            lrwxrwxrwx 1 root root 5 16. Apr 2021 /usr/bin/arecord -> aplay*

            Is it that way that I have to set the microphone in MM separately so that the Module MMM-voice will recognize the micophone which is on card 1 device 0.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @kupperma
              last edited by

              @kupperma said in arecord sudo only:

              wxrwxrwx

              areceord is execuatble by the user (root) and the group(root) and others (everyone else)

              arecord -l

              will list recording devices

              mmm-voice says config

              microphone	REQUIRED	Id of microphone shown in the installer.
              

              shown in the installer <---- thats the key

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                kupperma @sdetweil
                last edited by

                @sdetweil
                thank you,
                I have set in the config of MMM-voice the microphone 1, but there is still an error.
                I will ask the developer of MMM-voice.

                Manfred

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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