Multiple audio input



  • 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 ?



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



  • @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’


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.