LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
Chromium OS 0.4.22.8
4,365
BackTrack 3.0 / 4.0
Pre-Final

3,633
Wine 1.0.1 / 1.1.33
2,857
VLC 1.0.3
2,826
Yahoo Messenger
1.0.4

2,420
Chrome OS 0.4.237
Beta

2,095
Ubuntu 9.10
2,095
Thunderbird PST
Import plugin 1.2

1,811
Adobe Flash Player
for Linux 10.0.32.18
/ 10.1 Beta

1,685
Fedora 12
1,643

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.3
  • Wine 1.0.1 / 1.1.33
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3....
  • Fedora 12
  • OpenOffice.org 3.1.1
  • Firestarter 1.0.3
  • The Gimp 2.6.7 / 2...
  • FileZilla 3.3.0.1
  • Transmission 1.76
  • Super Grub Disk 0....
  • Gufw 9.04.2
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11.2
  • Opera 10.10 Final
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Perl Modules

    eGuideDog::Festival 0.11

    Download button

    No screenshots available
    Downloads: 146  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Cameron Wong | More programs
    Perl Artistic License / FREE
    May 28th, 2008, 13:03 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    eGuideDog::Festival description

     

    eGuideDog::Festival is a Perl wrapper of common functions of Festival TTS.

    eGuideDog::Festival is a Perl wrapper of common functions of Festival TTS.

    SYNOPSIS

    use eGuideDog::Festival;

    $speaker = eGuideDog::Festival::new();
    $speaker->block_speak("hello world");


    METHODS

    new($host, $port)

    $host and $port are the Festival server host address and port number. A new server will be launched automaticly if these arguments are not specified. But you should make sure that Festival is installed on the system.
    speak($text)

    Speak text. This can be interrupted.
    block_speak($text)

    Speak text and wait until it finished.
    play($filename)

    Play wav file.
    output($text, $filename)

    Synthesize a wav file from text.
    stop()

    Stop speaking or playing. This will not affect block_speak method.
    close()

    Wait until all speech finished.
    is_playing()

    Return 1 for playing while 0 for not playing. I just check whether /dev/dsp is being used. So it doesn't work in all cases.
    voice_list()

    Return an array of voice list.
    set_voice($voice)

    Change the current voice. the value of $voice should exist in the returned array of voice list.
    duration_stretch($value)

    Return the current value of duration stretch if $value is omited. $value between 0 to 1 makes speech slower. $value larger than 1 makes speech faster. Of course, 1 is the normal speed.
    pitch($value)

    Return the current value of voice pitch if $value is omited. Otherwise, set it.
    range($value)

    Return the current value of voice range if $value if omited. Otherwise, set it.

    EXAMPLE

    use eGuideDog::Festival;

    $| = 1; # You cannot print message in time without this.

    $festival = eGuideDog::Festival::new();

    $festival->block_speak('You must wait until I finished this sentence.');
    $festival->speak('Thank you for your patience. You can intterupt me now.');
    sleep(1);
    $festival->stop() if ($festival->is_playing());

    # you can change some voice style, but I suggest saving there value first
    $festival->duration_stretch(1.5);
    $pitch = $festival->pitch();
    $festival->pitch(200);
    $range = $festival->range();
    $festival->range(200);
    $festival->speak('hello world');

    # this is the original voice style
    $festival->duration_stretch(1);
    $festival->pitch($pitch);
    $festival->range($range);
    $festival->speak('hello world');

    $festival->close(); # without this call, festival will die immediately without finishing the words.

    Requirements:

    · Perl

      


    TAGS:

    Festival TTS | Festival wrapper | Perl module | eGuideDog | Festival | TTS



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM