本文整理了Java中com.sun.speech.freetts.Voice.getName()
方法的一些代码示例,展示了Voice.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Voice.getName()
方法的具体详情如下:
包路径:com.sun.speech.freetts.Voice
类名称:Voice
方法名:getName
暂无
代码示例来源:origin: org.mobicents.media.resources/player
public void releaseVoice(Voice v)
{
v.setAudioPlayer(null);
this.voicePool.get(v.getName().toLowerCase()).add(v);
}
代码示例来源:origin: ua.mobius.media.resources/player
public void releaseVoice(Voice v)
{
v.setAudioPlayer(null);
this.voicePool.get(v.getName().toLowerCase()).add(v);
}
代码示例来源:origin: org.restcomm.media.core.resource/media-core-resource-player
public void releaseVoice(Voice v)
{
v.setAudioPlayer(null);
this.voicePool.get(v.getName().toLowerCase()).add(v);
}
代码示例来源:origin: org.restcomm.media.core.resource/player
public void releaseVoice(Voice v)
{
v.setAudioPlayer(null);
this.voicePool.get(v.getName().toLowerCase()).add(v);
}
代码示例来源:origin: org.restcomm.media.core.resource/media-core-resource-player
private void setupMbrola() {
MbrolaVoiceFactory mbrolaVoiceFactory = new MbrolaVoiceFactory();
Voice[] voices = mbrolaVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), mbrolaVoiceFactory);
}
}
代码示例来源:origin: ua.mobius.media.resources/player
private void setupAlan() {
AlanVoiceFactory alanVoiceFactory = new AlanVoiceFactory();
Voice[] voices = alanVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), alanVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.core.resource/media-core-resource-player
private void setupKevin() {
KevinVoiceFactory kevinVoiceFactory = new KevinVoiceFactory();
Voice[] voices = kevinVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), kevinVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.resources/player
private void setupKevin() {
KevinVoiceFactory kevinVoiceFactory = new KevinVoiceFactory();
Voice[] voices = kevinVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), kevinVoiceFactory);
}
}
代码示例来源:origin: org.mobicents.media.resources/player
private void setupMbrola() {
MbrolaVoiceFactory mbrolaVoiceFactory = new MbrolaVoiceFactory();
Voice[] voices = mbrolaVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), mbrolaVoiceFactory);
}
}
代码示例来源:origin: ua.mobius.media.resources/player
private void setupMbrola() {
MbrolaVoiceFactory mbrolaVoiceFactory = new MbrolaVoiceFactory();
Voice[] voices = mbrolaVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), mbrolaVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.core.resource/media-core-resource-player
private void setupAlan() {
AlanVoiceFactory alanVoiceFactory = new AlanVoiceFactory();
Voice[] voices = alanVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), alanVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.core.resource/player
private void setupKevin() {
KevinVoiceFactory kevinVoiceFactory = new KevinVoiceFactory();
Voice[] voices = kevinVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), kevinVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.core.resource/player
private void setupMbrola() {
MbrolaVoiceFactory mbrolaVoiceFactory = new MbrolaVoiceFactory();
Voice[] voices = mbrolaVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), mbrolaVoiceFactory);
}
}
代码示例来源:origin: org.mobicents.media.resources/player
private void setupKevin() {
KevinVoiceFactory kevinVoiceFactory = new KevinVoiceFactory();
Voice[] voices = kevinVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), kevinVoiceFactory);
}
}
代码示例来源:origin: org.mobicents.media.resources/player
private void setupAlan() {
AlanVoiceFactory alanVoiceFactory = new AlanVoiceFactory();
Voice[] voices = alanVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), alanVoiceFactory);
}
}
代码示例来源:origin: org.restcomm.media.resources/player
private void setupAlan() {
AlanVoiceFactory alanVoiceFactory = new AlanVoiceFactory();
Voice[] voices = alanVoiceFactory.getVoices();
for (Voice v : voices) {
voiceFactories.put(v.getName(), alanVoiceFactory);
}
}
代码示例来源:origin: org.mobicents.media.resources/player
private boolean validate(Voice voice) {
MbrolaVoiceValidator validator = new MbrolaVoiceValidator((MbrolaVoice) voice);
try {
validator.validate();
return true;
} catch (ValidationException ve) {
logger.warn("MBROLA Voice " + voice.getName() + " set-up failed. \n" + ve.getMessage());
}
return false;
}
代码示例来源:origin: ua.mobius.media.resources/player
private boolean validate(Voice voice) {
MbrolaVoiceValidator validator = new MbrolaVoiceValidator((MbrolaVoice) voice);
try {
validator.validate();
return true;
} catch (ValidationException ve) {
logger.warn("MBROLA Voice " + voice.getName() + " set-up failed. \n" + ve.getMessage());
}
return false;
}
代码示例来源:origin: org.restcomm.media.core.resource/player
private boolean validate(Voice voice) {
MbrolaVoiceValidator validator = new MbrolaVoiceValidator((MbrolaVoice) voice);
try {
validator.validate();
return true;
} catch (ValidationException ve) {
logger.warn("MBROLA Voice " + voice.getName() + " set-up failed. \n" + ve.getMessage());
}
return false;
}
代码示例来源:origin: org.restcomm.media.resources/player
private boolean validate(Voice voice) {
MbrolaVoiceValidator validator = new MbrolaVoiceValidator((MbrolaVoice) voice);
try {
validator.validate();
return true;
} catch (ValidationException ve) {
logger.warn("MBROLA Voice " + voice.getName() + " set-up failed. \n" + ve.getMessage());
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!