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!