![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AipStateObserver.h>


Public Member Functions | |
| AipStateObserver () | |
| void | onStateChanged (avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface::State newState) override |
| bool | checkState (const avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface::State expectedState, const std::chrono::seconds duration=std::chrono::seconds(10)) |
| avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface::State | waitForNext (const std::chrono::seconds duration) |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface | |
| virtual | ~AudioInputProcessorObserverInterface ()=default |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface | |
| enum | State { State::IDLE, State::EXPECTING_SPEECH, State::RECOGNIZING, State::BUSY } |
The different states the AudioInputProcessor can be in. More... | |
Static Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface | |
| static std::string | stateToString (State state) |
| alexaClientSDK::integration::AipStateObserver::AipStateObserver | ( | ) |
| bool alexaClientSDK::integration::AipStateObserver::checkState | ( | const avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface::State | expectedState, |
| const std::chrono::seconds | duration = std::chrono::seconds(10) |
||
| ) |
|
overridevirtual |
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. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface.
| AudioInputProcessorObserverInterface::State alexaClientSDK::integration::AipStateObserver::waitForNext | ( | const std::chrono::seconds | duration | ) |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0