• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Multiple audio input

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 2.1k 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.
  • ? Offline
    A Former User
    last edited by Aug 31, 2017, 2:37 PM

    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 Aug 31, 2017, 5:26 PM Reply Quote 0
    • ? Offline
      A Former User @Guest
      last edited by Aug 31, 2017, 5:26 PM

      @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
      • ? Offline
        A Former User
        last edited by A Former User Aug 31, 2017, 9:09 PM Aug 31, 2017, 6:46 PM

        @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
        1 / 1
        • First post
          1/3
          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