pit.h
上传用户:cxx_68
上传日期:2021-02-21
资源大小:161k
文件大小:3k
源码类别:

语音压缩

开发平台:

Visual C++

  1. /*
  2. 2.4 kbps MELP Proposed Federal Standard speech coder
  3. Fixed-point C code, version 1.0
  4. Copyright (c) 1998, 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. The fixed-point version of the voice codec Mixed Excitation Linear
  11. Prediction (MELP) is based on specifications on the C-language software
  12. simulation contained in GSM 06.06 which is protected by copyright and
  13. is the property of the European Telecommunications Standards Institute
  14. (ETSI). This standard is available from the ETSI publication office
  15. tel. +33 (0)4 92 94 42 58. ETSI has granted a license to United States
  16. Department of Defense to use the C-language software simulation contained
  17. in GSM 06.06 for the purposes of the development of a fixed-point
  18. version of the voice codec Mixed Excitation Linear Prediction (MELP).
  19. Requests for authorization to make other use of the GSM 06.06 or
  20. otherwise distribute or modify them need to be addressed to the ETSI
  21. Secretariat fax: +33 493 65 47 16.
  22. */
  23. /*
  24.   pit.h: include file for pitch subroutines
  25.   
  26. */
  27. #ifndef _pit_h
  28. #define _pit_h_
  29. /* External function definitions */
  30. Shortword double_chk(Shortword sig_in[],Shortword *pcorr,Shortword pitch,
  31.      Shortword pdouble,Shortword pmin,Shortword pmax,
  32.      Shortword pmin_q7,Shortword pmax_q7,
  33.      Shortword lmin);
  34. void double_ver(Shortword sig_in[],Shortword *pcorr,Shortword pitch,
  35. Shortword pmin,Shortword pmax,Shortword pmin_q7,
  36. Shortword pmax_q7,Shortword lmin);
  37. Shortword f_pitch_scale(Shortword sig_out[],Shortword sig_in[],
  38. Shortword length);
  39. Shortword find_pitch(Shortword sig_in[],Shortword *pcorr,Shortword lower,
  40.      Shortword upper,Shortword length);
  41. Shortword frac_pch(Shortword sig_in[],Shortword *pcorr,Shortword fpitch,
  42.    Shortword range,Shortword pmin,Shortword pmax,
  43.    Shortword pmin_q7,Shortword pmax_q7,Shortword lmin);
  44. Shortword p_avg_update(Shortword pitch, Shortword pcorr, Shortword pthresh);
  45. void p_avg_init(Shortword pdecay, Shortword default_pitch, 
  46. Shortword pdecay_pitch, Shortword num_good);
  47. Shortword pitch_ana(Shortword speech[],Shortword resid[],
  48.     Shortword pitch_est,Shortword pitch_avg, 
  49.     Shortword *pcorr2);
  50. void pitch_ana_init(Shortword pmin,Shortword pmax,Shortword fr,
  51.     Shortword lpf_ord, Shortword lmin);
  52. #endif