AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Functions | Variables
alexaClientSDK::speechencoder Namespace Reference

Namespaces

 test
 

Classes

class  EncoderContext
 
class  OpusEncoderContext
 
class  SpeechEncoder
 

Functions

static const std::string TAG ("OpusEncoderContext")
 String to identify log entries originating from this file. More...
 
uint16_t Reverse16 (uint16_t value)
 
static const std::string TAG ("SpeechEncoder")
 String to identify log entries originating from this file. More...
 

Variables

static constexpr char AVS_FORMAT [] = "OPUS"
 AVS OPUS format name. More...
 
static constexpr unsigned int SAMPLE_RATE = 16000
 Audio sample rate: 16kHz. More...
 
static constexpr unsigned int BIT_RATE = 32000
 OPUS bitrate: 32kbps CBR. More...
 
static constexpr unsigned int FRAME_LENGTH = 20
 OPUS frame length: 20ms. More...
 
static constexpr unsigned int FRAME_SIZE = (SAMPLE_RATE / 1000) * FRAME_LENGTH
 PCM frame size. More...
 
static constexpr unsigned int PACKET_SIZE = ((BIT_RATE / CHAR_BIT) / 1000) * FRAME_LENGTH
 OPUS packet size (CBR) More...
 
static constexpr unsigned int MAX_PACKET_SIZE = PACKET_SIZE * 2
 Maximum packet size. More...
 
static constexpr unsigned int MAX_READERS = 10
 The maximum number of readers of the output stream. More...
 
static constexpr unsigned int READ_TIMEOUT_MS = 10
 Reading timeout from input audio stream. More...
 
static const auto WRITE_TIMEOUT_MS = std::chrono::milliseconds(100)
 Timeout between write retrying. More...
 
static constexpr unsigned int MAX_OUTPUT_PACKETS = 20
 The maximum number of packets to be buffered to the output stream. More...
 

Function Documentation

◆ Reverse16()

uint16_t alexaClientSDK::speechencoder::Reverse16 ( uint16_t  value)
inline

◆ TAG() [1/2]

static const std::string alexaClientSDK::speechencoder::TAG ( "SpeechEncoder"  )
static

String to identify log entries originating from this file.

◆ TAG() [2/2]

static const std::string alexaClientSDK::speechencoder::TAG ( "OpusEncoderContext"  )
static

String to identify log entries originating from this file.

Variable Documentation

◆ AVS_FORMAT

constexpr char alexaClientSDK::speechencoder::AVS_FORMAT[] = "OPUS"
static

AVS OPUS format name.

◆ BIT_RATE

constexpr unsigned int alexaClientSDK::speechencoder::BIT_RATE = 32000
static

OPUS bitrate: 32kbps CBR.

◆ FRAME_LENGTH

constexpr unsigned int alexaClientSDK::speechencoder::FRAME_LENGTH = 20
static

OPUS frame length: 20ms.

◆ FRAME_SIZE

constexpr unsigned int alexaClientSDK::speechencoder::FRAME_SIZE = (SAMPLE_RATE / 1000) * FRAME_LENGTH
static

PCM frame size.

◆ MAX_OUTPUT_PACKETS

constexpr unsigned int alexaClientSDK::speechencoder::MAX_OUTPUT_PACKETS = 20
static

The maximum number of packets to be buffered to the output stream.

◆ MAX_PACKET_SIZE

constexpr unsigned int alexaClientSDK::speechencoder::MAX_PACKET_SIZE = PACKET_SIZE * 2
static

Maximum packet size.

◆ MAX_READERS

constexpr unsigned int alexaClientSDK::speechencoder::MAX_READERS = 10
static

The maximum number of readers of the output stream.

◆ PACKET_SIZE

constexpr unsigned int alexaClientSDK::speechencoder::PACKET_SIZE = ((BIT_RATE / CHAR_BIT) / 1000) * FRAME_LENGTH
static

OPUS packet size (CBR)

◆ READ_TIMEOUT_MS

constexpr unsigned int alexaClientSDK::speechencoder::READ_TIMEOUT_MS = 10
static

Reading timeout from input audio stream.

◆ SAMPLE_RATE

constexpr unsigned int alexaClientSDK::speechencoder::SAMPLE_RATE = 16000
static

Audio sample rate: 16kHz.

◆ WRITE_TIMEOUT_MS

const auto alexaClientSDK::speechencoder::WRITE_TIMEOUT_MS = std::chrono::milliseconds(100)
static

Timeout between write retrying.

AlexaClientSDK 1.25.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0