lpc.h
上传用户:luckfish
上传日期:2021-12-16
资源大小:77k
文件大小:1k
源码类别:

语音压缩

开发平台:

Visual C++

  1. /*
  2. 2.4 kbps MELP Proposed Federal Standard speech coder
  3. version 1.2
  4. Copyright (c) 1996, Texas Instruments, Inc.  
  5. Texas Instruments has intellectual property rights on the MELP
  6. algorithm.  The Texas Instruments contact for licensing issues for
  7. commercial and non-government use is William Gordon, Director,
  8. Government Contracts, Texas Instruments Incorporated, Semiconductor
  9. Group (phone 972 480 7442).
  10. */
  11. /* 
  12.    lpc.h     LPC include file.
  13. */
  14. /* better names */
  15. #define lpc_bw_expand          lpc_bwex
  16. #define lpc_synthesis          lpc_syn
  17. #define lpc_schur              lpc_schr
  18. #define lpc_clamp              lpc_clmp
  19. /* bandwidth expansion function */
  20. int lpc_bwex(float *a, float *aw, float gamma, int p);
  21. /* lpc synthesis filter */
  22. int lpc_syn(float *x,float *y,float *a,int p,int n);
  23. /* sort LSPs and ensure minimum separation */
  24. int lpc_clmp(float *w, float delta, int p);
  25. /* lpc conversion routines */
  26. /* convert predictor parameters to LSPs */
  27. int lpc_pred2lsp(float *a,float *w,int p);
  28. /* convert predictor parameters to reflection coefficients */
  29. int lpc_pred2refl(float *a,float *k,int p);
  30. /* convert LSPs to predictor parameters */
  31. int lpc_lsp2pred(float *w,float *a,int p);
  32. /* convert reflection coefficients to predictor parameters */
  33. int lpc_refl2pred(float *k,float *a,int p);
  34. /* schur recursion */
  35. float lpc_schr(float *r, float *a, float *k_tmp, int p);
  36. /* evaluation of |A(e^jw)|^2 at a single point (using Horner's method) */
  37. float lpc_aejw(float *a,float w,int p);