Coder Social home page Coder Social logo

Big noise in the wave start about lpcnet HOT 7 CLOSED

xiph avatar xiph commented on July 4, 2024 1
Big noise in the wave start

from lpcnet.

Comments (7)

bpotard avatar bpotard commented on July 4, 2024 3

This is a small bug with initialising the µlaw variables. They shouldn't be initialised to 0, but to 128.

--- a/src/test_lpcnet.py
+++ b/src/test_lpcnet.py
@@ -81,6 +81,8 @@ fout = open(out_file, 'wb')
 skip = order + 1
 for c in range(0, nb_frames):
     cfeat = enc.predict([features[c:c+1, :, :nb_used_features], periods[c:c+1, :, :]])
+    fexc[0,0,0] = 128 # 0 mulaw
+    iexc[0,0,0] = 128
     for fr in range(0, feature_chunk_size):
         f = c*feature_chunk_size + fr
         a = features[c, fr, nb_features-order:]
--- a/src/lpcnet.c
+++ b/src/lpcnet.c
@@ -110,6 +110,7 @@ LPCNetState *lpcnet_create()
 {
     LPCNetState *lpcnet;
     lpcnet = (LPCNetState *)calloc(sizeof(LPCNetState), 1);
+    lpcnet->last_exc = 128;
     return lpcnet;
 }

from lpcnet.

attitudechunfeng avatar attitudechunfeng commented on July 4, 2024

I didn't met this problem before. An irrelevant question, what's the player used in the picture?

from lpcnet.

hdmjdp avatar hdmjdp commented on July 4, 2024

@candlewill I have the same, but not only in the start, have you solved this problem?

from lpcnet.

ohleo avatar ohleo commented on July 4, 2024

@candlewill @hdmjdp
I also have the same, synthesized by C on CPU inference.
In Python-GPU inference, there is no noise in the wave start.

LJ050-0269.zip

from lpcnet.

hdmjdp avatar hdmjdp commented on July 4, 2024

@ohleo have you found the reason?

from lpcnet.

hdmjdp avatar hdmjdp commented on July 4, 2024

@bpotard I think you are right. but why sometimes it did not have the noise in the start even that they are initialised to 0.

from lpcnet.

candlewill avatar candlewill commented on July 4, 2024

I think the problem is solved by @bpotard 's method, and it's better to be merged into master.

from lpcnet.

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.