speech compression ,lpc to lsf using poly2lsf

1 vue (au cours des 30 derniers jours)
gowthami kommineni
gowthami kommineni le 1 Mar 2016
hi,
this is my code for speech compression . i have two more blocks to write lbg codebook, and vector quantisation. till here iam getting error in lptolf file like this
Error using ==> roots at 28
Input to ROOTS must not contain NaN or Inf.
Error in ==> poly2lsf at 33
if (max(abs(roots(a))) >= 1.0),
Error in ==> lptolf at 4
lsfcoeff(i,:)=poly2lsf(ssig(:,i));
Error in ==> s2 at 15
[lsfcoeff]=lptolf(ssig,C3);
so where iam going wrong i couldn't understand
s2.m s my main file. before adding lptolf file everything fine.test.wav s my sound file of single channel.
thanks in advance.
  1 commentaire
Walter Roberson
Walter Roberson le 1 Mar 2016
At the MATLAB command line, command
dbstop if naninf
and then run your code. When it stops, it will be at a line that produced a nan or inf result. You need to work backwards from there to figure out why it produced those results.
My speculation would be that it is occurring in filter(), as a result of you passing in incorrect filter coefficients because of some circumstance that you did not take into account.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulation, Tuning, and Visualization dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by