SDK Version 2.0.1
AnsuR Technologies ASMIRA SDK
Loading...
Searching...
No Matches
asdk::audio_options_t Struct Reference

Audio encoder settings, see sdk_t::SetAudioOptions and sdk_t::AudioOptions. More...

#include <asmirasdk.h>

Public Attributes

AudioCodec codec
 Encoder used by SendAudioFrame.
int32_t bitrate
 Encoder target bitrate (bit/s).
int32_t complexity
 Encoder complexity, 0 - 10 where 10 is the highest.
int32_t txQueueFrames
 Encoded frames accumulated into one packet, 1 - 40 where one frame is 20 msec.
bool prioritizeSpeech
 Tune the encoder for speech rather than general audio.

Detailed Description

Audio encoder settings, see sdk_t::SetAudioOptions and sdk_t::AudioOptions.

Examples
example_complete.cpp.

Definition at line 549 of file asmirasdk.h.

Member Data Documentation

◆ codec

AudioCodec asdk::audio_options_t::codec

Encoder used by SendAudioFrame.

AudioCodecUndef when no encoder is available.

Examples
example_complete.cpp.

Definition at line 550 of file asmirasdk.h.

◆ bitrate

int32_t asdk::audio_options_t::bitrate

Encoder target bitrate (bit/s).

ASMIRA uses 6000 (low) to 16000 (very high), values outside 6000 - 64000 are clamped.

Examples
example_complete.cpp.

Definition at line 551 of file asmirasdk.h.

◆ complexity

int32_t asdk::audio_options_t::complexity

Encoder complexity, 0 - 10 where 10 is the highest.

Opus only.

Definition at line 552 of file asmirasdk.h.

◆ txQueueFrames

int32_t asdk::audio_options_t::txQueueFrames

Encoded frames accumulated into one packet, 1 - 40 where one frame is 20 msec.

Higher values trade latency for less packet overhead.

Definition at line 553 of file asmirasdk.h.

◆ prioritizeSpeech

bool asdk::audio_options_t::prioritizeSpeech

Tune the encoder for speech rather than general audio.

Opus only.

Definition at line 554 of file asmirasdk.h.


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