Description Details Source References Examples
The WAV file was created using the Flite English Synthesis Demo by selecting cmu_us_rms.flitevox
under "Choose voice", entering the text Hello, world!
, and hitting "Download!".
The Pitch object was created in Praat with the "To Pitch..." command with a time step of 1 millisecond (0.001 seconds) and a F0 range of 69-135 Hertz.
The TextGrid was also created in Praat and has one interval tier named "words".
The sole tier ("word") of the TextGrid contains the labels "<SIL>"
, "hello"
, "world"
, and "<SIL>"
. The boundaries occur at roughly 0.000, 0.132, 0.648, 1.257, and 1.355 seconds.
The synthesis used to create the WAV file was created by Flite using a demo built with GoFlite.
Black, Alan W., & Lenzo, Kevin A. (2001). Flite: a small fast run-time synthesis engine. In Proceedings from the 4th ISCA Tutorial and Research Workshop (ITRW) on Speech Synthesis (paper #204). Perthshire, Scotland: International Speech Communication Association (ISCA).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Create paths to all three files
WavePath = paste(R.home("library"),"intonation","HelloWorld.wav",sep="/")
PitchPath = sub(WavePath,pattern=".wav",replacement=".Pitch",fixed=TRUE)
TextGridPath = sub(WavePath,pattern=".wav",replacement=".TextGrid",fixed=TRUE)
# Read the WAV file into R using load.wave() (from the 'audio' package)
SoundObject = load.wave(WavePath)
# Read the Pitch object into R using ToPitch() (another function in this package)
Frames = ReadPitch( PitchPath )
head(ReadPitch) # Inspect the results
# Import the TextGrid (in unaltered form) with the base-R function 'readLines()'
readLines(TextGridPath)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.