clipCheck | R Documentation |
Check a recording for clipping
clipCheck(
wave,
return = c("df", "logical", "proportion"),
threshold = 32112.64,
max_clipped = 0.01
)
wave |
Required. Either a |
return |
Either "df", "logical", or "proportion". Should the function return a dataframe containing a list of clipped frames, a logical value indicating whether more samples than the amount indicated by |
threshold |
The amplitude threshold above which samples should be considered clipped. Defaults to 32112.64 (maximum for 16-bit PCM). |
max_clipped |
The proportion of samples we can allow to be clipped and still return |
A data.frame containing a list of clipped samples or a logical value indicating whether more samples than the amount indicated by max_clipped
were clipped
data("samp_wav")
fs <- findSpeech(samp_wav)
#find the beginning of the utterance in seconds
#(to compare with manual measurements in Praat, for example).
fs$begin_s/samp_wav@samp.rate
#now the end...
fs$end_s/samp_wav@samp.rate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.