AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AudioEncoderInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDK_AUDIOENCODERINTERFACES_AUDIOENCODERINTERFACE_H_
17 #define ACSDK_AUDIOENCODERINTERFACES_AUDIOENCODERINTERFACE_H_
18 
19 #include <memory>
20 
23 
25 
26 namespace alexaClientSDK {
27 namespace audioEncoderInterfaces {
28 
49 public:
53  virtual ~AudioEncoderInterface() = default;
54 
75  virtual std::shared_ptr<avsCommon::avs::AudioInputStream> startEncoding(
76  const std::shared_ptr<avsCommon::avs::AudioInputStream>& inputStream,
80 
95  virtual void stopEncoding(bool stopImmediately = false) = 0;
96 
105 
117  virtual std::string getAVSFormatName() = 0;
118 };
119 
120 } // namespace audioEncoderInterfaces
121 } // namespace alexaClientSDK
122 
123 #endif // ACSDK_AUDIOENCODERINTERFACES_AUDIOENCODERINTERFACE_H_
virtual avsCommon::utils::AudioFormat::Encoding getEncoding()=0
Get output encoding type.
Reference
Specifies a reference to measure seek()/tell()/close() offsets against.
Definition: Reader.h:51
virtual std::string getAVSFormatName()=0
Get output format name for AVS service.
::std::string string
Definition: gtest-port.h:1097
virtual ~AudioEncoderInterface()=default
Virtual destructor.
Index
Index used for setting access.
Definition: StateReportGeneratorTest.cpp:41
virtual std::shared_ptr< avsCommon::avs::AudioInputStream > startEncoding(const std::shared_ptr< avsCommon::avs::AudioInputStream > &inputStream, avsCommon::utils::AudioFormat inputFormat, avsCommon::avs::AudioInputStream::Index begin, avsCommon::avs::AudioInputStream::Reader::Reference reference)=0
Start the new encoding session.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void stopEncoding(bool stopImmediately=false)=0
Stop current encoding session.
Interface for encoding audio stream.
Definition: AudioEncoderInterface.h:48

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