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

📄 f0.h

📁 speech signal process tools
💻 H
字号:
/* * This material contains unpublished, proprietary software of  * Entropic Research Laboratory, Inc. Any reproduction, distribution,  * or publication of this work must be authorized in writing by Entropic  * Research Laboratory, Inc., and must bear the notice:  * *    "Copyright (c) 1990-1996 Entropic Research Laboratory, Inc.  *                   All rights reserved" * * The copyright notice above does not evidence any actual or intended  * publication of this source code.      * * Written by:  David Talkin * Checked by: * Revised by: * @(#)f0.h	1.4 9/9/96 ERL * Brief description: * *//* f0.h *//* Some definitions used by the "Pitch Tracker Software". */       typedef struct f0_params {float cand_thresh,	/* only correlation peaks above this are considered */      lag_weight,	/* degree to which shorter lags are weighted */      freq_weight,	/* weighting given to F0 trajectory smoothness */      trans_cost,	/* fixed cost for a voicing-state transition */      trans_amp,	/* amplitude-change-modulated VUV trans. cost */      trans_spec,	/* spectral-change-modulated VUV trans. cost */      voice_bias,	/* fixed bias towards the voiced hypothesis */      double_cost,	/* cost for octave F0 jumps */      mean_f0,		/* talker-specific mean F0 (Hz) */      mean_f0_weight,	/* weight to be given to deviations from mean F0 */      min_f0,		/* min. F0 to search for (Hz) */      max_f0,		/* max. F0 to search for (Hz) */      frame_step,	/* inter-frame-interval (sec) */      wind_dur;		/* duration of correlation window (sec) */int   n_cands,		/* max. # of F0 cands. to consider at each frame */      conditioning;     /* Specify optional signal pre-conditioning. */} F0_params;/* Possible values returned by the function f0(). */#define F0_OK		0#define F0_NO_RETURNS	1#define F0_TOO_FEW_SAMPLES	2#define F0_NO_INPUT	3#define F0_NO_PAR	4#define F0_BAD_PAR	5#define F0_BAD_INPUT	6#define F0_INTERNAL_ERR	7/* Bits to specify optional pre-conditioning of speech signals by f0() *//* These may be OR'ed together to specify all preprocessing. */#define F0_PC_NONE	0x00		/* no pre-processing */#define F0_PC_DC	0x01		/* remove DC */#define F0_PC_LP2000	0x02		/* 2000 Hz lowpass */#define F0_PC_HP100	0x04		/* 100 Hz highpass */#define F0_PC_AR	0x08		/* inf_order-order LPC inverse filter */#define F0_PC_DIFF	0x010		/* 1st-order difference */extern F0_params *new_f0_params();extern int atoi(), round(), lpc(), window(), get_window();extern void get_fast_cands(), a_to_aca(), cross(), crossf(), crossfi(),           autoc(), durbin();#define Fprintf (void)fprintf

⌨️ 快捷键说明

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