⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 feadst.5t

📁 speech signal process tools
💻 5T
字号:
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)feadst.5t	1.4 25 Sep 1997 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH FEA_DST 5\-ESPS 25 Sep 1997.SH NAMEESPS Quantized Distortion Feature File Subtype \- (.dst).SH SYNOPSIS.nf.ft B#include <esps/esps.h>#include <esps/fea.h>#include <esps/feadst.h>#include <esps/vq.h>.fi.SH DESCRIPTION.PPThe FEA_DST file is a subtype of the FEA file.  If \fIhd\fR is a pointer to the header of such a file, then \fIhd\->hd.fea\->fea_type\fR== FEA_DST.  FEA_DST files are used to store quantization distortionand identification information useful for classification and recognition experiments.FEA_DST headers are created by calling .I init_feadst_hd(3\-ESPSu) after .I new_header(3\-ESPSu).  .PPThe header for a FEA_STATfile consists of the following generic header item,which is determined by a parameter in the call to\fIinit_feadst_hd\fR (3\-ESPS):.PP.TScenter, box, tab(;);c | c | c | cl | l | l | l.Name;Size;Type;Enums=max_num_sects;1;long;NULL;.TE.PPThe generic header item has the following meaning:.IP max_num_sectsThe maximum number of sections allowed in the input data fileand the codebook..PPIn addition to the pre-defined generic header item,theheader contains definitions for the record fields as given by the table below..PPIn the table,\fIsection_mthds\fR, \fIvq_cbk_types\fR, \fIcbk_structs\fR,and \fIdist_types\fR are arrays of possible valuesthat the field can take on.These are defined in the ESPS library.For the possible values, see \fIvq.h\fR and \fIfeadst.h\fR..PP.ne 10See \fIfea\fR(5\-ESPS) for additional information on the meaning of the table columns..sp.TScenter, box, tab(;);c | c | c | c | c | c l | l | l | l | l | l.Name;Size;Rank;Dimen;Type;Enums=data_sect_mthd;1;0;NULL;coded;\fIsection_mthds\fRdata_sect_num;1;0;NULL;short;NULLcbk_sect_mthd;1;0;NULL;coded;\fIsection_mthds\fRcbk_sect_num;1;0;NULL;short;NULLquant_field;16;1;NULL;char;NULLquant_field_rep;16;1;NULL;char;NULLcbk_struct;1;0;NULL;coded;\fIcbk_structs\fRcbk_type;1;0;NULL;coded;\fIvq_cbk_types\fRdsgn_dst;1;0;NULL;coded;\fIdist_types\fRcbk_train_dst;\fImax_num_sects\fR;1;NULL;float;NULLencde_dst;1;0;NULL;coded;\fIdist_types\fRcbk_sect_size;\fImax_num_sects\fR;1;NULL;short;NULLcbk_name;16;1;NULL;char;NULLcbk_rec;1;0;NULL;short;NULLdata_name;16;1;NULL;char;NULLsource_type;16;1;NULL;char;NULLcbk_source;32;1;NULL;char;NULLcbk_signal;16;1;NULL;char;NULLinput_source;32;1;NULL;char;NULLinput_signal;16;1;NULL;char;NULLin_rep_number;1;0;NULL;short;NULLdata_sect_dst;\fImax_num_sects\fR;1;NULL;float;NULLdata_sect_size;\fImax_num_sects\fR;1;NULL;short;NULLaverage_dst;1;0;NULL;float;NULL.TE.sp.PPIn most cases, programs that deal with FEA_DST files will use the supportroutines provided in the ESPS library and will not have to make directuse of the information in the above tables.   The library routine.I init_feadst_hd(3\-ESPSu) creates the record fields..PPPrograms that deal with FEA_DST files do so in terms of structures oftype (struct feadst) \- pointers to structures of this type are returned by .IR allo_feadst_rec (3\-ESPSu), and the FEA_DST read and write routines (\fIget_feadst_rec\fRand \fIput_feadst_rec\fP) have parameters of type (struct feadst).  Here is the definition of the feadst struct (given in \fI<esps/feadst.h>\fR):.spstruct	feadst	{.TSl1 l1 l1 l.   short	*data_sect_mthd;	/\(** input data sectioning method \(**/   short	*data_sect_num;	/\(** number of input sections \(**/   short	*cbk_sect_mthd;	/\(** cbk design sectioning method \(**/   short	*cbk_sect_num;	/\(** number of cbk sections \(**/   char	*quant_field;	/\(** field quantized \(**/   char	*quant_field_rep;	/\(** type of field quantized \(**/   short	*cbk_struct;	/\(** codebook struct, e.g. FULL_SEARCH \(**/   short	*cbk_type;	/\(** cbk type, e.g. UNVOICED \(**/   float	*cbk_train_dst;	/\(** final design distortion(s) \(**/   short	*dsgn_dst;	/\(** codebook design distortion \(**/   short	*encde_dst;	/\(** quantization distortion \(**/   short	*cbk_sect_size;	/\(** size of each section cbk \(**/   char	*cbk_name;	/\(** name of input cbk \(**/   long	*cbk_rec;	/\(** cbk record number \(**/   char	*data_name;	/\(** name of input file \(**/   char	*cbk_source;	/\(** name of codebook source \(**/   char	*source_type;	/\(** type of source \(**/   char	*cbk_signal;	/\(** name of codebook signal \(**/   char	*input_source;	/\(** name of input source \(**/   char	*input_signal;	/\(** name of input signal \(**/   short	*in_rep_number;	/\(** repetition # of input \(**/   float	*data_sect_dst;	/\(** quantization distortion per section \(**/   short	*data_sect_size;	/\(** # of input vectors per input section \(**/   float	*average_dst;	/\(**total average distortion \(**/   struct fea_data	*fea_rec;	/\(**ptr to corresponding fea record \(**/    };.TE.PPThe record fields have the following meanings:.IP data_sect_mthdThis field identifies the sectioning method used on the file that was quantized..IP data_sect_numThe number of sections in the file that was quantized..IP cbk_sect_mthdThis field identifies the sectioning method used when the codebook was designed..IP cbk_sect_numThe number of codebook sections in the codebook used to quantize the input file..IP quant_fieldThis fieldidentifies the field in the input file that was quantized..IP quant_field_repThis field identifies the field's representation in the input file thatwas quantized. For example, in FEA_ANA files,the \fIspec_param\fR field has many different possible representations:AUTO, RC, LAR, AFC, CEPSTRUM, and LSF \- note that this fieldis a character string rather than an enumerated type. "N.A." used only ifit is relevant..IP cbk_typeThis field identifies the type of the codebook that was used toquantize the input data..IP cbk_train_dstThis field contains the final average distortion that results fromthe codebook design process. For multisection codebooks,there are final distortions for each section of the codebook;for single section codebooks, there is only one distortion value..IP dsgn_dstThis field identifies the distortion measure that was used to design the codebook that was used toquantize the input data..IP encde_dstThis field identifiesthe distortion measure that was used to quantize the input data in the input codebook file (\fIcbk_name\fR)..IP  cbk_sect_sizeThis is an array whose elements contain the number of codewordsthat the corresponding input section codebook contains. For example,if \fIcbk_sect_size[0]\fR = 4, then the first section codebook in the inputmultisection codebook has 4 codewords in it..IP cbk_nameThis is an array that contains the name of the multisection codebook filethat was used to quantize the input data file..IP cbk_recThis field identifies the record number in the multisection codebookfile (\fIcbk_name\fR) that was used to quantize the input data..IP data_nameThis is an array that contains the name of the inputfile whose \fIquant_field\fR was quantized..IP cbk_sourceThis is a character string that contains the name of the source representedby the codebook. For speech recognition applications,this would be the name of a speaker..IP source_typeThis is a character string that contains a type code of the source.  For speechrecognition applications this would be the sex of the speaker.The list of possible values is supplied to\fIinit_feadst_hd\fR(3\-ESPS)..IP cbk_signalThis is a character string that contains the name of the signal represented bythe codebook. For speech recognition applications, this would be thetext of the word or utterancethat the codebook represents..IP input_sourceThis is a character string that contains the name of the source of theinput data.For speech recognition applications,this would be the name of the speaker of the input data..IP input_signalThis is a character string that contains the name of the signal represented bythe input data. For speech recognition applications, this is thetext of the word or utterancethat the input represents..IP in_rep_numberThis number in this field tells which occurence of theinput (identical \fIinput_source\fR and \fIinput_signal\fR)contributed to this records average distortion value..IP data_sect_dstThis is an array that contains the averagedistortion that results from quantizing the correspondinginput section with the multisection codebook. There are as manynonzero elements in this array as MIN(\fIdata_sect_num, cbk_sect_num\fR)..IP data_sect_sizeThis is an array that contains the number of vectors in each input section. There are as manynonzero elements in this array as MIN(\fIdata_sect_num, cbk_sect_num\fR)..IP average_dstThis field contains the total average distortion that resultsfrom encoding the input file in the multisection codebook..IP fea_recThis is a pointer to the FEA file record in which all the FEA_DST information is stored.  Programs should not use this value directly..SH SEE ALSO.PP.nfinit_feadst_hd(3\-ESPSu), allo_feadst_rec(3\-ESPSu), get_feadst_rec(3\-ESPSu), put_feadst_rec(3\-ESPSu), FEA(5\-ESPS), ESPS(5\-ESPS), FEA_VQ(5\-ESPS).fi.SH RECORD ELEMENT FILE STRUCTURE.PPIn order to use this (or any other) FEA file type with a generic ESPSprogram (one that operates on any file type) it is necessary to know theway that record elements are positioned in the file.   For a FEA filethat information is obtained by running the program\fIfea_element\fR(1\-ESPS) on the file in question..SH FILES.PP.nf/usr/include/esps/fea.h/usr/include/esps/feadst.h/usr/include/esps/esps.h/usr/include/esps/vq.h.SH AUTHORManual page by David Burton

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -