A test observer that mocks out the KeyWordObserverInterface#onKeyWordDetected() call.
More...
A test observer that mocks out the KeyWordObserverInterface#onKeyWordDetected() call.
◆ onKeyWordDetected()
void alexaClientSDK::kwd::test::testKeyWordObserver::onKeyWordDetected |
( |
std::shared_ptr< AudioInputStream > |
stream, |
|
|
std::string |
keyword, |
|
|
AudioInputStream::Index |
beginIndex, |
|
|
AudioInputStream::Index |
endIndex, |
|
|
std::shared_ptr< const std::vector< char >> |
KWDMetadata |
|
) |
| |
|
inline |
◆ waitForNDetections()
std::vector<detectionResult> alexaClientSDK::kwd::test::testKeyWordObserver::waitForNDetections |
( |
unsigned int |
numDetectionsExpected, |
|
|
std::chrono::milliseconds |
timeout |
|
) |
| |
|
inline |
Waits for the KeyWordObserverInterface#onKeyWordDetected() call N times.
- Parameters
-
numDetectionsExpected | The number of detections expected. |
timeout | The amount of time to wait for the calls. |
- Returns
- The detection results that actually occurred.
The documentation for this class was generated from the following file:
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0