Hi,
The new release is still need some time to go, but I can send you a test version, you can download from this link:
<LINK_TEXT text=“https://v2.fangcloud.com/share/11a20219 … f8?lang=en”>https://v2.fangcloud.com/share/11a20219f73655959b42aa57f8?lang=en</LINK_TEXT>
Install the lib:
tar -jxvf librespeaker.tar.bz2
sudo dpkg -i librespeaker_2.1.2-build181212_armhf.deb
sudo dpkg -i librespeaker-dev_2.1.2-build181212_armhf.deb
Compile the example:
g++ alsa_aloop_test.cc -o alsa_aloop_test -lrespeaker -lsndfile -fPIC -std=c++11 -fpermissive -I/usr/include/respeaker/ -DWEBRTC_LINUX -DWEBRTC_POSIX -DWEBRTC_NS_FLOAT -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_INTELLIGIBILITY_ENHANCER=0
/** @example alsa_aloop_test.cc
- This is an example that shows how to redirect the processed audio stream into a specific Alsa device(Loopback PCM).
- To run this example, you have to run ‘sudo modprobe snd-aloop’ first. And make sure “pulseaudio” doesn’t start, then
- you can use “arecord -Dhw:Loopback,1,0 -c 1 -r 16000 -f S16_LE loop_test.wav” to arecord the processed audio stream.
- Further more, you can setup a third party voice assistant to capture voice from “hw:Loopback,1,0”, to run the assistant directly.
*/
Note that the header files are located in /usr/include/respeaker, and you can find how to use aloop_node in “aloop_output_node.h”. The other APIs are the same as
the previous version.
And the config files are in /usr/share/respeaker
Feel free to ask me if you have any question.
Thanks,
Jerry