melp_sub.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.   melp_sub.h: include file for MELP subroutines
  13. */
  14. void dc_rmv(float sigin[], float sigout[], float dcdel[], int frame);
  15. void bpvc_ana(float speech[], float fpitch[], float bpvc[], float sub_pitch[]);
  16. void bpvc_ana_init(int fr, int pmin, int pmax, int nbands, int num_p, int lmin);
  17. float gain_ana(float sigin[], float pitch, int minlength, int maxlength);
  18. void q_gain(float *gain,int *gain_index,float qlow,float qup,float qlev);
  19. void q_gain_dec(float *gain,int *gain_index,float qlow,float qup,float qlev);
  20. int q_bpvc(float *bpvc,int *bpvc_index,float bpthresh,int num_bands);
  21. void q_bpvc_dec(float *bpvc,int *bpvc_index,int uv_flag,int num_bands);
  22. void scale_adj(float *speech, float gain, float *prev_scale, int length, int sc_over);
  23. float lin_int_bnd(float x,float xmin,float xmax,float ymin,float ymax);
  24. void noise_est(float gain,float *noise_gain,float up,float down,float min,float max);
  25. void noise_sup(float *gain,float noise_gain,float max_noise,float max_atten,float nfact);