08 Oct 1999 17:47:28 UTC
- Distribution: speech_pm
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (0 / 333 / 0)
- KwaliteeBus factor: 0
- License: unknown
- Download (11.37KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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.
- $festival = new Speech::Festival::Synthesiser -host => 'serverhost', -port => 1314, ...
Create a new festival session which will connect to the given host and port. If ommitted these default to localhost and 1314.
- start $festival;
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.
- stop $festival;
Disconnect from festival. The connection may be reopened later with "start", but any state will have been lost.
- @voices = voice_list $festival;
Return a list of the voices available from this server.
- voice $festival "myvoice";
Select a voice.
- voice_description $festival;
Returns the description of the current voice.
- synth_description $festival;
Synthesize the standard festival introductory text.
- speak $festival $text;
Speak the given text.
Richard Caley, R.Caley@ed.ac.uk
Module Install Instructions
To install Audio::FileWave, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Audio::FileWave
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|