Filter löschen
Filter löschen

speech compression ,lpc to lsf using poly2lsf

2 Ansichten (letzte 30 Tage)
gowthami kommineni
gowthami kommineni am 1 Mär. 2016
Kommentiert: Walter Roberson am 1 Mär. 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 Kommentar
Walter Roberson
Walter Roberson am 1 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by