Audio::SPX 0.0801
Sponsored Links
Audio::SPX 0.0801 Ranking & Summary
File size:
0.089 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1223
Date added:
2006-06-21
Publisher:
David Huggins-Daines
Audio::SPX 0.0801 description
Audio::SPX is a Perl interface to the Sphinx-II audio library.
SYNOPSIS
use Audio::SPX;
my $ad = Audio::SPX->open_sps(16000);
$ad->start_rec or die "start_rec failed";
$ad->stop_rec or die "stop_rec failed";
my $samples = $ad->read($buf, $max);
my $cad = Audio::SPX::Continuous->init($ad);
my $cad = Audio::SPX::Continuous->init_nbfh($fh, $sps);
my $cad = Audio::SPX::Continuous->init_raw($fh, $sps);
$cad->calib;
$cad->calib_loop($buf);
$cad->set_thresh($sil, $sp);
$cad->set_params($delta_sil, $delta_speech, $min_noise,
$max_noise, $winsize, $speech_onset,
$sil_onset, $leader, $trailer);
my ($delta_sil, $delta_speech, $min_noise, $max_noise,
$winsize, $speech_onset, $sil_onset, $leader, $trailer)
= $cad->get_params;
# If init_raw was used, this will consume the data in $buf, then
# write back any non-slience data. Yes, this feature is
# undocumented in the Sphinx-II headers. Yes, its very useful.
my $samples = $cad->read($buf, $max);
$cad->reset;
$cad->detach;
$cad->attach($ad);
$cad->read_ts;
$cad->set_logfp(*FH);
Warning! This interface is suboptimal and is therefore probably going to change, both in the Perl module and the underlying library.
BUGS
The only supported sample rate for Audio::SPX is 16kHz (Audio::SPX::Continuous should be fine with others). init_sps() will simply fail rudely if you try something else... which means it isnt really very useful. I suggest either opening the audio device yourself, setting non-blocking mode (beware, some sound drivers dont like this...) and passing it to the init_nbfh method in Audio::SPX::Continuous, or using init_raw and managing the audio device yourself.
There isnt enough documentation yet, partly because the API is somewhat in flux, and partly because I havent figured out what some of this stuff does either.
SYNOPSIS
use Audio::SPX;
my $ad = Audio::SPX->open_sps(16000);
$ad->start_rec or die "start_rec failed";
$ad->stop_rec or die "stop_rec failed";
my $samples = $ad->read($buf, $max);
my $cad = Audio::SPX::Continuous->init($ad);
my $cad = Audio::SPX::Continuous->init_nbfh($fh, $sps);
my $cad = Audio::SPX::Continuous->init_raw($fh, $sps);
$cad->calib;
$cad->calib_loop($buf);
$cad->set_thresh($sil, $sp);
$cad->set_params($delta_sil, $delta_speech, $min_noise,
$max_noise, $winsize, $speech_onset,
$sil_onset, $leader, $trailer);
my ($delta_sil, $delta_speech, $min_noise, $max_noise,
$winsize, $speech_onset, $sil_onset, $leader, $trailer)
= $cad->get_params;
# If init_raw was used, this will consume the data in $buf, then
# write back any non-slience data. Yes, this feature is
# undocumented in the Sphinx-II headers. Yes, its very useful.
my $samples = $cad->read($buf, $max);
$cad->reset;
$cad->detach;
$cad->attach($ad);
$cad->read_ts;
$cad->set_logfp(*FH);
Warning! This interface is suboptimal and is therefore probably going to change, both in the Perl module and the underlying library.
BUGS
The only supported sample rate for Audio::SPX is 16kHz (Audio::SPX::Continuous should be fine with others). init_sps() will simply fail rudely if you try something else... which means it isnt really very useful. I suggest either opening the audio device yourself, setting non-blocking mode (beware, some sound drivers dont like this...) and passing it to the init_nbfh method in Audio::SPX::Continuous, or using init_raw and managing the audio device yourself.
There isnt enough documentation yet, partly because the API is somewhat in flux, and partly because I havent figured out what some of this stuff does either.
Audio::SPX 0.0801 Screenshot
Audio::SPX 0.0801 Keywords
SPX
II
SPX 0.0801
Perl Interface
interface to
audio library
INIT
audio
SIL
library
interface
Perl
Audio::SPX
AudioSPX
Audio::SPX 0.0801
Libraries
Bookmark Audio::SPX 0.0801
Audio::SPX 0.0801 Copyright
WareSeeker periodically updates pricing and software information of Audio::SPX 0.0801 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Audio::SPX 0.0801 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
touch interface
perl interface wow
perl interfaces
audio library books
mysql perl interface
audio drivers
dharma initiative
online audio library
perl interface to system calls
perl interface class
audi
initiative
audio library organizer
perl interface world of warcraft
audio advisor
initial d movie
william branham audio library
audio books
Related Software
Audio::OSS is a pure-perl interface to OSS (open sound system) audio devices. Free Download
Audio::DSP is a Perl interface to *NIX digital audio device. Free Download
Audio::MFCC is a Perl module for computing mel-frequency cepstral coefficients. Free Download
Audio::CD is a Perl interface to libcdaudio (cd + cddb). Free Download
Audio::Scrobbler is a Perl interface to audioscrobbler.com/last.fm. Free Download
Audio::RaveMP is a Perl interface to Sensory Science RaveMP player. Free Download
Net::AudioScrobbler is a Perl module that provides an interface to AudioScrobbler. Free Download
Audio::Mad is a Perl interface to the mad MPEG decoder library. Free Download
Latest Software
Popular Software
Favourite Software