AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <chrono>
#include <thread>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <acsdk/AudioEncoder/AudioEncoderFactory.h>
#include <AVSCommon/AVS/AudioInputStream.h>
#include <AVSCommon/Utils/AudioFormat.h>
#include <AVSCommon/Utils/Logger/Logger.h>
Classes | |
class | alexaClientSDK::audioEncoder::test::MockEncoderContext |
class | alexaClientSDK::audioEncoder::test::AudioEncoderTest |
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::audioEncoder | |
alexaClientSDK::audioEncoder::test | |
Macros | |
#define | LX(event) alexaClientSDK::avsCommon::utils::logger::LogEntry("AudioEncoderTest", event) |
Typedefs | |
using | alexaClientSDK::audioEncoder::test::Bytes = BlockAudioEncoderInterface::Bytes |
Functions | |
alexaClientSDK::audioEncoder::test::TEST_F (AudioEncoderTest, testTimer_startEncoding) | |
alexaClientSDK::audioEncoder::test::TEST_F (AudioEncoderTest, test_shutdownOnBlockingWrite) | |
alexaClientSDK::audioEncoder::test::TEST_F (AudioEncoderTest, test_stopAndStartEncoder) | |
Variables | |
static constexpr size_t | alexaClientSDK::audioEncoder::test::FRAME_WORDSIZE = 2 |
Word size per PCM frame = 2byte (16bit) More... | |
static constexpr size_t | alexaClientSDK::audioEncoder::test::NUM_AUDIO_WRITE = 100 |
Number of dummy frames that will be sent to encoder. More... | |
static constexpr size_t | alexaClientSDK::audioEncoder::test::MOCK_ENCODER_INPUT_FRAME_SIZE_WORDS = 2 |
Input frame size for mock encoder. Will accept 2 frames. (2 * 2byte = 4) More... | |
static constexpr size_t | alexaClientSDK::audioEncoder::test::MOCK_ENCODER_OUTPUT_FRAME_SIZE_BYTES = 4 |
Output frame size for mock encoder. Will output 2 frames per encode. (2 * 2byte = 4) More... | |
static constexpr size_t | alexaClientSDK::audioEncoder::test::INPUT_WORD_COUNT = 4096 |
Number of words in input stream SDS buffer (must be large enough to fill encoder's output stream) More... | |
static auto | alexaClientSDK::audioEncoder::test::PROCESSING_TIMEOUT = std::chrono::milliseconds(200) |
Short timeout (needs to be greater than SpeechEncoder's BLOCKING writer timeout). More... | |
static constexpr unsigned int | alexaClientSDK::audioEncoder::test::MAX_COMPRESSION_FACTOR = 10 |
The maximum factor of compression we expect to encounter. More... | |
static const AudioFormat | alexaClientSDK::audioEncoder::test::MOCK_ENCODER_FORMAT |
Output format for mock encoder. More... | |
#define LX | ( | event | ) | alexaClientSDK::avsCommon::utils::logger::LogEntry("AudioEncoderTest", event) |
Create a LogEntry using this file's TAG and the specified event string.
event | The event string for this LogEntry . |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0