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

📄 arcticvoice.java.template

📁 使用Exlipse编写的一个语音程序
💻 TEMPLATE
字号:
package com.sun.speech.freetts.en.us.%FV_VOICENAME%;import java.util.Locale;import java.net.URL;import com.sun.speech.freetts.Age;import com.sun.speech.freetts.Gender;import com.sun.speech.freetts.en.us.CMUArcticVoice;import com.sun.speech.freetts.en.us.CMULexicon;/** * Class merely to allow us to find *.txt files for this voice. */public class ArcticVoice extends CMUArcticVoice {    /**     * Creates a simple cluster unit voice for the ARCTIC voices     *     * @param name the name of the voice     * @param gender the gender of the voice     * @param age the age of the voice     * @param description a human-readable string providing a     * description that can be displayed for the users.     * @param locale the locale of the voice     * @param domain the domain of this voice.  For example,     * @param organization the organization which created the voice     * "general", "time", or     * "weather".     * @param lexicon the lexicon to load     * @param database the url to the database containing unit data     * for this voice.     */    public ArcticVoice(String name, Gender gender, Age age,                 String description, Locale locale, String domain,                 String organization, CMULexicon lexicon, URL database) {	super(name, gender, age, description, locale,              domain, organization, lexicon, database);        /* [[[WDW FIXME: should set these params from the voice.]]]         */        if (false) {            setRate(150f);            setPitch(100F);            setPitchRange(12F);        }    }    /**     * Get a resource for this voice.     * By default, the voice is searched for in the package     * to which the voice class belongs. Subclasses are free to     * override this behaviour.     */    protected URL getResource(String resource) {        URL url = this.getClass().getResource(resource);        return url;    }    /**     * Converts this object to a string     *      * @return a string representation of this object     */    public String toString() {	return "%FV_VOICENAME%";    }}

⌨️ 快捷键说明

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