google / lyra

A Very Low-Bitrate Codec for Speech Compression
Apache License 2.0
3.84k stars 355 forks source link

how to compile build it for ARM32 (STM32 or nRF52840) #72

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, how to compile build it for ARM32 (STM32 or nRF52840) Keil5? thanks for reply

aluebs commented 3 years ago

I wouldn't know off the top of my head, but you can probably set up a similar toolchain flag to android_arm64 but for arm32 in bazelrc.

GatCode commented 3 years ago

I would also be very interested on the build for an nrf52840

GatCode commented 2 years ago

Update: after a lot of research I found out that cross-compiling lyra on the ARM toolchain (for chips like the STM32 or the nrf52840) is hardly possible due to the huge amount of dependencies on the lyra side and the limitations of the ARM toolchain itself. Nevertheless, for anyone who is brave enough to investigate this problem further, I made a basic tutorial on how one can cross-compile a Bazel project into a static library which then can be linked into a Zephyr project.

aluebs commented 2 years ago

That is unfortunate, but thank you so much for sharing! :)

GatCode commented 2 years ago

You're welcome!

ghost commented 2 years ago

It's too complicated,thanks for sharing。 If only there was a lib available。

satmandu commented 2 years ago

It would be lovely to be able to use a low bandwidth codec like Lyra (which can handle noise) on a low power CPU like in one of the devices mentioned in this issue.

Then you could perhaps make a low power walkie talkie type device using a low bandwidth protocol like lorawan.

Bonus if one can make a device small enough to be pinned on shirts. Yes think Star Trek, but I just want to be able to send a voice message to my kid on her scooter a half block up to slow down and wait for me.

RE-Specto commented 5 months ago

+1 on this one. it could been very welcome into the world of amateur radio, if only made possible to run on embedded platforms :crossed_fingers:

there was a discussion in the well respected M17 project https://github.com/M17-Project/M17_spec/discussions/121