/
pit_lib.h
56 lines (39 loc) · 1.98 KB
/
pit_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
2.4 kbps MELP Proposed Federal Standard speech coder
Fixed-point C code, version 1.0
Copyright (c) 1998, Texas Instruments, Inc.
Texas Instruments has intellectual property rights on the MELP
algorithm. The Texas Instruments contact for licensing issues for
commercial and non-government use is William Gordon, Director,
Government Contracts, Texas Instruments Incorporated, Semiconductor
Group (phone 972 480 7442).
The fixed-point version of the voice codec Mixed Excitation Linear
Prediction (MELP) is based on specifications on the C-language software
simulation contained in GSM 06.06 which is protected by copyright and
is the property of the European Telecommunications Standards Institute
(ETSI). This standard is available from the ETSI publication office
tel. +33 (0)4 92 94 42 58. ETSI has granted a license to United States
Department of Defense to use the C-language software simulation contained
in GSM 06.06 for the purposes of the development of a fixed-point
version of the voice codec Mixed Excitation Linear Prediction (MELP).
Requests for authorization to make other use of the GSM 06.06 or
otherwise distribute or modify them need to be addressed to the ETSI
Secretariat fax: +33 493 65 47 16.
*/
/* ====================================== */
/* pit_lib.h: pitch analysis header files */
/* ====================================== */
#ifndef _PIT_LIB_H_
#define _PIT_LIB_H_
int16_t f_pitch_scale(int16_t sig_out[], int16_t sig_in[],
int16_t length);
int16_t find_pitch(int16_t sig_in[], int16_t *pcorr, int16_t lower,
int16_t upper, int16_t length);
int16_t frac_pch(int16_t sig_in[], int16_t *pcorr, int16_t fpitch,
int16_t range, int16_t pmin, int16_t pmax,
int16_t pmin_q7, int16_t pmax_q7, int16_t lmin);
int16_t p_avg_update(int16_t pitch, int16_t pcorr, int16_t pthresh);
int16_t pitch_ana(int16_t speech[], int16_t resid[],
int16_t pitch_est, int16_t pitch_avg,
int16_t *pcorr2);
#endif