AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::acsdkAudioInputStream::AudioInputStreamFactory Class Reference

#include <AudioInputStreamFactory.h>

Static Public Member Functions

static std::shared_ptr< alexaClientSDK::avsCommon::avs::AudioInputStreamcreateAudioInputStream (const std::shared_ptr< avsCommon::utils::AudioFormat > &audioFormat, const size_t wordSize, const size_t maxReaders, const std::chrono::seconds amountOfAudioDataInBuffer)
 

Detailed Description

This class produces an AudioInputStream.

Member Function Documentation

◆ createAudioInputStream()

static std::shared_ptr<alexaClientSDK::avsCommon::avs::AudioInputStream> alexaClientSDK::acsdkAudioInputStream::AudioInputStreamFactory::createAudioInputStream ( const std::shared_ptr< avsCommon::utils::AudioFormat > &  audioFormat,
const size_t  wordSize,
const size_t  maxReaders,
const std::chrono::seconds  amountOfAudioDataInBuffer 
)
static

Method to create a factory method for an AudioInputStream.

Parameters
audioFormatThe shared ptr to the AudioFormat of the stream
wordSizeThe size of each word within the stream.
maxReadersThe maximum number of readers of the stream.
amountOfAudioDataInBufferThe amount of audio data to keep in the ring buffer.
Returns
A std::function that returns a ::shared_ptr to a new instance of AudioInputStream.

The documentation for this class was generated from the following file:

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