public class LuteceWordToSound
extends com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
Constructor and Description |
---|
LuteceWordToSound(com.octo.captcha.component.sound.soundconfigurator.SoundConfigurator configurator,
int minAcceptedWordLength,
int maxAcceptedWordLength,
int minWhiteSoundNumber,
int maxWhiteSoundNumber,
LuteceBackgroundSoundMixerConfigurator mixerConfigurator,
SoundFilter... filters) |
Modifier and Type | Method and Description |
---|---|
protected AudioInputStream |
addEffects(AudioInputStream inputStream) |
int |
getMaxAcceptedWordLenght() |
int |
getMaxAcceptedWordLength() |
int |
getMinAcceptedWordLenght() |
int |
getMinAcceptedWordLength() |
AudioInputStream |
getSound(String word) |
AudioInputStream |
getSound(String word,
Locale locale) |
static float |
getSoundsSampleRate()
Static method to get used sounds sample rate
|
public LuteceWordToSound(com.octo.captcha.component.sound.soundconfigurator.SoundConfigurator configurator, int minAcceptedWordLength, int maxAcceptedWordLength, int minWhiteSoundNumber, int maxWhiteSoundNumber, LuteceBackgroundSoundMixerConfigurator mixerConfigurator, SoundFilter... filters)
configurator
- the configuratorminAcceptedWordLength
- the min Accepted Word LengthmaxAcceptedWordLength
- the max Accepted Word LengthminWhiteSoundNumber
- the min White Sound NumbermaxWhiteSoundNumber
- the max White Sound NumbermixerConfigurator
- the mixer Configuratorfilters
- the filterspublic AudioInputStream getSound(String word)
word
- the wordpublic AudioInputStream getSound(String word, Locale locale)
word
- the wordlocale
- the localepublic int getMaxAcceptedWordLenght()
getMaxAcceptedWordLenght
in interface com.octo.captcha.component.sound.wordtosound.WordToSound
getMaxAcceptedWordLenght
in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
public int getMaxAcceptedWordLength()
getMaxAcceptedWordLength
in interface com.octo.captcha.component.sound.wordtosound.WordToSound
getMaxAcceptedWordLength
in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
public int getMinAcceptedWordLenght()
getMinAcceptedWordLenght
in interface com.octo.captcha.component.sound.wordtosound.WordToSound
getMinAcceptedWordLenght
in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
public int getMinAcceptedWordLength()
getMinAcceptedWordLength
in interface com.octo.captcha.component.sound.wordtosound.WordToSound
getMinAcceptedWordLength
in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
protected AudioInputStream addEffects(AudioInputStream inputStream)
addEffects
in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSound
inputStream
- the input Streampublic static float getSoundsSampleRate()
Copyright © 2018 City of Paris. All rights reserved.