Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SegmentFunc ¶
SegmentFunc is a callback function which is called when a segment is ready to be processed. The first argument is the timestamp of the segment.
type Segmenter ¶
type Segmenter struct {
// contains filtered or unexported fields
}
func New ¶
Create a new segmenter for "NumSamples" with a reader r If NumSamples is zero then no segmenting is performed
func (*Segmenter) Decode ¶
func (s *Segmenter) Decode(ctx context.Context, fn SegmentFunc) error
TODO: segments are output through a callback, with the samples and a timestamp TODO: we could do some basic silence and voice detection to segment to ensure we don't overtax the CPU/GPU with silence and non-speech
Click to show internal directories.
Click to hide internal directories.