![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AndroidSLESMicrophone.h>
Public Member Functions | |
bool | configureRecognizeMode () |
~AndroidSLESMicrophone () | |
MicrophoneInterface methods | |
bool | stopStreamingMicrophoneData () override |
bool | startStreamingMicrophoneData () override |
bool | isStreaming () override |
![]() | |
virtual | ~MicrophoneInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< AndroidSLESMicrophone > | create (std::shared_ptr< AndroidSLESEngine > engine, std::shared_ptr< avsCommon::avs::AudioInputStream > stream) |
static SLDataSink | createSinkConfiguration () |
static SLDataSource | createSourceConfiguration () |
Class that represents the OpenSL ES microphone.
This class is responsible for setting the OpenSL ES microphone recording state as well as to trigger the AndroidSLESBufferQueue
methods that manage the OpenSL ES microphone buffers.
The method startStreamingMicrophoneData
should be used to start recording, and it's counterpart is stopStreamingMicrophoneData
, which stops the recording and clear any unprocessed data.
alexaClientSDK::applicationUtilities::androidUtilities::AndroidSLESMicrophone::~AndroidSLESMicrophone | ( | ) |
Destructor.
bool alexaClientSDK::applicationUtilities::androidUtilities::AndroidSLESMicrophone::configureRecognizeMode | ( | ) |
Configure audio recorder to recognize mode.
true
if it suceeds, and false
if it fails.
|
static |
Creates an instance of an AndroidSLESMicrophone.
engine | Engine used to create the microphone, which should not be destroyed before the mic. |
stream | The audio stream. |
|
static |
Create audio sink configuration following AVS Speech Recognition parameters.
|
static |
Create audio source configuration.
|
overridevirtual |
Whether the microphone is currently streaming.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
|
overridevirtual |
Starts streaming from the microphone.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
|
overridevirtual |
Stops streaming from the microphone.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0