Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC3
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.3 LTS
  • Linux Kernel 3.2.5
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Libraries

    Speech::Recognizer::SPX::Server 0.0801

    Download button

    No screenshots available
    Downloads: 336  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Huggins-Daines | More programs
    Perl Artistic License / FREE
    June 23rd, 2006, 14:38 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Speech::Recognizer::SPX::Server description

    Speech::Recognizer::SPX::Server is a Perl module for writing streaming audio speech recognition servers using Sphinx2.

    Speech::Recognizer::SPX::Server is a Perl module for writing streaming audio speech recognition servers using Sphinx2.

    SYNOPSIS

    my $sock = new IO::Socket(... blah blah blah ...);
    my $log = new IO::File('server.log');
    my $audio_fh = new IO::File('speech.raw');
    my $srvr
    = Speech::Recognizer::SPX::Server->init({ -arg => val, ... }, $sock, $log, $verbose)
    or die "couldn't initialize sphinx2: $!";

    my $client = new IO::Socket;
    while (accept $sock, $client) {
    next unless fork;
    $srvr->sock($client);
    $srvr->calibrate or die "couldn't calibrate audio stream: $!";
    while (!$done && defined(my $txt
    = $srvr->next_utterance(sub { print $log "listeningn" },
    sub { print $log "not listeningn },
    $audio_fh))) {
    print "recognized text is $txtn";
    ...
    }
    $srvr->fini or die "couldn't shut down server: $!";
    exit 0;
    }

    This module encapsulates a bunch of the stuff needed to write a Sphinx2 server which takes streaming audio as input on an arbitrary filehandle. It's not meant to be flexible or transparent - if you want that, then read the code and write your own server program using just the Speech::Recognizer::SPX module.

    The interface is vaguely object-oriented, but unfortunately it is presently not possible to create multiple instances of Speech::Recognizer::SPX::Server within the same process, due to severe limitations of the underlying Sphinx-II library. You can, however, create multiple distinct servers with judicious use of fork, as shown in the example above.

    It is possible that this will be fixed in a future release of Sphinx-II.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | SPX server | speech recognizer | speech | recognizer | SPX



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM