Audio::SPX 0.0801
Details
| Size: | 88K |
| Last Update: | 2008-04-22 21:57:19 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | David Huggins-Daines |
| Price: | $0.00 |
Description:
Audio::SPX 0.0801 is libraries software developed by David Huggins-Daines.
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, it's 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 isn't really very useful. I suggest either opening the audio device yourself, setting non-blocking mode (beware, some sound drivers don't 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 isn't enough documentation yet, partly because the API is somewhat in flux, and partly because I haven't figured out what some of this stuff does either.
Requirements:
Perl
Audio::SPX 0.0801 supports english interface languages and works with Linux.
Downloading Audio::SPX 0.0801 will take several seconds if you use fast ADSL connection.
0 comments
Add to
Audio::SPX 0.0801 Version History
Related Software
|
|
From category: Libraries |
| Clutter is an open source software library for creating fast, visually rich and animated graphical user interfaces.... |
|
|
From category: Libraries |
| Drome Engine 0.3.3 is libraries software developed by Josh Beam. Drome Engine is a 3D game engine that\'s written in C++ and uses OpenGL for graphics rendering. It\'s currently under constant devel... |
|
|
From category: Libraries |
| Crypt::UnixCrypt_XS 0.05 is libraries software developed by Boris Zentner. Crypt::UnixCrypt_XS is a perl xs interface for a portable traditional crypt function. SYNOPSIS use Crypt::... |
|
|
From category: Libraries |
| C++ base 1.0 is libraries software developed by Bjoern Lemke. C++ base is a base class suite contains several powerful c++ base classes for basic encapsulation of low level operating system calls a... |
|
|
From category: Quality-Assurance-and-Testing |
| calltree 2.3 is quality assurance and testing software developed by J?rg Schilling. The calltree command parses a collection of input files (assuming C syntax) and builds a graph that represen... |
|
|
From category: Quality-Assurance-and-Testing |
| CppUnit - C++ port of JUnit 1.12.0 is quality assurance and testing software developed by Baptiste Lepilleur. CppUnit is a C++ unit testing framework. CppUnit project started its life as a port of... |
|
|
From category: Version-Control |
| cvsd 1.0.13 is version control software developed by Arthur de Jong. cvsd is a wrapper program for cvs in pserver mode. cvsd is run as a daemon and is controlled through a configuration fil... |
|
|
From category: Libraries |
| Config::General 2.31 is libraries software developed by Thomas Linden. Config::General is a perl module opens a config file and parses it\'s contents for you. Config::General library provides v... |
|
|
From category: Libraries |
| App::Repository 0.964 is libraries software developed by Stephen Adkins. App::Repository is a logical data access layer for the App::Context Framework, providing a uniform API to access data in dat... |
|
|
From category: Libraries |
| class.Logger.php3 1.0 is libraries software developed by CDI. class.Logger.php3 is used to maintain persistant log files in PHP3 applications as efficiently as possible. Using Logger, your p... |
|
|
From category: Libraries |
| PHK is a PHP-oriented package system.... |
|
|
From category: Libraries |
| Calyxo Web Application Framework 0.9.0 is libraries software developed by Christoph Beck. Calyxo Web Application Framework encourages in MVC model 2 based web application development. It off... |
|
|
From category: Libraries |
| Festival::Client::Async 0.0303 is libraries software developed by David Huggins-Daines. Festival::Client::Async is a non-blocking interface to a Festival server. SYNOPSIS use Festiv... |
|
|
From category: Libraries |
| Embperl::IntroEmbperlObject 2.2.0 is libraries software developed by Neil Gunton. Embperl::IntroEmbperlObject is an introduction to EmbperlObject. This tutorial is intended as a complement t... |
Leave a comment