📄 rctrnfrm.3
字号:
.\" Copyright (c) 1986-1990 Entropic Speech, Inc..\" Copyright (c) 1991 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)rctrnfrm.3 1.8 01 May 1997 ESI/ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH RC_TRNFRM 3\-ESPSsp 01 May 1997.SH NAMErc_reps \- transform reflection coefficients into other spectral parameter sets.brreps_rc \- transform spectral parameter sets into reflection coefficients.SH SYNOPSIS.ft B#include <esps/anafea.h>.sp.brint .brrc_reps(rc, output, output_type, size, bwidth, frq_res).brint size, output_type;.brfloat *rc, *output, bwidth, frq_res;.sp.brint.brreps_rc(input, input_type, rc, size, bwidth).brint size, input_type;.brfloat *input, *rc, bwidth;.SH DESCRIPTIONEach function transforms a set of coefficients that contain spectralinformation into another equivalent set of coefficients. Valid spectral types are defined in \fIanafea.h\fR under \fIspec_reps[]\fR, but they includereflection coefficients (RC), log area ratios (LAR), normalizedautocorrelations (AUTO), autoregressive filter coefficients (AFC),cepstrum coefficients (CEP), and line spectral frequencies (LSF).\fIrc_reps\fR starts with RCs and converts them into LARs, AFCs, AUTOs, CEPs, or LSFs; \fIreps_rc\fR transforms LARs, AFCs, AUTOs, CEPs, orLSFs into RCs..PP.I rc_repstransforms the input \fIrc\fRs into the parameter type \fIoutput_type\fRand returns them in \fIoutput\fR. \fISize\fR is the number of inputand output parameters. \fIBwidth\fR and \fIfrq_res\fR are parametersthat are only used when transforming to LSFs. \fIBwidth\fR shouldequal the bandwidth (Nyquist frequency) of the data that was used in estimating the RCs.\fIFrq_res\fR specifies the resolution of the search grid thatis used in finding the LSFs.For signal bandwidths of 4000 Hz., \fIfrq_res\fR between 2 and 50 Hz.are reasonable..PP.I reps_rctransforms the \fIinput\fR from \fIinput_type\fR parameters intoRCs and returns them in \fIrc\fR.\fISize\fR is the number of input and output parameters.\fIBwidth\fR is the Nyquist frequency of the source sampled dataand is only used when converting from LSFs..SH WARNINGS.PPThe leading \-1 for AFCs and the leading 1 for normalized AUTOsare not included in the input or output vectors.Neither is the first term = ln{sqrt[residual power]} for CEPs..SH DIAGNOSTICS.PPBoth functions return 0 for normal completion, and they return \-1 ifthey encounter invalid spectral types.If input and output parameters are both RCs, a warning is issued,but RCs are returned in the output array..SH EXAMPLES.nf /* * Convert RCs to LARs */ #include <esps/anafea.h> int size = 3, output_type = LAR, input_type = LAR; static float rc[] = {.9, .5, .1}; float lar[3], bwidth, frq_res; /* Ready to Convert */ if((rc_reps(rc, lar, output_type, size, bwidth, frq_res)) == \-1) { TROUBLE WITH CONVERSION } /* * Convert back to RCs */ if((reps_rc(lar, input_type, rc, size, bwidth) == \-1){ TROUBLE WITH CONVERSION }.fi.SH BUGSNone known..SH SEE ALSOauto_pefrc(3-ESPSsp), pc_to_lsf(3-ESPSsp), .brlsf_to_pc(3-ESPSsp).SH FUTURE CHANGESAdd cepstrum and area functions to the allowable spectral types..SH AUTHORManual page and code by David Burton
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -