AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AudioEncoderTest |
class | MockEncoderContext |
Typedefs | |
using | Bytes = BlockAudioEncoderInterface::Bytes |
Functions | |
TEST_F (AudioEncoderTest, testTimer_startEncoding) | |
TEST_F (AudioEncoderTest, test_shutdownOnBlockingWrite) | |
TEST_F (AudioEncoderTest, test_stopAndStartEncoder) | |
Variables | |
static constexpr size_t | FRAME_WORDSIZE = 2 |
Word size per PCM frame = 2byte (16bit) More... | |
static constexpr size_t | NUM_AUDIO_WRITE = 100 |
Number of dummy frames that will be sent to encoder. More... | |
static constexpr size_t | 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 | 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 | 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 | PROCESSING_TIMEOUT = std::chrono::milliseconds(200) |
Short timeout (needs to be greater than SpeechEncoder's BLOCKING writer timeout). More... | |
static constexpr unsigned int | MAX_COMPRESSION_FACTOR = 10 |
The maximum factor of compression we expect to encounter. More... | |
static const AudioFormat | MOCK_ENCODER_FORMAT |
Output format for mock encoder. More... | |
alexaClientSDK::audioEncoder::test::TEST_F | ( | AudioEncoderTest | , |
testTimer_startEncoding | |||
) |
alexaClientSDK::audioEncoder::test::TEST_F | ( | AudioEncoderTest | , |
test_shutdownOnBlockingWrite | |||
) |
Test if encoding thread will exit if encoder output is not being consumed on exit.
alexaClientSDK::audioEncoder::test::TEST_F | ( | AudioEncoderTest | , |
test_stopAndStartEncoder | |||
) |
Test if encoding thread will exit and create again when stopEncoding() and startEncoding() is called in quick succession.
|
static |
Word size per PCM frame = 2byte (16bit)
|
static |
Number of words in input stream SDS buffer (must be large enough to fill encoder's output stream)
|
static |
The maximum factor of compression we expect to encounter.
|
static |
Output format for mock encoder.
|
static |
Input frame size for mock encoder. Will accept 2 frames. (2 * 2byte = 4)
|
static |
Output frame size for mock encoder. Will output 2 frames per encode. (2 * 2byte = 4)
|
static |
Number of dummy frames that will be sent to encoder.
|
static |
Short timeout (needs to be greater than SpeechEncoder's
BLOCKING writer timeout).
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0