Menu

#8 run time adjustment of engine is good.

open
nobody
None
5
2008-09-02
2008-09-02
Anonymous
No

here all the data member is static to take care of their single instances.

public void setVolume(float sV)
{
volumeRate=sV;
helloVoice.setVolume(volumeRate);
}

public void setSpeakingRate(float sR)
{
speakingRate=sR;
helloVoice.setRate(speakingRate);

}
public void setPitch(float sP)
{
pitchRate=sP;
helloVoice.setPitch(pitchRate);
}
public void setRange(float sR)
{
rangeRate=sR;
helloVoice.setRate(speakingRate);
}

private static VoiceManager voiceManager;
private static Voice helloVoice;
private static float volumeRate=10;
private static float speakingRate=150;
private static float rangeRate=12;
private static float pitchRate=100;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.