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.WordToSoundgetMaxAcceptedWordLenght in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSoundpublic int getMaxAcceptedWordLength()
getMaxAcceptedWordLength in interface com.octo.captcha.component.sound.wordtosound.WordToSoundgetMaxAcceptedWordLength in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSoundpublic int getMinAcceptedWordLenght()
getMinAcceptedWordLenght in interface com.octo.captcha.component.sound.wordtosound.WordToSoundgetMinAcceptedWordLenght in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSoundpublic int getMinAcceptedWordLength()
getMinAcceptedWordLength in interface com.octo.captcha.component.sound.wordtosound.WordToSoundgetMinAcceptedWordLength in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSoundprotected AudioInputStream addEffects(AudioInputStream inputStream)
addEffects in class com.octo.captcha.component.sound.wordtosound.AbstractWordToSoundinputStream - the input Streampublic static float getSoundsSampleRate()
Copyright © 2021 City of Paris. All rights reserved.