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

Generated waveform returned by TTS APIs. More...

#include <c-api.h>

Public Attributes

const float * samples
int32_t n
int32_t sample_rate

Detailed Description

The returned structure owns samples. Free the whole object with SherpaOnnxDestroyOfflineTtsGeneratedAudio().

See also
SherpaOnnxOfflineTtsGenerateWithConfig, SherpaOnnxDestroyOfflineTtsGeneratedAudio

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

Member Data Documentation

◆ n

int32_t SherpaOnnxGeneratedAudio::n

Number of samples in samples.

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

◆ sample_rate

int32_t SherpaOnnxGeneratedAudio::sample_rate

Output sample rate.

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

◆ samples

const float* SherpaOnnxGeneratedAudio::samples

Generated mono samples in the range [-1, 1].

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


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