Skip to content

Struct Tryll::AudioFormat

ClassList > Tryll > AudioFormat

More...

  • #include <VoiceInput.h>

Public Attributes

Type Name
std::uint16_t bitsPerSample = 16
Only 16-bit PCM is supported.
std::uint16_t channels = 1
Channel count (mic capture is typically 1).
std::uint32_t sampleRate = 16000
Sample rate in Hz (e.g. 48000 for mic capture).

Detailed Description

Declares the audio format of samples the client will push via SendAudioBuffer. The server resamples to 16 kHz mono int16 as needed.

Public Attributes Documentation

variable bitsPerSample

Only 16-bit PCM is supported.

std::uint16_t Tryll::AudioFormat::bitsPerSample;


variable channels

Channel count (mic capture is typically 1).

std::uint16_t Tryll::AudioFormat::channels;


variable sampleRate

Sample rate in Hz (e.g. 48000 for mic capture).

std::uint32_t Tryll::AudioFormat::sampleRate;



The documentation for this class was generated from the following file C:/_tryll/_monorepo2/server/client-cpp/include/tryll/VoiceInput.h