voiceSegment: voiceSegment This function takes the Wave object or the...

View source: R/voiceSegment.R

voiceSegmentR Documentation

voiceSegment This function takes the Wave object or the result of voiceActivity() and returns a data frame of the voice segment.

Description

voiceSegment This function takes the Wave object or the result of voiceActivity() and returns a data frame of the voice segment.

Usage

voiceSegment(x, unit = "frame", frameshift = 0.01, margin = 0)

Arguments

x

The input Wave object or vector of logical

unit

The unit of the result. "frame" (default) means the number of frames, and "time" means the duration time in second.

frameshift

The frame shift (in second). This parameter is used only when x is a Wave object.

margin

Margin to be added before and after a segment

Examples

## Not run: 
library(tuneR)
x <- readWave("speech.wav")
v <- voiceActivity(x)
seg <- voiceSegment(v)

## End(Not run)

akinori-ito/vadeR documentation built on Oct. 7, 2022, 2:37 p.m.