commit | 594082f250e65366c197364f1dae6dc84e88c163 | [log] [tgz] |
---|---|---|
author | kfukuda <kfukuda> | Sun Apr 18 16:14:49 2010 +0000 |
committer | kfukuda <kfukuda> | Sun Apr 18 16:14:49 2010 +0000 |
tree | 22e8755c7cc8c9dd81d11690e83b1b9bb2a445f7 | |
parent | b64a83adce1c11294f089c8893df1d231f7fc847 [diff] |
[309599] Implement setGender method
diff --git a/plugins/org.eclipse.actf.ai.tts.protalker/src/org/eclipse/actf/ai/tts/protalker/engine/ProTalker.java b/plugins/org.eclipse.actf.ai.tts.protalker/src/org/eclipse/actf/ai/tts/protalker/engine/ProTalker.java index 843ed25..75fa699 100644 --- a/plugins/org.eclipse.actf.ai.tts.protalker/src/org/eclipse/actf/ai/tts/protalker/engine/ProTalker.java +++ b/plugins/org.eclipse.actf.ai.tts.protalker/src/org/eclipse/actf/ai/tts/protalker/engine/ProTalker.java
@@ -130,7 +130,11 @@ * @see org.eclipse.actf.ai.tts.ITTSEngine#setGender(java.lang.String) */ public void setGender(String gender) { - // Not available + if (gender.equals("male")) { + engine.setVoice(ProTalkerBridge.VOICE_MALE); + } else if (gender.equals("female")) { + engine.setVoice(ProTalkerBridge.VOICE_FEMALE); + } } /*
diff --git a/plugins/org.eclipse.actf.ai.tts.sapi/src/org/eclipse/actf/ai/tts/sapi/engine/SapiVoice.java b/plugins/org.eclipse.actf.ai.tts.sapi/src/org/eclipse/actf/ai/tts/sapi/engine/SapiVoice.java index e17e284..bd996bc 100644 --- a/plugins/org.eclipse.actf.ai.tts.sapi/src/org/eclipse/actf/ai/tts/sapi/engine/SapiVoice.java +++ b/plugins/org.eclipse.actf.ai.tts.sapi/src/org/eclipse/actf/ai/tts/sapi/engine/SapiVoice.java
@@ -366,6 +366,12 @@ * @see org.eclipse.actf.ai.tts.ITTSEngine#setGender(java.lang.String) */ public void setGender(String gender) { + //TODO + if(GENDER_MALE.equalsIgnoreCase(gender)){ + setVoiceName("name=Microsoft Mike"); + }else if(GENDER_FEMALE.equalsIgnoreCase(gender)){ + setVoiceName("name=Microsoft Mary"); + } } /*