|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.component.sound.wordtosound.AbstractFreeTTSWordToSound
public abstract class AbstractFreeTTSWordToSound
WordToSound implementation with FreeTTS an openSource Text To Speech implementation.
| Field Summary | |
|---|---|
static java.lang.String |
defaultVoiceName
|
static java.lang.String |
defaultVoicePackage
|
| Constructor Summary | |
|---|---|
AbstractFreeTTSWordToSound()
Deprecated. |
|
AbstractFreeTTSWordToSound(SoundConfigurator configurator,
int minAcceptedWordLength,
int maxAcceptedWordLength)
Constructor for a FreeTTS implmentation of WordToSound. |
|
| Method Summary | |
|---|---|
protected abstract javax.sound.sampled.AudioInputStream |
addEffects(javax.sound.sampled.AudioInputStream sound)
|
int |
getMaxAcceptedWordLenght()
Deprecated. misspelled, use getMaxAcceptedWordLength() instead |
int |
getMaxAcceptedWordLength()
|
int |
getMinAcceptedWordLenght()
Deprecated. misspelled, use getMinAcceptedWordLength() instead |
int |
getMinAcceptedWordLength()
|
javax.sound.sampled.AudioInputStream |
getSound(java.lang.String word)
Main method for this service Return a sound with the specified word |
javax.sound.sampled.AudioInputStream |
getSound(java.lang.String word,
java.util.Locale locale)
Main method for this service Return a sound with the specified word and Locale, depending on the local a sound is not the same. |
javax.sound.sampled.AudioInputStream |
stringToSound(java.lang.String sentence)
Main method for this service Return an image with the specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String defaultVoiceName
public static java.lang.String defaultVoicePackage
| Constructor Detail |
|---|
public AbstractFreeTTSWordToSound()
public AbstractFreeTTSWordToSound(SoundConfigurator configurator,
int minAcceptedWordLength,
int maxAcceptedWordLength)
configurator - Voice configurationminAcceptedWordLength - Length Minimal of generated wordsmaxAcceptedWordLength - Length Maximal of generated words| Method Detail |
|---|
public javax.sound.sampled.AudioInputStream getSound(java.lang.String word)
throws CaptchaException
WordToSound
getSound in interface WordToSoundword - The word to tranform into sound
CaptchaException - if word is invalid or an exception occurs during the sound generationWordToSound.getSound(java.lang.String)
public javax.sound.sampled.AudioInputStream getSound(java.lang.String word,
java.util.Locale locale)
throws CaptchaException
WordToSound
getSound in interface WordToSoundword - The word to tranform into soundlocale - Locale for the sound
CaptchaException - if word is invalid or an exception occurs during the sound generationWordToSound.getSound(String, java.util.Locale)public int getMaxAcceptedWordLength()
getMaxAcceptedWordLength in interface WordToSoundpublic int getMinAcceptedWordLength()
getMinAcceptedWordLength in interface WordToSoundpublic int getMaxAcceptedWordLenght()
getMaxAcceptedWordLength() instead
getMaxAcceptedWordLenght in interface WordToSoundpublic int getMinAcceptedWordLenght()
getMinAcceptedWordLength() instead
getMinAcceptedWordLenght in interface WordToSoundprotected abstract javax.sound.sampled.AudioInputStream addEffects(javax.sound.sampled.AudioInputStream sound)
public javax.sound.sampled.AudioInputStream stringToSound(java.lang.String sentence)
throws CaptchaException
sentence - Written sentece to transform into speech
CaptchaException - if word is invalid or an exception occurs during the sound generation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||