soundgen
R package for sound synthesis and acoustic analysis.
Homepage with help, demos, etc: http://cogsci.se/soundgen.html
Source code on github: https://github.com/tatters/soundgen
Performs parametric synthesis of sounds with harmonic and noise components such as animal vocalizations or human voice. Also includes tools for spectral analysis, pitch tracking, audio segmentation, self-similarity matrices, morphing, etc.
Key functions:
- Sound synthesis from R console:
soundgen()
- Shiny app for sound synthesis (opens in a browser):
soungen_app()
- Acoustic analysis of a wav/mp3 file:
analyze()
- Measuring syllables, pauses, and bursts in a wav/mp3 file:
segment()
For more information, please see the vignettes on sound synthesis and acoustic analysis:
vignette("sound_generation", package="soundgen")
vignette("acoustic_analysis", package="soundgen")
Or, to open the vignettes in a browser:RShowDoc('sound_generation', package = 'soundgen')
RShowDoc('acoustic_analysis', package = 'soundgen')
Installation
To install the current release from CRAN: install.packages("soundgen")
NB: Make sure all dependencies have been installed correctly! For problems with seewave, see http://rug.mnhn.fr/seewave/
On Macs, you may need to do the following:
- First install brew according to the instructions here: https://brew.sh/
- Then run the following from the terminal
brew install libsndfile
brew install fftw
- Finally, install soundgen in R:
install.packages("soundgen")