Vizsn is another free, but primitive speech synthesizer.
This audio source is a bit of a work in progress.
The words to be spoken are set with setText(). Calling this while the audio source is in use may cause undefined behavior.
// Speak the truth gTalk.setText("You probably won't understand what I'm saying");
Adjusting the looping of a monotone sound does not currently have any effect. All music is set to loop by default.
As with any other audio source, you can attach filters to monotone audio sources.
You can stop all instances of a monotone sound source with stop(). This is equivalent of calling soloud.stopAudioSource() with the sound source.
// Shut up. gTalk.stop();
Set the inaudible behavior of the sound. By default, if a sound is inaudible, it's paused, and will resume when it becomes audible again. With this function you can tell SoLoud to either kill the sound if it becomes inaudible, or to keep ticking the sound even if it's inaudible.
// Keep on talking even if I'm not around gTalk.setInaudibleBehavior(true, false);
Set the default volume of the instances created from this audio source.
If looping is enabled, the loop point is, by default, the start of the stream. The loop point can be changed, and current loop point can be queried with these functions.
double t = snd.getLoopPoint(); snd.setLoopPoint(t + 1); // skip 1 second more when looping ... snd.setLoopPoint(0); // loop from start
Inherited 3d audio interfaces
Like all other audio sources, monotone inherits the 3d audio interfaces. Please refer to the 3d audio chapter for details on:
Copyright©2013-2020 Jari Komppa