Created
September 1, 2018 12:56
-
-
Save erzk/e114baf74913108feb3c8906de0e1918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(soundgen) | |
# synthesize a sound 1 s long, with gradually increasing hissing noise | |
sound = soundgen(sylLen = 1000, | |
temperature = 0.001, | |
noiseAnchors = list( | |
time = c(0, 1300), | |
value = c(-120, 0)), | |
formantsNoise = list( | |
f1 = list( | |
freq = 5000, | |
width = 10000))) | |
# basic spectrogram | |
spectrogram(sound, samplingRate = 16000) | |
# there is a function with the same name in phonTools so you might want to | |
# be more verbose and call it using soundgenn:spectrogram() to avoid clashes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment