View source: R/voiceActivity.R
voiceActivity | R Documentation |
voiceActivity This function takes the Wave object and returns an array of the voice activity.
voiceActivity(x, simple = TRUE, minlen = 50, maxlen = 1000, nclust = 4, frameshift = 0.01)
x |
The input Wave object or a matrix obtained by melfcc() |
minlen |
Minimum duration of segment (number of frames) |
maxlen |
Maximum duration of segment (number of frames) |
nclust |
Number of clusters, one of which should be silent |
frameshift |
The frame shift (sec), 10ms by default |
A vector of logical with length of number of frames. If the frame is the voice frame, the content of the vector is TRUE, otherwise FALSE.
## Not run: library(tuneR) x <- readWave("speech.wav") act <- voiceActivity(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.