mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
NormalizedAudio Struct Reference

Normalized runtime audio payload. More...

#include <transcriptiontypes.h>

Public Member Functions

bool isValid () const
 Reports whether the normalized payload contains any samples.
 

Public Attributes

std::vector< float > samples
 Mono float32 samples ready for runtime ingestion.
 
int sampleRate = 16000
 Sample rate of the normalized audio. Kept at 16 kHz.
 
int channels = 1
 Channel count of the normalized audio. Kept at one channel.
 

Detailed Description

Normalized runtime audio payload.

Definition at line 136 of file transcriptiontypes.h.

Member Function Documentation

◆ isValid()

bool NormalizedAudio::isValid ( ) const
inline

Reports whether the normalized payload contains any samples.

Returns
true when at least one audio sample is present.

Definition at line 148 of file transcriptiontypes.h.

Member Data Documentation

◆ channels

int NormalizedAudio::channels = 1

Channel count of the normalized audio. Kept at one channel.

Definition at line 142 of file transcriptiontypes.h.

◆ sampleRate

int NormalizedAudio::sampleRate = 16000

Sample rate of the normalized audio. Kept at 16 kHz.

Definition at line 140 of file transcriptiontypes.h.

◆ samples

std::vector<float> NormalizedAudio::samples

Mono float32 samples ready for runtime ingestion.

Definition at line 138 of file transcriptiontypes.h.


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