/*************************************************************************/ /* */ /* Language Technologies Institute */ /* Carnegie Mellon University */ /* Copyright (c) 2001 */ /* All Rights Reserved. */ /* */ /* Permission is hereby granted, free of charge, to use and distribute */ /* this software and its documentation without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of this work, and to */ /* permit persons to whom this work is furnished to do so, subject to */ /* the following conditions: */ /* 1. The code must retain the above copyright notice, this list of */ /* conditions and the following disclaimer. */ /* 2. Any modifications must be clearly marked as such. */ /* 3. Original authors' names are not deleted. */ /* 4. The authors' names are not used to endorse or promote products */ /* derived from this software without specific prior written */ /* permission. */ /* */ /* CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK */ /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */ /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */ /* SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE */ /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */ /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */ /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */ /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */ /* THIS SOFTWARE. */ /* */ /*************************************************************************/ /* Author: Alan W Black (awb@cs.cmu.edu) */ /* Date: January 1999 */ /*************************************************************************/ /* */ /* User defined type registration */ /* */ /* I'd like to make this file be automatically generated */ /* */ /*************************************************************************/ /* ----------------------------------------------------------------- */ /* The English TTS System "Flite+hts_engine" */ /* developed by HTS Working Group */ /* http://hts-engine.sourceforge.net/ */ /* ----------------------------------------------------------------- */ /* */ /* Copyright (c) 2005-2013 Nagoya Institute of Technology */ /* Department of Computer Science */ /* */ /* 2005-2008 Tokyo Institute of Technology */ /* Interdisciplinary Graduate School of */ /* Science and Engineering */ /* */ /* All rights reserved. */ /* */ /* Redistribution and use in source and binary forms, with or */ /* without modification, are permitted provided that the following */ /* conditions are met: */ /* */ /* - Redistributions of source code must retain the above copyright */ /* notice, this list of conditions and the following disclaimer. */ /* - Redistributions in binary form must reproduce the above */ /* copyright notice, this list of conditions and the following */ /* disclaimer in the documentation and/or other materials provided */ /* with the distribution. */ /* - Neither the name of the HTS working group nor the names of its */ /* contributors may be used to endorse or promote products derived */ /* from this software without specific prior written permission. */ /* */ /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ /* POSSIBILITY OF SUCH DAMAGE. */ /* ----------------------------------------------------------------- */ #include "cst_val.h" #include "cst_string.h" CST_VAL_REG_TD_TYPE(utterance,cst_utterance,7) #ifndef FLITE_PLUS_HTS_ENGINE CST_VAL_REG_TD_TYPE(wave,cst_wave,9) CST_VAL_REG_TD_TYPE(track,cst_track,11) CST_VAL_REG_TD_TYPE(lpcres,cst_lpcres,13) CST_VAL_REG_TD_FUNCPTR(uttfunc,cst_uttfunc,15) #else CST_VAL_REG_TD_TYPE(wave,NULL,9) CST_VAL_REG_TD_TYPE(track,NULL,11) CST_VAL_REG_TD_TYPE(lpcres,NULL,13) CST_VAL_REG_TD_FUNCPTR(uttfunc,NULL,15) #endif /* !FLITE_PLUS_HTS_ENGINE */ CST_VAL_REG_TD_FUNCPTR(ffunc,cst_ffunction,17) CST_VAL_REG_TD_TYPE_NODEL(relation,cst_relation,19) CST_VAL_REG_TD_TYPE_NODEL(item,cst_item,21) CST_VAL_REG_TD_TYPE_NODEL(cart,cst_cart,23) CST_VAL_REG_TD_TYPE_NODEL(phoneset,cst_phoneset,25) CST_VAL_REG_TD_TYPE_NODEL(lexicon,cst_lexicon,27) CST_VAL_REG_TD_TYPE_NODEL(dur_stats,dur_stats,29) CST_VAL_REG_TD_TYPE_NODEL(diphone_db,cst_diphone_db,31) CST_VAL_REG_TD_TYPE_NODEL(clunit_db,cst_clunit_db,33) CST_VAL_REG_TD_TYPE_NODEL(vit_cand,cst_vit_cand,35) CST_VAL_REG_TD_TYPE_NODEL(sts_list,cst_sts_list,37) CST_VAL_REG_TD_TYPE_NODEL(userdata,cst_userdata,41) CST_VAL_REGISTER_TYPE_NODEL(userdata,cst_userdata) CST_VAL_REG_TD_FUNCPTR(itemfunc,cst_itemfunc,43) CST_VAL_REG_TD_TYPE(features,cst_features,45) CST_VAL_REG_TD_FUNCPTR(breakfunc,cst_breakfunc,47) CST_VAL_REG_TD_TYPE_NODEL(cg_db,cst_cg_db,49) CST_VAL_REG_TD_TYPE(voice,cst_voice,51) CST_VAL_REG_TD_TYPE(audio_streaming_info,cst_audio_streaming_info,53) const cst_val_def cst_val_defs[] = { /* These ones are never called */ { "int" , NULL }, /* 1 INT */ { "float", NULL }, /* 3 FLOAT */ { "string", NULL }, /* 5 STRING */ /* These are indexed (type/2) at print and delete time */ { "utterance", val_delete_utterance }, /* 7 utterance */ #ifndef FLITE_PLUS_HTS_ENGINE { "wave", val_delete_wave }, /* 9 wave */ { "track", val_delete_track }, /* 11 track */ { "lpcres", val_delete_lpcres }, /* 13 lpcres */ { "uttfunc", val_delete_uttfunc }, /* 15 uttfunc */ #else { "wave", NULL }, /* 9 wave */ { "track", NULL }, /* 11 track */ { "lpcres", NULL }, /* 13 lpcres */ { "uttfunc", NULL }, /* 15 uttfunc */ #endif /* !FLITE_PLUS_HTS_ENGINE */ { "ffunc", val_delete_ffunc }, /* 17 ffunc */ { "relation", val_delete_relation }, /* 19 relation */ { "item", val_delete_item }, /* 21 item */ { "cart", val_delete_cart }, /* 23 cart */ { "phoneset", val_delete_phoneset }, /* 25 phoneset */ { "lexicon", val_delete_lexicon }, /* 27 lexicon */ { "dur_stats", val_delete_dur_stats }, /* 29 dur_stats */ { "diphone_db", val_delete_diphone_db }, /* 31 diphone_db */ { "clunit_db", val_delete_clunit_db }, /* 33 clunit_db */ { "vit_cand", val_delete_vit_cand }, /* 35 vit_cand */ { "sts_list", val_delete_sts_list }, /* 37 sts_list */ { NULL, NULL }, /* 39 (reserved) */ { "userdata", val_delete_userdata }, /* 41 userdata */ { "itemfunc", val_delete_itemfunc }, /* 43 itemfunc */ { "features", val_delete_features }, /* 45 itemfunc */ { "breakfunc", val_delete_breakfunc }, /* 47 breakfunc */ { "cg_db", val_delete_cg_db }, /* 49 cg_db */ #ifndef FLITE_PLUS_HTS_ENGINE { "voice", val_delete_voice }, /* 51 cst_voice */ { "audio_streaming_info", val_delete_audio_streaming_info }, /* 53 asi */ #else { "voice", NULL }, /* 51 cst_voice */ { "audio_streaming_info", NULL }, /* 53 asi */ #endif /* !FLITE_PLUS_HTS_ENGINE */ { NULL, NULL } /* NULLs at end of list */ };