com.octo.captcha.component.sound.soundconfigurator
Class FreeTTSSoundConfigurator

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 float getPitch()
           
 float getRate()
           
 float getVolume()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 sound
location - Package containing the sound defined by name
volume - Between 0 and 1.0
pitch - Level of the sound (hetz), between 50 and 250, normal 100
rate - Words per minute, between 1 and 999, normal 150
Method Detail

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.