Speech::Festival::Synthesiser - Simple text-to-speech using festival.
use Speech::Speech::Festival::Synthesiser; $festival = new Speech::Festival::Synthesiser 'serverhost', 1314; start $festival; stop $festival; @voices = voice_list $festival; voice $festival "myvoice"; voice_description $festival; synth_description $festival; speak $festival $text;
Speech::Festival::Synthesiser provides a simple way to add speech to a perl application. It is a sub-class of Speech::Festival and so you can use any of the methods in that class to manipulate festival if necessary.
This package conform to the interface defined by Speech::Synthesiser and so provides a synthesiser for use throughthat interface.
Actual sound output is provided by an auiliary class, by default Audio::FileWave which runs an external program to play sound, but you can replace it with another class if you have a better way of playing sounds (eg a perl extension providing sound output), see the documentation for Audio::FileWave for the interface an alternative should provide should implement.
Create a new festival session which will connect to the given host and port. If ommitted these default to localhost and 1314.
Connect to festival and inistilise the session. Returns true if all is well, false otherwise. In the event of an error the variable $festival_error conatains a description of it.
Disconnect from festival. The connection may be reopened later with "start", but any state will have been lost.
Return a list of the voices available from this server.
Select a voice.
Returns the description of the current voice.
Synthesize the standard festival introductory text.
Speak the given text.
Richard Caley, R.Caley@ed.ac.uk