Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Speech::Recognizer::SPX::Server 0.0801

    Download button

    No screenshots available
    Downloads: 406  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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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