wrassp
is a wrapper for R around Michel Scheffers’s libassp (Advanced Speech Signal Processor). The libassp library aims at providing functionality for handling speech signal files in most common audio formats and for performing analyses common in phonetic science/speech science. This includes the calculation of formants, fundamental frequency, root mean square, auto correlation, a variety of spectral analyses, zero crossing rate, filtering etc. This wrapper provides R with a large subset of libassp’s signal processing functions and provides them to the user in a (hopefully) user-friendly manner.
This package is part of the next iteration of the EMU Speech Database Management System which aims to be as close to an all-in-one solution for generating, manipulating, querying, analyzing and managing speech databases as possible. For an overview of the system please visit this URL: https://ips-lmu.github.io/EMU.html.
wrassp
are written in C
make sure your system fulfills the requirements for package development (see here)):path2wav <- list.files(system.file("extdata", package = "wrassp"), pattern = glob2rx("*.wav"), full.names = TRUE)[1]
An introduction to the wraspp package
vignette:acfana()
: Analysis of short-term autocorrelation functionafdiff()
: Computes the first difference of the signalaffilter()
: Filters the audio signal (see docs for types)cepstrum()
: Short-term cepstral analysiscssSpectrum()
: Cepstral smoothed version of dftSpectrum()
dftSpectrum()
: Short-term DFT spectral analysisforest()
: Formant estimationksvF0()
: F0 analysis of the signallpsSpectrum()
: Linear Predictive smoothed version of dftSpectrum()
mhsF0()
: Pitch analysis of the speech signal using Michel’s/Modified Harmonic Sieve algorithmrfcana()
: Linear Prediction analysisrmsana()
: Analysis of short-term Root Mean Square amplitudezcrana()
: Analysis of the averages of the short-term positive and negative zero-crossing rates(see the respective R documentation for more details on all of these functions)
read.AsspDataObj()
: read an existing SSFF file into a AsspDataObj
which is its in-memory equivalent.write.AsspDataObj()
: write a AsspDataObj
out to a SSFF file.docker pull rocker/r-devel
docker images
docker run rocker/r-devel:latest R --version
docker run --rm -ti -v $(pwd):/wrassp rocker/r-devel:latest bash
RD CMD build --resave-data --no-manual --no-build-vignettes wrassp
RD -e 'install.packages(c("stringi","evaluate","compare", "rmarkdown", "knitr", "testthat"))'
RD CMD check --as-cran wrassp_*.tar.gz
git clone https://github.com/joshuaulrich/rchk-docker.git
cd rchk-docker
docker build .
README.md
: https://github.com/kalibera/rchk./bin/R CMD build --resave-data --no-manual --no-build-vignettes /wrassp
echo 'install.packages("wrassp_0.1.5.tar.gz",repos=NULL)' | ./bin/R --slave
/opt/rchk/scripts/check_package.sh wrassp
less packages/lib/wrassp/libs/wrassp.so.bcheck
and less packages/lib/wrassp/libs/wrassp.so.maacheck
Raphael Winkelmann
Lasse Bombien
Affiliations