sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::SpeechSegment Struct Reference

One speech segment produced by the VAD wrapper. More...

#include <cxx-api.h>

Collaboration diagram for sherpa_onnx::cxx::SpeechSegment:

Public Attributes

int64_t start = 0
std::vector< float > samples

Detailed Description

Definition at line 1702 of file cxx-api.h.

Member Data Documentation

◆ samples

std::vector<float> sherpa_onnx::cxx::SpeechSegment::samples

Speech samples for the segment.

Definition at line 1709 of file cxx-api.h.

◆ start

int64_t sherpa_onnx::cxx::SpeechSegment::start = 0

Start sample index relative to the processed audio timeline.

It is an absolute position and keeps increasing during the lifetime of a detector, so it is 64-bit.

Definition at line 1707 of file cxx-api.h.


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