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

Decoded multi-channel WAVE file content. More...

#include <c-api.h>

Public Attributes

const float *const * samples
 
int32_t num_channels
 
int32_t num_samples
 
int32_t sample_rate
 

Detailed Description

Free this object with SherpaOnnxFreeMultiChannelWave().

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

Member Data Documentation

◆ num_channels

int32_t SherpaOnnxMultiChannelWave::num_channels

Number of channels.

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

◆ num_samples

int32_t SherpaOnnxMultiChannelWave::num_samples

Number of samples per channel.

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

◆ sample_rate

int32_t SherpaOnnxMultiChannelWave::sample_rate

Sample rate in Hz.

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

◆ samples

const float* const* SherpaOnnxMultiChannelWave::samples

samples[c] points to channel c samples normalized to [-1, 1]. Note: The sample data for all channels are stored in a single contiguous memory block, one channel after another.

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


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