![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ExpectSpeechTimeoutHandlerInterface.h>
Public Member Functions | |
virtual | ~ExpectSpeechTimeoutHandlerInterface ()=default |
virtual bool | handleExpectSpeechTimeout (std::chrono::milliseconds timeout, const std::function< std::future< bool >()> &expectSpeechTimedOut)=0 |
Offers implementations the ability to handle the ExpectSpeech
timeout. As an example, this may be useful to applications with remote microphones.
|
virtualdefault |
Destructor.
|
pure virtual |
This function allows applications to tell the AudioInputProcessor
that the ExpectSpeech
directive's timeout will be handled externally and stops the AudioInputProcessor
from starting an internal timer to handle it.
timeout | The timeout of the ExpectSpeech directive. |
expectSpeechTimedOut | An std::function that applications may call if the timeout expires. This results in an ExpectSpeechTimedOut event being sent to AVS if no recognize() call is made prior to the timeout expiring. This function will return a future which is true if called in the correct state and an ExpectSpeechTimeout Event was sent successfully, or false otherwise. |
true
if the ExpectSpeech
directive's timeout will be handled externally and should not be handled via an internal timer owned by the AudioInputProcessor
.AudioInputProcessorObserverInterface's
onStateChanged() method to notify of a state change to EXPECTING_SPEECH
. expectSpeechTimedOut
parameter is no longer valid. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0