AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
SpeechInteractionHandlerInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEECHINTERACTIONHANDLERINTERFACE_H_
16 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEECHINTERACTIONHANDLERINTERFACE_H_
17 
18 #include <stdlib.h>
19 #include <chrono>
20 #include <future>
21 #include <memory>
22 #include <string>
23 
25 #include <AIP/AudioProvider.h>
27 
28 namespace alexaClientSDK {
29 namespace avsCommon {
30 namespace sdkInterfaces {
31 
38 public:
39  virtual ~SpeechInteractionHandlerInterface() = default;
40 
52  virtual std::future<bool> notifyOfWakeWord(
53  capabilityAgents::aip::AudioProvider wakeWordAudioProvider,
56  std::string keyword,
57  std::chrono::steady_clock::time_point startOfSpeechTimestamp,
58  std::shared_ptr<const std::vector<char>> KWDMetadata = nullptr) = 0;
59 
71  virtual std::future<bool> notifyOfTapToTalk(
72  capabilityAgents::aip::AudioProvider tapToTalkAudioProvider,
74  std::chrono::steady_clock::time_point startOfSpeechTimestamp = std::chrono::steady_clock::now()) = 0;
75 
85  virtual std::future<bool> notifyOfHoldToTalkStart(
86  capabilityAgents::aip::AudioProvider holdToTalkAudioProvider,
87  std::chrono::steady_clock::time_point startOfSpeechTimestamp = std::chrono::steady_clock::now(),
90 
98  virtual std::future<bool> notifyOfHoldToTalkEnd() = 0;
99 
107  virtual std::future<bool> notifyOfTapToTalkEnd() = 0;
108 };
109 
110 } // namespace sdkInterfaces
111 } // namespace avsCommon
112 } // namespace alexaClientSDK
113 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_SPEECHINTERACTIONHANDLERINTERFACE_H_
static const auto INVALID_INDEX
A reserved Index value which is considered invalid.
Definition: AudioInputProcessor.h:133
::std::string string
Definition: gtest-port.h:1097
virtual std::future< bool > notifyOfTapToTalk(capabilityAgents::aip::AudioProvider tapToTalkAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now())=0
virtual std::future< bool > notifyOfWakeWord(capabilityAgents::aip::AudioProvider wakeWordAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex, avsCommon::avs::AudioInputStream::Index endIndex, std::string keyword, std::chrono::steady_clock::time_point startOfSpeechTimestamp, std::shared_ptr< const std::vector< char >> KWDMetadata=nullptr)=0
Index
Index used for setting access.
Definition: StateReportGeneratorTest.cpp:41
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual std::future< bool > notifyOfHoldToTalkStart(capabilityAgents::aip::AudioProvider holdToTalkAudioProvider, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now(), avsCommon::avs::AudioInputStream::Index beginIndex=capabilityAgents::aip::AudioInputProcessor::INVALID_INDEX)=0
Definition: SpeechInteractionHandlerInterface.h:37

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0