![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
This represents a microphone which injects audio data into the shared data stream. More...
#include <AudioInjectorMicrophone.h>


Public Member Functions | |
| void | injectAudio (const std::vector< uint16_t > &audioData) |
| ~AudioInjectorMicrophone () | |
MicrophoneInterface methods | |
| bool | stopStreamingMicrophoneData () override |
| bool | startStreamingMicrophoneData () override |
| bool | isStreaming () override |
Public Member Functions inherited from alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface | |
| virtual | ~MicrophoneInterface ()=default |
Static Public Member Functions | |
| static std::unique_ptr< AudioInjectorMicrophone > | create (const std::shared_ptr< avsCommon::avs::AudioInputStream > &stream, const alexaClientSDK::avsCommon::utils::AudioFormat &compatibleAudioFormat) |
This represents a microphone which injects audio data into the shared data stream.
| alexaClientSDK::diagnostics::AudioInjectorMicrophone::~AudioInjectorMicrophone | ( | ) |
Destructor.
|
static |
Creates a AudioInjectorMicrophone.
| stream | The shared data stream to write to. |
| compatibleAudioFormat | The audio format. |
AudioInjectorMicrophone if creation was successful and nullptr otherwise. | void alexaClientSDK::diagnostics::AudioInjectorMicrophone::injectAudio | ( | const std::vector< uint16_t > & | audioData | ) |
Injects audio into the audio buffer at the next possible moment. If the microphone is muted, audio will be injected when the microphone is unmuted.
| audioData | The reference to the audioBuffer vector. |
|
overridevirtual |
Whether the microphone is currently streaming.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
|
overridevirtual |
Starts streaming from the microphone.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
|
overridevirtual |
Stops streaming from the microphone.
Implements alexaClientSDK::applicationUtilities::resources::audio::MicrophoneInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0