03-20-2019, 05:29 PM
@chbla
You still haven't said what you want to accomplish with snips.ai. If what you have in mind is to replicate an Alexa-based Amazon Echo or a Google Assistant-based Home Smart Speaker using moOde, an RPi, your audio setup, and a microphone, then you have your work cut out for you. It's not impossible but it takes some programming chops. You have to deal with audio in/out and with command/control.
If you are "not very familiar with the linux sound systems" then you first need to do your homework regarding the advanced linux sound architecture (ALSA). Then you can read the moOde source code to see how it uses the ALSA subsystem by way of the music player daemon (MPD) or several alternative renderers. Pay attention to how moOde configuration panels can change the specifics.
Now you'll be in a position to figure out how you want to make snips.ai and moOde play together in the same "audio sandbox". If you want actually to control moOde using snips.ai then you also have to understand the snips.ai API and the moOde/MPD APIs and write the glue code that makes it happen.
As for building moOde on some other distro, see moOde's github site for source code. In particular, read and understand the build recipe. From first to last, this recipe addresses only the use of Raspbian to build a moOde binary which combines moOdeOS (a customized Raspbian) and the moOde player. You'll have to interpret the recipe liberally to build the moOde player on some other software distro. Expect bumps and detours along the road.
I don't know what you don't know so I'm trying, perhaps too pedantically, to sketch the whole picture. It's up to you to fill in all the dots.
Regards,
Kent
You still haven't said what you want to accomplish with snips.ai. If what you have in mind is to replicate an Alexa-based Amazon Echo or a Google Assistant-based Home Smart Speaker using moOde, an RPi, your audio setup, and a microphone, then you have your work cut out for you. It's not impossible but it takes some programming chops. You have to deal with audio in/out and with command/control.
If you are "not very familiar with the linux sound systems" then you first need to do your homework regarding the advanced linux sound architecture (ALSA). Then you can read the moOde source code to see how it uses the ALSA subsystem by way of the music player daemon (MPD) or several alternative renderers. Pay attention to how moOde configuration panels can change the specifics.
Now you'll be in a position to figure out how you want to make snips.ai and moOde play together in the same "audio sandbox". If you want actually to control moOde using snips.ai then you also have to understand the snips.ai API and the moOde/MPD APIs and write the glue code that makes it happen.
As for building moOde on some other distro, see moOde's github site for source code. In particular, read and understand the build recipe. From first to last, this recipe addresses only the use of Raspbian to build a moOde binary which combines moOdeOS (a customized Raspbian) and the moOde player. You'll have to interpret the recipe liberally to build the moOde player on some other software distro. Expect bumps and detours along the road.
I don't know what you don't know so I'm trying, perhaps too pedantically, to sketch the whole picture. It's up to you to fill in all the dots.
Regards,
Kent