speech compression ,lpc to lsf using poly2lsf
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2016 年 3 月 1 日
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulation, Tuning, and Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!