Giter Club home page Giter Club logo

Comments (8)

arielephrat avatar arielephrat commented on May 29, 2024

When trying to use LSPDF after applying lpc2lsp, I keep getting "ParameterError: Audio buffer is not finite everywhere". Is this the bug you're referring to?
If so, has there been any progress in fixing it? Or, alternatively, are there plans to implement an lsp2lpc function?

Thanks so much!

from pysptk.

r9y9 avatar r9y9 commented on May 29, 2024

No, as I remember correctly it wasn't a ParameterError. Could you paste your code so that I can reproduce the issue? For now there is no plan to implement lsp2lpc from scratch.

from pysptk.

r9y9 avatar r9y9 commented on May 29, 2024

Tests failure is here:

warn("TODO: tests are failing")
# for order in [20, 25]:
# yield __test, order

from pysptk.

arielephrat avatar arielephrat commented on May 29, 2024

Thanks for the quick response!
I modified your test code and inserted it at the end of the speech analysis notebook. It now results in an AssertionError.

from pysptk.synthesis import LSPDF

order = 10
lpc = np.apply_along_axis(pysptk.lpc, 1, frames, order)
# make sure lsp has loggain
lsp = np.apply_along_axis(pysptk.lpc2lsp, 1, lpc)
lsp[:, 0] = np.log(lsp[:, 0])

# synthesis
synthesizer = Synthesizer(LSPDF(order), hop_length)
y = synthesizer.synthesis(source_excitation, lsp)
assert np.all(np.isfinite(y))
AssertionError                            Traceback (most recent call last)
<ipython-input-42-0aa71a6f3baa> in <module>()
     10 synthesizer = Synthesizer(LSPDF(order), hop_length)
     11 y = synthesizer.synthesis(source_excitation, lsp)
---> 12 assert np.all(np.isfinite(y))

AssertionError: 

from pysptk.

r9y9 avatar r9y9 commented on May 29, 2024

Yes, this is what I was trying to solve.

from pysptk.

arielephrat avatar arielephrat commented on May 29, 2024

Ok, at least we're on the same page :)
The problem seems to be for orders out of the range [20,25] as well.

On Tue, May 24, 2016 at 4:02 PM, Ryuichi Yamamoto [email protected]
wrote:

Yes, this is what I was trying to solve.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#22 (comment)

from pysptk.

r9y9 avatar r9y9 commented on May 29, 2024

Is that the same issue you see before? This is not a ParameterError.

from pysptk.

arielephrat avatar arielephrat commented on May 29, 2024

Yes, sorry. I got a ParameterError when I tried to plot the result using
waveplot.

On Tue, May 24, 2016 at 5:01 PM, Ryuichi Yamamoto [email protected]
wrote:

Is that the same issue you see before? This is not a ParameterError.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#22 (comment)

from pysptk.

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.