Google releases the source code for Lyra low bitrate speech codec

Google showcased Lyra audio codec for high-quality voice calls at a low 3 kbps bitrate last February. But at the time, it was only for our eyes to see, or rather our ears to listen to, as the company did not release any software, but only audio samples with excellent quality compared to Speex @ 3 kbps or Opus @ 6 kbps.

Google has now released the Lyra source code, written in C++ for optimal speed, efficiency, and interoperability and relying on both the Bazel build framework and the GoogleTest framework.

Lyra source code

The beta release provides the tools and APIs needed for Lyra encoding and decoding, and is currently optimized for the 64-bit Arm Android platform, but can also be run in Linux x86 64-bit.

There is also an example app – lyra_android_example – that integrates with the Android NDK and offers a minimal GUI with two buttons to either record from the microphone and encode/decode with Lyra, or runs a benchmark that encodes and decodes in the background and prints the timings to logcat.

The Lyra source code is available on Github together with instructions to build the code for Linux and Android, and released under the Apache license, except for a math kernel, for which a shared library (libsparse_inference.so) is provided until Google implements a fully open solution.

Via Google Open Source Blog.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard

4 Replies to “Google releases the source code for Lyra low bitrate speech codec”

  1. I hope that radio amateurs adopt this to replace the proprietary and controversial commercial codecs.

    1. For that purpose, there is Codec2 already, mature enough to be recommended where Opus is insufficient.

    2. While I agree that the proprietary codec is a show stopper for me, I also think Codec2 is already filled that gap in the open Amateur radio world.

Leave a Reply

Your email address will not be published. Required fields are marked *

Boardcon Rockchip and Allwinner SoM and SBC products
Boardcon Rockchip and Allwinner SoM and SBC products