AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AudioInputStreamComponent.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License").
6  * You may not use this file except in compliance with the License.
7  * A copy of the License is located at
8  *
9  * http://aws.amazon.com/apache2.0/
10  *
11  * or in the "license" file accompanying this file. This file is distributed
12  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 
17 #ifndef ACSDKAUDIOINPUTSTREAM_AUDIOINPUTSTREAMCOMPONENT_H_
18 #define ACSDKAUDIOINPUTSTREAM_AUDIOINPUTSTREAMCOMPONENT_H_
19 
20 #include <memory>
21 #include <chrono>
22 
27 
28 namespace alexaClientSDK {
29 namespace acsdkAudioInputStream {
30 
32 static const size_t WORD_SIZE = 2;
33 static const size_t MAX_READERS = 10;
34 static const std::chrono::seconds AMOUNT_OF_AUDIO_DATA_IN_BUFFER = std::chrono::seconds(15);
35 
39 using AudioInputStreamComponent = acsdkManufactory::
40  Component<std::shared_ptr<avsCommon::avs::AudioInputStream>, std::shared_ptr<avsCommon::utils::AudioFormat>>;
41 
52  const size_t wordSize = WORD_SIZE,
53  const size_t maxReaders = MAX_READERS,
54  const std::chrono::seconds amountOfAudioDataInBuffer = AMOUNT_OF_AUDIO_DATA_IN_BUFFER);
55 
56 } // namespace acsdkAudioInputStream
57 } // namespace alexaClientSDK
58 
59 #endif // ACSDKAUDIOINPUTSTREAM_AUDIOINPUTSTREAMCOMPONENT_H_
static const size_t WORD_SIZE
Default params for AudioInputStreamComponent.
Definition: AudioInputStreamComponent.h:32
static const size_t MAX_READERS
Definition: AudioInputStreamComponent.h:33
static const std::chrono::seconds AMOUNT_OF_AUDIO_DATA_IN_BUFFER
Definition: AudioInputStreamComponent.h:34
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
AudioInputStreamComponent getComponent(const size_t wordSize=WORD_SIZE, const size_t maxReaders=MAX_READERS, const std::chrono::seconds amountOfAudioDataInBuffer=AMOUNT_OF_AUDIO_DATA_IN_BUFFER)

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