Giter VIP home page Giter VIP logo

Comments (3)

asoulier avatar asoulier commented on July 28, 2024 1

Thank for these observations.

Note that the bandwidth is limited to 20 KHz.
I have generated a mono linear sweep 20 Hz to 20 KHz.
And done the encoding/decoding loop :

./bin/elc3 /tmp/sweep.wav -b 64000 | ./bin/dlc3 > /tmp/sweep_64k.wav
./bin/elc3 /tmp/sweep.wav -b 128000 | ./bin/dlc3 > /tmp/sweep_128k.wav
./bin/elc3 /tmp/sweep.wav -b 256000 | ./bin/dlc3 > /tmp/sweep_256k.wav

image

The first track is the linear spectrogram of source sweep, next it's 64k, 128k and 256k ones.

It seems you're completely right. I will look in following days.
Thanks.

from liblc3.

WenzhengQ avatar WenzhengQ commented on July 28, 2024 1

@asoulier
I check with your fixed patch, the issue is fixed;
Thanks for your help.

from liblc3.

asoulier avatar asoulier commented on July 28, 2024

@WenzhengQ, can you double check with the fix 67f2231.
That looks ok on my side.

For the background: there is 2 quantization steps. The second step, slightly adjust the quantizer (global gain).
This gain should be limited to avoid saturation of the spectral coefficients, fixed to 16 bits by the bitstream.
This was not properly done, on the adjustment step, and select sometimes a quantizer one step too high.
And will occurs more often, when the compression ratio decrease (or bitrate increase).

from liblc3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.