Hi all,

I've loaded this "bazel" build system on Ubuntu 20.04 LTS on a Pentium E5300 
box (no AVX/AVX2).

 apt install bazel-4.0.0; ln -s /usr/bin/bazel-4.0.0 /usr/bin/bazel

bazel build -c opt :encoder_main

bazel build -c opt :decoder_main

I note the audio samplerate is 16000 whereas Codec2 and the M17 project go with 
8000.

Running their test script:

:

export PATH=$PATH:/data/downloads/yy4418/lyra/bazel-bin

bazel-bin/encoder_main --model_path=wavegru --output_dir=$HOME/temp 
--input_path=testdata/16khz_sample_000001.wav

bazel-bin/decoder_main  --model_path=wavegru --output_dir=$HOME/temp/ 
--encoded_path=$HOME/temp/16khz_sample_000001.lyra

output

I20210409 20:36:27.839759 178277 decoder_main_lib.cc:97] Elapsed seconds : 9

I20210409 20:36:27.839819 178277 decoder_main_lib.cc:98] Samples per second : 
12246.8

 

time aplay $HOME/temp/16khz_sample_000001_decoded.wav

Playing WAVE '/root/temp/16khz_sample_000001_decoded.wav' : Signed 16 bit 
Little Endian, Rate 16000 Hz, Mono

real 0m8.481s

user 0m0.195s

sys 0m0.071s

============ So from an 8.5 sec test file, when decoded takes:

real 0m11.183s

user 0m11.050s

sys 0m0.105s

W20210409 20:43:22.203222 178355 kernels_generic.h:241] SumVectors: using 
generic kernel!

I20210409 20:43:32.897627 178355 decoder_main_lib.cc:97] Elapsed seconds : 10

I20210409 20:43:32.897687 178355 decoder_main_lib.cc:98] Samples per second : 
11307.7

====== Conclusion =====

My Pentium E5300 2.6 GHz is not powerful enough!

The encode phase is quick, super quick:

time encoder_main --model_path=wavegru --output_dir=$HOME/temp 
--input_path=testdata/16khz_sample_000001.wav

WARNING: Logging before InitGoogleLogging() is written to STDERR

I20210409 20:57:47.317165 178410 encoder_main_lib.cc:94] Elapsed seconds : 0

I20210409 20:57:47.317334 178410 encoder_main_lib.cc:95] Samples per second : 
5.12104e+06

real 0m0.049s

user 0m0.034s

sys 0m0.012s

Alan VK2ZIW

On Thu, 8 Apr 2021 14:34:12 +0800, Random wrote
> Thanks a lot, David.
> 
> Could you please squeeze Lyra to 2400bps ? Such that we can compare its 
> performance with that of LPCNet.
> 
> Best Regards.
> 
> ------------------ Ô­Ê¼Óʼþ ------------------
> 
> ·¢¼þÈË: "freetel-codec2" <da...@rowetel.com>;
> ·¢ËÍʱ¼ä: 2021Äê4ÔÂ7ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:25
> ÊÕ¼þÈË: "freetel-codec2"<freetel-codec2@lists.sourceforge.net>;
> 
> Ö÷Ìâ: Re: [Freetel-codec2] Codec2 vs Lyra?
> 
> Hmm, I wonder how quickly I can get this into a FreeDV mode :-)
> 
> 3000 bit/s is a bit high for HF, but nice for VHF.  Might be cool for 
> the m17 project.
> 
> On 7/4/21 5:18 pm, David Rowe wrote:
> > Further to this, I've just bee told Google has open source Lyra :-)
> >
> > https://opensource.googleblog.com/2021/04/lyra-enabling-voice-calls-for-next-billion-users.html
> >  
> >
> >
> > - David
> >
> >
> > _______________________________________________
> > Freetel-codec2 mailing list
> > Freetel-codec2@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> 
> _______________________________________________
> Freetel-codec2 mailing list
> Freetel-codec2@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2

--------------------------------------------------- 
Alan VK2ZIW 
Before the Big Bang, God, Sela. 
OpenWebMail 2.53, nothing in the cloud.

 
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to