AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AudioInputStreamFactory.h>
Static Public Member Functions | |
static std::shared_ptr< alexaClientSDK::avsCommon::avs::AudioInputStream > | createAudioInputStream (const std::shared_ptr< avsCommon::utils::AudioFormat > &audioFormat, const size_t wordSize, const size_t maxReaders, const std::chrono::seconds amountOfAudioDataInBuffer) |
This class produces an AudioInputStream
.
|
static |
Method to create a factory method for an AudioInputStream
.
audioFormat | The shared ptr to the AudioFormat of the stream |
wordSize | The size of each word within the stream. |
maxReaders | The maximum number of readers of the stream. |
amountOfAudioDataInBuffer | The amount of audio data to keep in the ring buffer. |
std::function
that returns a ::shared_ptr to a new instance of AudioInputStream
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0