16 #ifndef ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESMICROPHONE_H_ 17 #define ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESMICROPHONE_H_ 20 #include <SLES/OpenSLES.h> 28 namespace applicationUtilities {
29 namespace androidUtilities {
31 class AndroidSLESBufferQueue;
51 static std::unique_ptr<AndroidSLESMicrophone>
create(
52 std::shared_ptr<AndroidSLESEngine> engine,
53 std::shared_ptr<avsCommon::avs::AudioInputStream> stream);
101 std::shared_ptr<AndroidSLESEngine> engine,
102 std::shared_ptr<avsCommon::avs::AudioInputStream::Writer> writer);
106 std::shared_ptr<AndroidSLESEngine> m_engineObject;
109 std::shared_ptr<avsCommon::avs::AudioInputStream::Writer> m_writer;
112 std::shared_ptr<AndroidSLESObject> m_recorderObject;
115 SLRecordItf m_recorderInterface;
118 std::unique_ptr<AndroidSLESBufferQueue> m_queue;
131 #endif // ALEXA_CLIENT_SDK_APPLICATIONUTILITIES_ANDROIDUTILITIES_INCLUDE_ANDROIDUTILITIES_ANDROIDSLESMICROPHONE_H_ bool isStreaming() override
Definition: AndroidSLESMicrophone.h:42
static std::unique_ptr< AndroidSLESMicrophone > create(std::shared_ptr< AndroidSLESEngine > engine, std::shared_ptr< avsCommon::avs::AudioInputStream > stream)
static SLDataSource createSourceConfiguration()
bool configureRecognizeMode()
static SLDataSink createSinkConfiguration()
bool startStreamingMicrophoneData() override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool stopStreamingMicrophoneData() override
This acts as an interface to record audio input from a microphone.
Definition: MicrophoneInterface.h:28