intonation: R package for the linguistic analysis of fundamental...

Description Details Note Author(s) References See Also Examples

Description

This package consists of the functions used in Albin (2015) for various tasks relating to speech fundamental frequency, including

  1. manipulating Pitch objects from the phonetics software Praat,

  2. visualizing F0 data in a way that retains rich information from the acoustic signal, and

  3. creating and plotting a schematic quantitative representation ('stylization') of an F0 track.

Details

Package: intonation
Type: Package
Version: 1.1
Date: 2016-07-12
License: GNU General Public License (Version 3 or later)
Imports: audio, PraatR

Note

This package has two dependencies: audio and PraatR. To install the latter, follow the steps under "Installation" on the PraatR homepage. (Note, however, that that only functions in this package relying on PraatR are ToPitch and F0RangeFinder.)

Author(s)

Aaron Albin (http://www.aaronalbin.com/)

References

Albin, A. (2015). Typologizing native language influence on intonation in a second language: Three transfer phenomena in Japanese EFL learners. (Doctoral dissertation). Indiana University, Bloomington. http://dx.doi.org/10.5967/K8JW8BSC

See Also

In addition to some sample data (HelloWorld), the package includes the following functions:

Spectrogram Create a spectrogram of an audio file
F0RangeFinder Cycle through each soundfile in a folder and determine F0 range for each
ToPitch Use Praat to generate a Pitch object
ReadPitch Read a Pitch object into R
RichVisualization Visualize the F0 data in a Pitch object
Stylize Create a 'stylization' (i.e., a schematic representation) of F0 an track
PlotStylization Draw a stylization on an open plot of an F0 track

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Create paths to the WAV file and Pitch object textfile included in the package
WavePath = paste(R.home("library"),"intonation","HelloWorld.wav",sep="/")
PitchPath = sub(WavePath,pattern=".wav",replacement=".Pitch",fixed=TRUE)

# Draw a spectrogram of the audio data in a soundfile
Spectrogram(WavePath)

## Not run: 
# Create a Pitch object from this soundfile
ToPitch( Input=WavePath, Output=PitchPath, Range=c(69,135) )
## End(Not run)

# Read this Pitch object into R
head( ReadPitch( PitchPath ) )

# Plot the F0 data contained therein as a 'rich visualization'
RichVisualization( PitchPath=PitchPath, WavePath=WavePath, 
                   Labels = c("hello","world"), Divisions_ms = c(132,648,1257) )

# Create a stylization of the F0 track
Stylization = Stylize( PitchPath, VertexIndices=c(211,489,1123) )

# Superimpose this stylization on the rich visualization
PlotStylization(Stylization)

usagi5886/intonation documentation built on Dec. 9, 2019, 3:46 a.m.