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

Mono PCM waveform used by the helper I/O functions. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::Wave:

Public Attributes

std::vector< float > samples
 
int32_t sample_rate = 0
 

Detailed Description

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

Member Data Documentation

◆ sample_rate

int32_t sherpa_onnx::cxx::Wave::sample_rate = 0

Sample rate in Hz.

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

◆ samples

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

Samples normalized to [-1, 1].

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


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