MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Multiple audio input

    Troubleshooting
    2
    3
    1044
    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.
    • H
      howi42 last edited by

      All modules seem to lock the audio input device when starting,
      like MMM-GoogleAssistant or MMM- Alexa.
      What can I do if I want to run more than one module waiting for a magic word ?
      Sometimes I might want to use Alexa, but in other situations the Google Assistant.
      Maybe there is a way to make a module kind of ‘active’ for audio input ?
      Pressing a button or using another module to distribute the request ?

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

        @howi42
        How about using AssistantPi? That is not the answer to your question, but it could be help for your situation.

        1 Reply Last reply Reply Quote 0
        • H
          howi42 last edited by howi42

          @Sean said in Multiple audio input:

          AssistantPi

          Thanks, I will give it try.
          BTW, I tried AlexaPi earlier, not the best results.
          It crashes always when questions get a bit longer.
          Restart helps, but that is not a good option.
          Just for completeness :
          This is a typical result if you ask Alexa a longer question, like :
          How is the weather in Berlin

          Exception in thread Thread-2:
          Traceback (most recent call last):
          File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
          self.run()
          File “/usr/lib/python2.7/threading.py”, line 763, in run
          self.__target(*self.__args, **self.__kwargs)
          File “/opt/AlexaPi/src/main.py”, line 611, in trigger_process
          alexa_speech_recognizer(audio_stream)
          File “/opt/AlexaPi/src/main.py”, line 420, in alexa_speech_recognizer
          process_response(resp)
          File “/opt/AlexaPi/src/main.py”, line 510, in process_response
          with open(filename, ‘wb’) as f:
          IOError: [Errno 2] No such file or directory: ‘/tmp/AlexaPi-runtime-1HoVt4/5bdf1b19-4123-42fb-8c65-863eb1b071e3#Alexa3P:1.0/2017/08/31/21/3cd42c9aa6484b8c90aa75b6f956bf47/06:50::TNIH_2V.11cf1cd6-6ebf-4e5b-81fc-c7f609a99e06ZXV/0_1364971548.mp3’

          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy