noise suppression with librespeaker in RespeakerCorev2

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

chdyejiewei
Pre-kindergarten
Pre-kindergarten
Posts: 22
Joined: Mon Oct 15, 2018 3:11 pm

Re: noise suppression with librespeaker in RespeakerCorev2

Post by chdyejiewei » Wed Oct 17, 2018 5:08 pm

Is it possible to run out of memory? It seems like the most probable cause bad_array_new_length.
http://en.cppreference.com/w/cpp/memory ... new_length

cinettoa
Pre-kindergarten
Pre-kindergarten
Posts: 30
Joined: Fri Jul 20, 2018 10:33 am

Re: noise suppression with librespeaker in RespeakerCorev2

Post by cinettoa » Wed Oct 17, 2018 5:49 pm

Hi,
I confirm the checksum

md5sum librespeaker_2.0.1-build181017_armhf.deb
b98d4bc263215f28162ff2c9a2df182b librespeaker_2.0.1-build181017_armhf.deb

It seems to me strange that this is a memory problem.
This same examples war running properly with the previous bugged version.
I will double check also this by the way.
Is it working in your respeakerCore?

chdyejiewei
Pre-kindergarten
Pre-kindergarten
Posts: 22
Joined: Mon Oct 15, 2018 3:11 pm

Re: noise suppression with librespeaker in RespeakerCorev2

Post by chdyejiewei » Wed Oct 17, 2018 6:06 pm

Yes, it is working on my core v2.
You can try the following main_vep_nr_test built on my Respeaker Core V2.

Code: Select all

respeaker@v2:~/test_nr/src$ uname -a
Linux v2 4.4.138-respeaker-r0 #2 SMP Wed Jul 25 11:29:18 CST 2018 armv7l GNU/Linux
Attachments
main_vep_nr_test.zip
(8.75 KiB) Downloaded 81 times

cinettoa
Pre-kindergarten
Pre-kindergarten
Posts: 30
Joined: Fri Jul 20, 2018 10:33 am

Re: noise suppression with librespeaker in RespeakerCorev2

Post by cinettoa » Thu Oct 18, 2018 3:48 pm

uname -a returns the same output of yours.

the file you attached is returning the same error.

I've tried to reflash the SD card, reinstall only librespeaker and its dependencies and then run again but I still get the same error.

Any other idea?

chdyejiewei
Pre-kindergarten
Pre-kindergarten
Posts: 22
Joined: Mon Oct 15, 2018 3:11 pm

Re: noise suppression with librespeaker in RespeakerCorev2

Post by chdyejiewei » Thu Oct 18, 2018 6:43 pm

Hi Cinettoa,

I have also tried to reflash the SD card. I installed librespeaker-2.0.0 and pulseaudio, copy common.res and alexa.umdl and "main_vep_nr_test" I built before, then reboot. After reboot, of course main_vep_nr_test was able to run, but it just could not wake up because I were using librespeaker-2.0.0. Then I installed librespeaker-2.0.1 and made a symbolic link to "librespeaker.so.2". After this, my "main_vep_nr_test" worked well.
If these steps don't help, I suggest you use another faster SD card(eg. class10).

cinettoa
Pre-kindergarten
Pre-kindergarten
Posts: 30
Joined: Fri Jul 20, 2018 10:33 am

Re: noise suppression with librespeaker in RespeakerCorev2

Post by cinettoa » Fri Oct 19, 2018 9:22 am

Hi,
I've tried step by step you procedura but I still get the same error.
I will buy a faster SD and try again.
It is possible that my feedback will be a little delayed this time.

I have another question related to this library. If you prefer I can open a new issue.

Do you have any guidance or example on how to return the output of the librespeaker audio processing pipeline to a linux device instead of a file?

Thanks for your help!

chdyejiewei
Pre-kindergarten
Pre-kindergarten
Posts: 22
Joined: Mon Oct 15, 2018 3:11 pm

Re: noise suppression with librespeaker in RespeakerCorev2

Post by chdyejiewei » Fri Oct 19, 2018 3:48 pm

HI Cinettoa,

Any feedback is welcome!

And please open a new issue of your question;). Can you explain more about your question? Do you mean that you need to process audio stream on ReSpeaker and then send that stream to another Linux device?

cinettoa
Pre-kindergarten
Pre-kindergarten
Posts: 30
Joined: Fri Jul 20, 2018 10:33 am

Re: noise suppression with librespeaker in RespeakerCorev2

Post by cinettoa » Fri Oct 19, 2018 4:38 pm

Thanks!
I'm going to open a new issue so you can reply me there!

rodionov12
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Wed Oct 24, 2018 12:02 am

Re: noise suppression with librespeaker in RespeakerCorev2

Post by rodionov12 » Wed Oct 24, 2018 1:09 am

The same problem with "out of the box" example. I'm using new librespeaker_2.0.1 library version

chdyejiewei
Pre-kindergarten
Pre-kindergarten
Posts: 22
Joined: Mon Oct 15, 2018 3:11 pm

Re: noise suppression with librespeaker in RespeakerCorev2

Post by chdyejiewei » Wed Oct 24, 2018 9:53 am

You mean the "bad_array_new_length" problem when using librespeaker_2.0.1 ? Or the "Noise Suppression doesn't work" problem? Can you provide more information? Thanks!

Post Reply