com.octo.captcha.component.sound.wordtosound
Class AbstractWordToSound
java.lang.Object
com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
- All Implemented Interfaces:
- WordToSound
- Direct Known Subclasses:
- FreeTTSWordToSound
public abstract class AbstractWordToSound
- extends java.lang.Object
- implements WordToSound
WordToSound abstract implementation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxAcceptedWordLength
protected int maxAcceptedWordLength
minAcceptedWordLength
protected int minAcceptedWordLength
configurator
protected SoundConfigurator configurator
AbstractWordToSound
public AbstractWordToSound(SoundConfigurator configurator,
int minAcceptedWordLength,
int maxAcceptedWordLength)
- Constructor with a configurator
- Parameters:
configurator
- the configuration for this particular voiceminAcceptedWordLength
- Length Minimal of generated wordsmaxAcceptedWordLength
- Length Maximal of generated words
getMaxAcceptedWordLength
public int getMaxAcceptedWordLength()
- Specified by:
getMaxAcceptedWordLength
in interface WordToSound
- Returns:
- the max word length accepted by this word2image service
getMinAcceptedWordLength
public int getMinAcceptedWordLength()
- Specified by:
getMinAcceptedWordLength
in interface WordToSound
- Returns:
- the min word length accepted by this word2image service
getMaxAcceptedWordLenght
public int getMaxAcceptedWordLenght()
- Specified by:
getMaxAcceptedWordLenght
in interface WordToSound
- Returns:
- the max word lenght accepted by this word2image service
getMinAcceptedWordLenght
public int getMinAcceptedWordLenght()
- Specified by:
getMinAcceptedWordLenght
in interface WordToSound
- Returns:
- the min word lenght accepted by this word2image service
addEffects
protected abstract javax.sound.sampled.AudioInputStream addEffects(javax.sound.sampled.AudioInputStream sound)
- Add effect to the sound
- Parameters:
sound
- The sound to modify
- Returns:
- The modified sound.
Copyright 2003-2009 JCaptcha. All Rights Reserved.