◆ isResultPresent()
bool alexaClientSDK::kwd::test::SensoryKeywordTest::isResultPresent |
( |
std::vector< testKeyWordObserver::detectionResult > & |
results, |
|
|
AudioInputStream::Index |
expectedBeginIndex, |
|
|
AudioInputStream::Index |
expectedEndIndex, |
|
|
const std::string & |
expectedKeyword |
|
) |
| |
|
inlineprotected |
Checks to see that the expected keyword detection results are present.
- Parameters
-
results | A vector of detectionResult . |
expectedBeginIndex | The expected begin index of the keyword. |
expectedEndIndex | The expected end index of the keyword. |
expectedKeyword | The expected keyword. |
- Returns
true
if the result is present within the margin and false
otherwise.
◆ readAudioFromFileIntoStream()
bool alexaClientSDK::kwd::test::SensoryKeywordTest::readAudioFromFileIntoStream |
( |
const std::string & |
fileName | ) |
|
|
inlineprotected |
Reads audio from a WAV file and write into audio input stream.
- Parameters
-
fileName | The path of the file to read from. |
- Returns
- True if successfully read and written into stream.
◆ SetUp()
virtual void alexaClientSDK::kwd::test::SensoryKeywordTest::SetUp |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ m_buffer
std::shared_ptr<avsCommon::avs::AudioInputStream::Buffer> alexaClientSDK::kwd::test::SensoryKeywordTest::m_buffer |
|
protected |
◆ m_compatibleAudioFormat
std::shared_ptr<AudioFormat> alexaClientSDK::kwd::test::SensoryKeywordTest::m_compatibleAudioFormat |
|
protected |
◆ m_detector
◆ m_keywordDetectorStateNotifier
◆ m_keywordNotifier
◆ m_keyWordObserver1
std::shared_ptr<testKeyWordObserver> alexaClientSDK::kwd::test::SensoryKeywordTest::m_keyWordObserver1 |
|
protected |
◆ m_keyWordObserver2
std::shared_ptr<testKeyWordObserver> alexaClientSDK::kwd::test::SensoryKeywordTest::m_keyWordObserver2 |
|
protected |
◆ m_sds
◆ m_stateObserver
std::shared_ptr<testStateObserver> alexaClientSDK::kwd::test::SensoryKeywordTest::m_stateObserver |
|
protected |
◆ m_writer
std::unique_ptr<AudioInputStream::Writer> alexaClientSDK::kwd::test::SensoryKeywordTest::m_writer |
|
protected |
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