AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Static Public Member Functions | |
static bool | protectedIsByteswappingRequired (avsCommon::utils::AudioFormat audioFormat) |
Additional Inherited Members | |
Protected Member Functions inherited from alexaClientSDK::acsdkKWDImplementations::AbstractKeywordDetector | |
AbstractKeywordDetector (std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::KeyWordObserverInterface >> keyWordObservers=std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::KeyWordObserverInterface >>(), std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface >> keyWordDetectorStateObservers=std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface >>(), bool supportsDavs=false) | |
AbstractKeywordDetector (std::shared_ptr< acsdkKWDInterfaces::KeywordNotifierInterface > keywordNotifier, std::shared_ptr< acsdkKWDInterfaces::KeywordDetectorStateNotifierInterface > keyWordDetectorStateNotifier, bool supportsDavs=false) | |
void | notifyKeyWordObservers (std::shared_ptr< avsCommon::avs::AudioInputStream > stream, std::string keyword, avsCommon::avs::AudioInputStream::Index beginIndex, avsCommon::avs::AudioInputStream::Index endIndex, std::shared_ptr< const std::vector< char >> KWDMetadata=nullptr) const |
void | notifyKeyWordDetectorStateObservers (avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface::KeyWordDetectorState state) |
ssize_t | readFromStream (std::shared_ptr< avsCommon::avs::AudioInputStream::Reader > reader, std::shared_ptr< avsCommon::avs::AudioInputStream > stream, void *buf, size_t nWords, std::chrono::milliseconds timeout, bool *errorOccurred) |
bool | isDavsSupported () |
Static Protected Member Functions inherited from alexaClientSDK::acsdkKWDImplementations::AbstractKeywordDetector | |
static bool | isByteswappingRequired (avsCommon::utils::AudioFormat audioFormat) |
A mock Keyword Detector that inherits from KeyWordDetector.
|
inline |
Constructor.
keyWordNotifier | The object with which to notifiy observers of keyword detections. |
KeyWordDetectorStateNotifier | The object with which to notify observers of state changes in the engine. |
|
static |
ssize_t alexaClientSDK::acsdkKWDImplementations::test::MockKeyWordDetector::protectedReadFromStream | ( | std::shared_ptr< avsCommon::avs::AudioInputStream::Reader > | reader, |
std::shared_ptr< avsCommon::avs::AudioInputStream > | stream, | ||
void * | buf, | ||
size_t | nWords, | ||
std::chrono::milliseconds | timeout, | ||
bool * | errorOccurred | ||
) |
void alexaClientSDK::acsdkKWDImplementations::test::MockKeyWordDetector::sendKeyWordCallToObservers | ( | ) |
Notifies all KeyWordObservers with dummy values.
void alexaClientSDK::acsdkKWDImplementations::test::MockKeyWordDetector::sendStateChangeCallObservers | ( | avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface::KeyWordDetectorState | state | ) |
Notifies all KeyWordDetectorStateObservers.
state | The state to notify observers of. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0