![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
A state observer for an AudioInputProcessor
.
More...
#include <AudioInputProcessorObserverInterface.h>
Public Types | |
enum | State { State::IDLE, State::EXPECTING_SPEECH, State::RECOGNIZING, State::BUSY } |
The different states the AudioInputProcessor can be in. More... | |
Public Member Functions | |
virtual | ~AudioInputProcessorObserverInterface ()=default |
Destructor. More... | |
virtual void | onStateChanged (State state)=0 |
virtual void | onASRProfileChanged (const std::string &profile) |
Static Public Member Functions | |
static std::string | stateToString (State state) |
A state observer for an AudioInputProcessor
.
The different states the AudioInputProcessor
can be in.
|
virtualdefault |
Destructor.
|
inlinevirtual |
This function is called when the active ASRProfile
changes.
profile | The string representation of the active ASRProfile . Use the associated getASRProfile to retrieve the ASRProfile value. |
Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter.
|
pure virtual |
This function is called when the state of the observed AudioInputProcessor
changes. This function will block processing of audio inputs, so implementations should return quickly.
state | The new state of the AudioInputProcessor . |
Implemented in alexaClientSDK::avsCommon::avs::DialogUXStateAggregator, and alexaClientSDK::sampleApplications::ipcServerSampleApp::liveViewController::LiveViewControllerPresentationAdapter.
|
inlinestatic |
This function converts the provided State
to a string.
state | The State to convert to a string. |
state
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0