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

📄 cmu_usdiphonetemplate.java.template

📁 使用Exlipse编写的一个语音程序
💻 TEMPLATE
字号:
package com.sun.speech.freetts.en.us.%VOICENAME%;import com.sun.speech.freetts.en.us.CMUDiphoneVoice;import com.sun.speech.freetts.en.us.CMULexicon;import com.sun.speech.freetts.VoiceDirectory;import com.sun.speech.freetts.Voice;import com.sun.speech.freetts.Gender;import com.sun.speech.freetts.Age;import java.util.Locale;/** * This voice directory provides a US/English Diphone voice imported * from FestVox. * */public class %CLASSNAME% extends VoiceDirectory {    /**     * Gets the voices provided by this voice.     *     * @return an array of new Voice instances     */    public Voice[] getVoices() {        // default to the generic lexicon        CMULexicon lexicon = new CMULexicon("cmulex");        // Change voice properties here        Voice voice = new CMUDiphoneVoice("%NAME%",                Gender.%GENDER%, Age.%AGE%, "%DESCRIPTION%",                Locale.US, "%DOMAIN%", "%ORGANIZATION%",                lexicon,                this.getClass().getResource("%VOICENAME%.bin"));        Voice[] voices = {voice};        return voices;    }    /**     * Print out information about this voice jarfile.     */    public static void main(String[] args) {        System.out.println((new %CLASSNAME%()).toString());    }}

⌨️ 快捷键说明

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