sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxSpeechSegment Struct Reference

One detected speech segment returned by the VAD. More...

#include <c-api.h>

Public Attributes

int32_t start
 
float * samples
 
int32_t n
 

Detailed Description

The segment owns samples. Free the whole object with SherpaOnnxDestroySpeechSegment().

Definition at line 2044 of file c-api.h.

Member Data Documentation

◆ n

int32_t SherpaOnnxSpeechSegment::n

Number of samples in samples.

Definition at line 2050 of file c-api.h.

◆ samples

float* SherpaOnnxSpeechSegment::samples

Newly allocated mono samples for this segment.

Definition at line 2048 of file c-api.h.

◆ start

int32_t SherpaOnnxSpeechSegment::start

Start index, in input samples, of this segment.

Definition at line 2046 of file c-api.h.


The documentation for this struct was generated from the following file: