AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <iostream>
#include <climits>
#include <opus/opus.h>
#include <AVSCommon/Utils/Endian.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include "SpeechEncoder/OpusEncoderContext.h"
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::speechencoder | |
Macros | |
#define | LX(event) alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event) |
Functions | |
static const std::string | alexaClientSDK::speechencoder::TAG ("OpusEncoderContext") |
String to identify log entries originating from this file. More... | |
uint16_t | alexaClientSDK::speechencoder::Reverse16 (uint16_t value) |
Variables | |
static constexpr char | alexaClientSDK::speechencoder::AVS_FORMAT [] = "OPUS" |
AVS OPUS format name. More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::SAMPLE_RATE = 16000 |
Audio sample rate: 16kHz. More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::BIT_RATE = 32000 |
OPUS bitrate: 32kbps CBR. More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::FRAME_LENGTH = 20 |
OPUS frame length: 20ms. More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::FRAME_SIZE = (SAMPLE_RATE / 1000) * FRAME_LENGTH |
PCM frame size. More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::PACKET_SIZE = ((BIT_RATE / CHAR_BIT) / 1000) * FRAME_LENGTH |
OPUS packet size (CBR) More... | |
static constexpr unsigned int | alexaClientSDK::speechencoder::MAX_PACKET_SIZE = PACKET_SIZE * 2 |
Maximum packet size. More... | |
#define LX | ( | event | ) | alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event) |
Create a LogEntry using this file's TAG and the specified event string.
The | event string for this LogEntry . |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0