feaencode.3

来自「speech signal process tools」· 3 代码 · 共 49 行

3
49
字号
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)feaencode.3	1.5 06 May 1997 ESI.TH FEA_ENCODE 3\-ESPSu 06 May 1997.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEfea_encode \- get code corresponding to string for coded field in ESPS FEA file.SH SYNOPSIS.nf.ft B#include <esps/esps.h>#include <esps/fea.h>shortfea_encode(str, name, hd)char *str;char *name;struct header *hd;.fi.ft.SH DESCRIPTION.I fea_encodereturns the numeric value corresponding to the character string\fIstr\fR in the value space of Feature file field \fIname\fR in theheader pointed to by \fIhd\fR.   If \fIstr\fR is not a possible valuefor \fIname\fR then -1 is returned.If \fIname\fR is not defined as a CODED field in \fIhd\fR then -2 isreturned..SH EXAMPLE.PPAssume field name \fIzeta\fR was created as a field of type coded withpossible values "ZA", "ZB", and "ZC" in ESPS feature file \fIhd\fR.   "ZA" corresponds to a value of0, "ZB" corresponds to a value of 1, and "ZC" corresponds to a value of2.    Calling:.PP.nfvalue = fea_encode("ZB","zeta",hd);.fi.PPwill return 1..SH "SEE ALSO".PP.nfallo_fea_rec(3\-ESPSu), add_fea_fld(3\-ESPSu), get_fea_deriv(3\-ESPSu),get_fea_ptr(3\-ESPSu), fea_decode(3\-ESPSu), set_fea_deriv(3\-ESPSu), FEA(5\-ESPS).fi

⌨️ 快捷键说明

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