Edinburgh Speech Tools 2.4-release
 
Loading...
Searching...
No Matches
htk.h
1 /************************************************************************/
2 /* */
3 /* Centre for Speech Technology Research */
4 /* University of Edinburgh, UK */
5 /* Copyright (c) 1996,1997 */
6 /* All Rights Reserved. */
7 /* */
8 /* Permission is hereby granted, free of charge, to use and distribute */
9 /* this software and its documentation without restriction, including */
10 /* without limitation the rights to use, copy, modify, merge, publish, */
11 /* distribute, sublicense, and/or sell copies of this work, and to */
12 /* permit persons to whom this work is furnished to do so, subject to */
13 /* the following conditions: */
14 /* 1. The code must retain the above copyright notice, this list of */
15 /* conditions and the following disclaimer. */
16 /* 2. Any modifications must be clearly marked as such. */
17 /* 3. Original authors' names are not deleted. */
18 /* 4. The authors' names are not used to endorse or promote products */
19 /* derived from this software without specific prior written */
20 /* permission. */
21 /* */
22 /* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
23 /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
24 /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
25 /* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
26 /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
27 /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
28 /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
29 /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
30 /* THIS SOFTWARE. */
31 /* */
32 /*************************************************************************/
33 /* */
34 /* Author: Richard Caley (rjc@cstr.ed.ac.uk) */
35 /* Date: Mon Nov 3 1997 */
36 /* -------------------------------------------------------------------- */
37 /* Defines for HTK format. */
38 /* */
39 /*************************************************************************/
40
41
42
43#ifndef __HTK_H__
44#define __HTK_H__
45
46#define HTK_ENERGY 0x0040
47#define HTK_NO_E 0x0080
48#define HTK_DELTA 0x0100
49#define HTK_AC 0x0200
50#define HTK_COMP 0x0400
51#define HTK_ZM 0x0800
52#define HTK_CRC 0x1000
53#define HTK_0CEP 0x2000
54#define HTK_EST_PS 0x4000 // This is a local one and may become illegal
55#define HTK_MASK 0x003f
56
57#define HTK_WAVE 0x0000
58#define HTK_LPC 0x0001
59#define HTK_LPCREFC 0x0002
60#define HTK_LPCCEP 0x0003
61#define HTK_LPDELCEP 0x0004
62#define HTK_IREFC 0x0005
63#define HTK_MFCC 0x0006
64#define HTK_FBANK 0x0007
65#define HTK_MELSPEC 0x0008
66#define HTK_USER 0x0009
67#define HTK_DISCRETE 0x000A
68
69
70/* 100ns = 10 per us = 10 000 per ms = 10 000 000 per second*/
71#define HTK_UNITS_PER_SECOND 10000000
72
74{
75 int num_samps;
76 int samp_period; /* in 100ns units -design choice of the century*/
77 /* I don't think this is right -- awb, is this an old HTK format ? */
78 short samp_size; /* number of bytes per sample */
79 short samp_type; /* code from 0 to 10 indicating sample kind */
80 /* - see HTK reference manual, or #defs above */
81};
82
83
84#endif