![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AudioProvider.h>
Public Member Functions | |
AudioProvider (std::shared_ptr< avsCommon::avs::AudioInputStream > stream, const avsCommon::utils::AudioFormat &format, ASRProfile profile, bool alwaysReadable, bool canOverride, bool canBeOverridden) | |
operator bool () const | |
Static Public Member Functions | |
static AudioProvider | TapAudioProvider (std::shared_ptr< avsCommon::avs::AudioInputStream > stream, const avsCommon::utils::AudioFormat &format) |
static AudioProvider | WakeAudioProvider (std::shared_ptr< avsCommon::avs::AudioInputStream > stream, const avsCommon::utils::AudioFormat &format) |
static AudioProvider | HoldAudioProvider (std::shared_ptr< avsCommon::avs::AudioInputStream > stream, const avsCommon::utils::AudioFormat &format) |
static const AudioProvider & | null () |
Public Attributes | |
std::shared_ptr< avsCommon::avs::AudioInputStream > | stream |
The ByteStream to use for audio input. More... | |
avsCommon::utils::AudioFormat | format |
The AudioFormat of the data in byteStream . More... | |
ASRProfile | profile |
The ASRProfile describing the acoustic environment for the audio input. More... | |
bool | alwaysReadable |
Whether new audio data can be read at any time from byteStream . More... | |
bool | canOverride |
Whether this AudioProvider should be allowed to interrupt/override another AudioProvider . More... | |
bool | canBeOverridden |
Whether this AudioProvider should allow another AudioProvider to interrupt it. More... | |
Wrapper for an audio input ByteStream
which includes information about the audio format and policies for using it.
|
inline |
Initialization constructor.
stream | The ByteStream to use for audio input. |
format | The AudioFormat of the data in byteStream . |
profile | The AudioProfile describing the acoustic environment for the audio input. |
alwaysReadable | Whether new audio data can be read at any time from byteStream . This must be true for a stream to be automatically opened up by an ExpectSpeech directive. |
canOverride | Whether this AudioProvider should be allowed to interrupt/override another AudioProvider . |
canBeOverridden | Whether this AudioProvider allows another AudioProvider to interrupt it. |
|
inlinestatic |
This function provides an AudioProvider
for a HoldToTalk Interaction.
stream | The ByteStream to use for audio input. |
format | The AudioFormat of the data in byteStream . |
AudioProvider
.
|
inlinestatic |
This function provides an invalid AudioProvider which has no stream associated with it.
|
inline |
This function checks whether this is a valid AudioProvider
. An AudioProvider
is valid if it has a stream associated with it.
true
if stream != nullptr
, else false
.
|
inlinestatic |
This function provides an AudioProvider
for a TapToTalk Interaction.
stream | The ByteStream to use for audio input. |
format | The AudioFormat of the data in byteStream . |
AudioProvider
.
|
inlinestatic |
This function provides an AudioProvider
for a Wakeword Interaction.
stream | The ByteStream to use for audio input. |
format | The AudioFormat of the data in byteStream . |
AudioProvider
. bool alexaClientSDK::capabilityAgents::aip::AudioProvider::alwaysReadable |
Whether new audio data can be read at any time from byteStream
.
bool alexaClientSDK::capabilityAgents::aip::AudioProvider::canBeOverridden |
Whether this AudioProvider
should allow another AudioProvider
to interrupt it.
bool alexaClientSDK::capabilityAgents::aip::AudioProvider::canOverride |
Whether this AudioProvider
should be allowed to interrupt/override another AudioProvider
.
avsCommon::utils::AudioFormat alexaClientSDK::capabilityAgents::aip::AudioProvider::format |
The AudioFormat
of the data in byteStream
.
ASRProfile alexaClientSDK::capabilityAgents::aip::AudioProvider::profile |
The ASRProfile
describing the acoustic environment for the audio input.
std::shared_ptr<avsCommon::avs::AudioInputStream> alexaClientSDK::capabilityAgents::aip::AudioProvider::stream |
The ByteStream
to use for audio input.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0