亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? speak_lib.h

?? a good tool for converting text to speech in linux
?? H
?? 第 1 頁 / 共 2 頁
字號:
#ifndef SPEAK_LIB_H#define SPEAK_LIB_H/*************************************************************************** *   Copyright (C) 2005 to 2007 by Jonathan Duddington                     * *   email: jonsd@users.sourceforge.net                                    * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 3 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * *   This program is distributed in the hope that it will be useful,       * *   but WITHOUT ANY WARRANTY; without even the implied warranty of        * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         * *   GNU General Public License for more details.                          * *                                                                         * *   You should have received a copy of the GNU General Public License     * *   along with this program; if not, see:                                 * *               <http://www.gnu.org/licenses/>.                           * ***************************************************************************//*************************************************************//* This is the header file for the library version of espeak *//*                                                           *//*************************************************************/#define ESPEAK_API __declspec(dllexport)#include <stdio.h>#define ESPEAK_API_REVISION  3/*Revision 2   Added parameter "options" to eSpeakInitialize()Revision 3   Added espeakWORDGAP to  espeak_PARAMETER*/         /********************/         /*  Initialization  */         /********************/typedef enum {  espeakEVENT_LIST_TERMINATED = 0, // Retrieval mode: terminates the event list.  espeakEVENT_WORD = 1,            // Start of word  espeakEVENT_SENTENCE,            // Start of sentence  espeakEVENT_MARK,                // Mark  espeakEVENT_PLAY,                // Audio element  espeakEVENT_END,                 // End of sentence  espeakEVENT_MSG_TERMINATED,      // End of message  espeakEVENT_PHONEME              // Phoneme, if enabled in espeak_Initialize()} espeak_EVENT_TYPE;typedef struct {	espeak_EVENT_TYPE type;	unsigned int unique_identifier; // message identifier (or 0 for key or character)	int text_position;    // the number of characters from the start of the text	int length;           // word length, in characters (for espeakEVENT_WORD)	int audio_position;   // the time in mS within the generated speech output data	int sample;           // sample id (internal use)	void* user_data;      // pointer supplied by the calling program	union {		int number;        // used for WORD and SENTENCE events. For PHONEME events this is the phoneme mnemonic.		const char *name;  // used for MARK and PLAY events.  UTF8 string	} id;} espeak_EVENT;/*    When a message is supplied to espeak_synth, the request is buffered and espeak_synth returns. When the message is really processed, the callback function will be repetedly called.   In RETRIEVAL mode, the callback function supplies to the calling program the audio data and an event list terminated by 0 (LIST_TERMINATED).   In PLAYBACK mode, the callback function is called as soon as an event happens.   For example suppose that the following message is supplied to espeak_Synth:    "hello, hello."   * Once processed in RETRIEVAL mode, it could lead to 3 calls of the callback function :   ** Block 1:   <audio data> +    List of events: SENTENCE + WORD + LIST_TERMINATED    ** Block 2:   <audio data> +   List of events: WORD + END + LIST_TERMINATED   ** Block 3:   no audio data   List of events: MSG_TERMINATED + LIST_TERMINATED   * Once processed in PLAYBACK mode, it could lead to 5 calls of the callback function:   ** SENTENCE   ** WORD (call when the sounds are actually played)   ** WORD   ** END (call when the end of sentence is actually played.)   ** MSG_TERMINATED   The MSG_TERMINATED event is the last event. It can inform the calling program to clear the user data related to the message.   So if the synthesis must be stopped, the callback function is called for each pending message with the MSG_TERMINATED event.   A MARK event indicates a <mark> element in the text.   A PLAY event indicates an <audio> element in the text, for which the calling program should play the named sound file.*/typedef enum {	POS_CHARACTER = 1,	POS_WORD,	POS_SENTENCE} espeak_POSITION_TYPE;typedef enum {	/* PLAYBACK mode: plays the audio data, supplies events to the calling program*/	AUDIO_OUTPUT_PLAYBACK, 	/* RETRIEVAL mode: supplies audio data and events to the calling program */	AUDIO_OUTPUT_RETRIEVAL, 	/* SYNCHRONOUS mode: as RETRIEVAL but doesn't return until synthesis is completed */	AUDIO_OUTPUT_SYNCHRONOUS,	/* Synchronous playback */	AUDIO_OUTPUT_SYNCH_PLAYBACK} espeak_AUDIO_OUTPUT;typedef enum {	EE_OK=0,	EE_INTERNAL_ERROR=-1,	EE_BUFFER_FULL=1,	EE_NOT_FOUND=2} espeak_ERROR;#ifdef __cplusplusextern "C"#endifESPEAK_API int espeak_Initialize(espeak_AUDIO_OUTPUT output, int buflength, const char *path, int options);/* Must be called before any synthesis functions are called.   output: the audio data can either be played by eSpeak or passed back by the SynthCallback function.   buflength:  The length in mS of sound buffers passed to the SynthCallback function.   path: The directory which contains the espeak-data directory, or NULL for the default location.   options: bit 0: 1=allow espeakEVENT_PHONEME events.   Returns: sample rate in Hz, or -1 (EE_INTERNAL_ERROR).*/typedef int (t_espeak_callback)(short*, int, espeak_EVENT*);#ifdef __cplusplusextern "C"#endifESPEAK_API void espeak_SetSynthCallback(t_espeak_callback* SynthCallback);/* Must be called before any synthesis functions are called.   This specifies a function in the calling program which is called when a buffer of   speech sound data has been produced.    The callback function is of the form:int SynthCallback(short *wav, int numsamples, espeak_EVENT *events);   wav:  is the speech sound data which has been produced.      NULL indicates that the synthesis has been completed.   numsamples: is the number of entries in wav.  This number may vary, may be less than      the value implied by the buflength parameter given in espeak_Initialize, and may      sometimes be zero (which does NOT indicate end of synthesis).   events: an array of espeak_EVENT items which indicate word and sentence events, and      also the occurance if <mark> and <audio> elements within the text.  The list of      events is terminated by an event of type = 0.   Callback returns: 0=continue synthesis,  1=abort synthesis.*/#ifdef __cplusplusextern "C"#endifESPEAK_API void espeak_SetUriCallback(int (*UriCallback)(int, const char*, const char*));/* This function may be called before synthesis functions are used, in order to deal with   <audio> tags.  It specifies a callback function which is called when an <audio> element is   encountered and allows the calling program to indicate whether the sound file which   is specified in the <audio> element is available and is to be played.   The callback function is of the form:int UriCallback(int type, const char *uri, const char *base);   type:  type of callback event.  Currently only 1= <audio> element   uri:   the "src" attribute from the <audio> element   base:  the "xml:base" attribute (if any) from the <speak> element   Return: 1=don't play the sound, but speak the text alternative.           0=place a PLAY event in the event list at the point where the <audio> element             occurs.  The calling program can then play the sound at that point.*/         /********************/         /*    Synthesis     */         /********************/#define espeakCHARS_AUTO   0#define espeakCHARS_UTF8   1#define espeakCHARS_8BIT   2#define espeakCHARS_WCHAR  3#define espeakSSML        0x10#define espeakPHONEMES    0x100#define espeakENDPAUSE    0x1000#define espeakKEEP_NAMEDATA 0x2000#ifdef __cplusplusextern "C"#endifESPEAK_API espeak_ERROR espeak_Synth(const void *text,	size_t size,	unsigned int position,	espeak_POSITION_TYPE position_type,	unsigned int end_position,	unsigned int flags,	unsigned int* unique_identifier,	void* user_data);/* Synthesize speech for the specified text.  The speech sound data is passed to the calling   program in buffers by means of the callback function specified by espeak_SetSynthCallback(). The command is asynchronous: it is internally buffered and returns as soon as possible. If espeak_Initialize was previously called with AUDIO_OUTPUT_PLAYBACK as argument, the sound data are played by eSpeak.   text: The text to be spoken, terminated by a zero character. It may be either 8-bit characters,      wide characters (wchar_t), or UTF8 encoding.  Which of these is determined by the "flags"      parameter.   size: Equal to (or greatrer than) the size of the text data, in bytes.  This is used in order      to allocate internal storage space for the text.  This value is not used for      AUDIO_OUTPUT_SYNCHRONOUS mode.   position:  The position in the text where speaking starts. Zero indicates speak from the      start of the text.   position_type:  Determines whether "position" is a number of characters, words, or sentences.      Values:    end_position:  If set, this gives a character position at which speaking will stop.  A value      of zero indicates no end position.   flags:  These may be OR'd together:      Type of character codes, one of:         espeakCHARS_UTF8     UTF8 encoding         espeakCHARS_8BIT     The 8 bit ISO-8859 character set for the particular language.         espeakCHARS_AUTO     8 bit or UTF8  (this is the default)         espeakCHARS_WCHAR    Wide characters (wchar_t)      espeakSSML   Elements within < > are treated as SSML elements, or if not recognised are ignored.      espeakPHONEMES  Text within [[ ]] is treated as phonemes codes (in espeak's Hirshenbaum encoding).      espeakENDPAUSE  If set then a sentence pause is added at the end of the text.  If not set then         this pause is suppressed.   unique_identifier: message identifier; helpful for identifying later      data supplied to the callback.   user_data: pointer which will be passed to the callback function.   Return: EE_OK: operation achieved            EE_BUFFER_FULL: the command can not be buffered;              you may try after a while to call the function again.	   EE_INTERNAL_ERROR.*/#ifdef __cplusplusextern "C"#endifESPEAK_API espeak_ERROR espeak_Synth_Mark(const void *text,	size_t size,	const char *index_mark,	unsigned int end_position,	unsigned int flags,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩视频一区二区三区| 亚洲福利视频导航| 亚洲人精品午夜| 日韩电影在线观看电影| 成人av在线看| 欧美一级片在线| 一区二区久久久久| 国产盗摄一区二区| 欧美一区二区三区在线观看视频| 自拍偷拍国产精品| 国产精华液一区二区三区| 欧美日韩国产影片| 一区二区三区欧美日韩| 成人黄色网址在线观看| 欧美精品一区二| 日本视频在线一区| 精品视频999| 亚洲男人的天堂在线aⅴ视频| 国产一区三区三区| 91精品视频网| 天堂成人国产精品一区| 在线中文字幕一区| 亚洲视频图片小说| av欧美精品.com| 国产午夜精品久久久久久久| 精品一区二区成人精品| 日韩三级在线免费观看| 丝袜亚洲另类欧美| 欧美乱妇一区二区三区不卡视频| 亚洲乱码国产乱码精品精可以看| 成人黄色一级视频| 国产精品久久久久久久久动漫| 国产成人在线影院| 国产亚洲欧美色| 国产成人精品影视| 国产精品污污网站在线观看| 国产成人免费在线| 国产精品视频在线看| 波多野结衣在线一区| 中文字幕av在线一区二区三区| 国产老妇另类xxxxx| 久久久91精品国产一区二区精品 | 美女mm1313爽爽久久久蜜臀| 欧美美女网站色| 日韩av成人高清| 欧美一级二级三级蜜桃| 久久99热99| 久久精品欧美一区二区三区不卡| 国产成人aaa| 中文字幕制服丝袜一区二区三区| 99久久夜色精品国产网站| 亚洲猫色日本管| 欧美猛男男办公室激情| 美女脱光内衣内裤视频久久影院| 久久免费电影网| 成人动漫一区二区| 亚洲观看高清完整版在线观看 | 日韩午夜在线观看视频| 久久国产尿小便嘘嘘| 欧美高清在线视频| 在线免费观看视频一区| 理论电影国产精品| 欧美激情一区三区| 欧美色涩在线第一页| 国精产品一区一区三区mba视频| 中文字幕巨乱亚洲| 欧美亚洲综合另类| 国产精品正在播放| 一区二区三区四区不卡视频| 日韩视频在线一区二区| www.一区二区| 全国精品久久少妇| 中文字幕在线播放不卡一区| 777xxx欧美| 99久久免费视频.com| 蜜桃视频在线一区| 亚洲视频网在线直播| 日韩欧美国产精品| 日本丰满少妇一区二区三区| 久久99精品国产| 亚洲国产综合人成综合网站| 亚洲国产精品t66y| 欧美一区二区三区在| 99久久777色| 国产在线国偷精品免费看| 亚洲精品菠萝久久久久久久| 久久毛片高清国产| 在线不卡一区二区| av一区二区三区黑人| 狠狠色丁香久久婷婷综| 亚洲成国产人片在线观看| 国产精品久久夜| 精品电影一区二区| 欧美喷水一区二区| 欧美在线综合视频| 99九九99九九九视频精品| 欧美在线免费视屏| kk眼镜猥琐国模调教系列一区二区| 免费观看在线色综合| 亚洲成av人片观看| 伊人色综合久久天天| 国产精品萝li| 欧美国产一区二区在线观看| 日韩免费高清视频| 91精品国产全国免费观看| 欧美日韩在线综合| 欧美自拍偷拍一区| 在线观看中文字幕不卡| 91在线免费看| 99精品久久99久久久久| 成人激情动漫在线观看| 国产激情视频一区二区在线观看 | 一区二区三区久久久| 中文字幕欧美一| 国产精品久久久久一区二区三区共 | 久久 天天综合| 麻豆精品一区二区三区| 蜜臀久久99精品久久久画质超高清 | 亚洲一区二区三区爽爽爽爽爽| 中文字幕视频一区| 日韩一区欧美一区| 亚洲日本va午夜在线影院| 亚洲美女免费在线| 亚洲激情图片一区| 亚洲一区二区三区四区五区黄 | 玉米视频成人免费看| 亚洲视频 欧洲视频| 亚洲免费在线播放| 亚洲国产成人va在线观看天堂| 亚洲在线中文字幕| 日韩电影在线免费| 国内不卡的二区三区中文字幕| 国产九色sp调教91| 成人av小说网| 欧美羞羞免费网站| 欧美一区二区三区婷婷月色| 精品剧情v国产在线观看在线| 久久婷婷成人综合色| 国产精品系列在线| 亚洲国产综合91精品麻豆| 青青草精品视频| 国产成人午夜精品影院观看视频| 成人性生交大片免费看视频在线| 91啪九色porn原创视频在线观看| 欧美午夜电影一区| 日韩三级在线观看| 中文字幕一区二区三区四区不卡| 一区二区免费看| 开心九九激情九九欧美日韩精美视频电影 | 欧美美女黄视频| 精品国产a毛片| 成人免费在线视频观看| 午夜精品久久久久久久久久| 国产综合色产在线精品| 欧美第一区第二区| 中文字幕在线免费不卡| 天堂在线亚洲视频| 顶级嫩模精品视频在线看| 色久综合一二码| 欧美精品一区二区在线播放| 亚洲欧洲国产专区| 精品综合免费视频观看| 一本一道久久a久久精品| 日韩欧美123| 一区二区三区中文字幕精品精品 | 欧美日韩午夜精品| 日本一区二区三区视频视频| 亚洲6080在线| 不卡视频一二三| 日韩精品最新网址| 亚洲成人精品一区| 99久久99精品久久久久久| 精品国产一区二区三区不卡| 亚洲成人中文在线| 99视频国产精品| 久久久久久久av麻豆果冻| 亚洲第一狼人社区| 91片在线免费观看| 亚洲国产精华液网站w| 久久国产精品99久久久久久老狼 | 欧美午夜精品一区二区三区 | 亚洲欧美电影院| 国产成人鲁色资源国产91色综| 欧美一区二区在线视频| 一区二区三区高清在线| 大尺度一区二区| 久久久不卡网国产精品一区| 免费欧美日韩国产三级电影| 欧美这里有精品| 一区二区三区日韩欧美精品 | 色婷婷狠狠综合| 国产精品成人一区二区三区夜夜夜 | 日日摸夜夜添夜夜添亚洲女人| 91蜜桃网址入口| 最新日韩av在线| 色综合久久中文综合久久牛| 国产精品久久777777| 成人av影视在线观看| 中文字幕中文字幕一区| 95精品视频在线|