trimWav | R Documentation |
Trim leading and trailing noise in a recording containing a single utterance
trimWav(
wave,
outfile = NULL,
begin = NULL,
end = NULL,
beginPad = 50,
endPad = 50
)
wave |
Required. Either a |
outfile |
If not |
begin |
Integer. The first sample in the |
end |
Integer. The last sample in the |
beginPad |
Integer. How many milliseconds of silence (zeros) should we add to the beginning of the of the detected speech signal? |
endPad |
Integer. How many milliseconds of silence (zeros) should we add to the end of the detected speech signal? |
A wav file (or tuneR::Wave object if outfile=NULL) trimmed from the original object denoted by argument wave
.
data("samp_wav")
head(samp_wav@left)
trimmed <- trimWav(samp_wav)
head(trimmed@left)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.