I've been using the following class for FreeTTS, and I can't figure out how to set the speaking rate:
Code:
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
import com.sun.speech.freetts.audio.JavaClipAudioPlayer;
import com.sun.speech.engine.BaseEngineProperties.*;


public class Speaker {
  String voiceName = "kevin16";
  VoiceManager voiceManager;
  Voice voice; 
    
  public Speaker(String name){ //constructor
    voiceName = name;     
    this.setup(); 
  }

  void setup() { //initialize voice, set pitch and style. setSpeakingRate should go here
    System.out.println();
	 

    voiceManager = VoiceManager.getInstance();
    voice = voiceManager.getVoice(voiceName);
	 
	 if (voice == null) {
	System.err.println(
	"Cannot find a voice named "
	  + voiceName + ".  Please specify a different voice.");
	System.exit(1);
    }		

    voice.setPitch((float)(57));
    voice.setPitchShift((float)(2.5));
    voice.setPitchRange((float)(5)); //mutace
    voice.setStyle("casual");  //"business", "casual", "robotic", "breathy"
    voice.allocate();
  }

  void speak(String _a){     

    if(_a==null){
	_a= "nothing"; 
    }
    voice.speak(_a);

  }

  void exit(){
    voice.deallocate();  
  }
}
I've tried voice.setSpeakingRate(100.0f), but the compiler says that it's not a valid method. Does anyone know what I'm doing wrong here? Thanks.