com.octo.captcha.component.sound.soundconfigurator
Class FreeTTSSoundConfigurator
java.lang.Object
com.octo.captcha.component.sound.soundconfigurator.FreeTTSSoundConfigurator
- All Implemented Interfaces:
- SoundConfigurator
public class FreeTTSSoundConfigurator
- extends java.lang.Object
- implements SoundConfigurator
Implmenentation for a FreeTTS configuration
Constructor Summary |
FreeTTSSoundConfigurator(java.lang.String name,
java.lang.String location,
float volume,
float pitch,
float rate)
Contructor for a FreeTTS configuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreeTTSSoundConfigurator
public FreeTTSSoundConfigurator(java.lang.String name,
java.lang.String location,
float volume,
float pitch,
float rate)
- Contructor for a FreeTTS configuration
- Parameters:
name
- Name of the soundlocation
- Package containing the sound defined by namevolume
- Between 0 and 1.0pitch
- Level of the sound (hetz), between 50 and 250, normal 100rate
- Words per minute, between 1 and 999, normal 150
getVolume
public float getVolume()
- Specified by:
getVolume
in interface SoundConfigurator
- Returns:
- the sound volume
- See Also:
SoundConfigurator.getVolume()
getPitch
public float getPitch()
- Specified by:
getPitch
in interface SoundConfigurator
- Returns:
- the sound level (hight or deep), pitch
- See Also:
SoundConfigurator.getPitch()
getName
public java.lang.String getName()
- Specified by:
getName
in interface SoundConfigurator
- Returns:
- the sound name
- See Also:
SoundConfigurator.getName()
getRate
public float getRate()
- Specified by:
getRate
in interface SoundConfigurator
- Returns:
- the sound speed rate
- See Also:
SoundConfigurator.getRate()
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface SoundConfigurator
- Returns:
- the location of the sound (package, jar, etc...)
- See Also:
SoundConfigurator.getLocation()
Copyright 2003-2009 JCaptcha. All Rights Reserved.