AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DefaultClient.h>
Additional Inherited Members |
This class serves to instantiate each default component with of the SDK with no specializations to provide an "out-of-box" component that users may utilize for AVS interaction.
alexaClientSDK::defaultClient::DefaultClient::~DefaultClient | ( | ) |
Destructor.
void alexaClientSDK::defaultClient::DefaultClient::acceptCommsCall | ( | ) |
Accepts an incoming phone-call.
void alexaClientSDK::defaultClient::DefaultClient::addAlertsObserver | ( | std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > | observer | ) |
Adds an observer to be notified of alert state changes.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addAlexaDialogStateObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::DialogUXStateObserverInterface > | observer | ) |
Adds an observer to be notified of Alexa dialog related UX state.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addAudioInputProcessorObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface > & | observer | ) |
Adds an AudioInputProcessorObserver
to be alerted on AudioInputProcessor
related state changes.
observer | The observer to be notified upon AudioInputProcessor related state changes. |
void alexaClientSDK::defaultClient::DefaultClient::addAudioPlayerObserver | ( | std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > | observer | ) |
Adds an observer to be notified of AudioPlayer
state changes. This can be used to be be notified of the PlayerActivity
of the AudioPlayer
.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addBluetoothDeviceObserver | ( | std::shared_ptr< acsdkBluetoothInterfaces::BluetoothDeviceObserverInterface > | observer | ) |
Adds an observer to be notified of bluetooth device changes.
observer | The BluetoothDeviceObserverInterface to add. |
void alexaClientSDK::defaultClient::DefaultClient::addCallStateObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::CallStateObserverInterface > | observer | ) |
Adds an observer to be notified when the call state has changed.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addCaptionPresenter | ( | std::shared_ptr< captions::CaptionPresenterInterface > | presenter | ) |
Adds a presenter responsible for displaying formatted captions content.
presenter | The CaptionPresenterInterface to add. |
void alexaClientSDK::defaultClient::DefaultClient::addConnectionObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::ConnectionStatusObserverInterface > | observer | ) |
Adds an observer to be notified of connection status changes.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addContextManagerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerObserverInterface > | observer | ) |
Adds a ContextManagerObserver to be notified of Context state changes.
observer | The observer to be notified of Context state changes. |
void alexaClientSDK::defaultClient::DefaultClient::addEndpointRegistrationManagerObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointRegistrationObserverInterface > & | observer | ) |
Add observer for endpoint registration manager.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addEqualizerControllerListener | ( | std::shared_ptr< acsdkEqualizerInterfaces::EqualizerControllerListenerInterface > | listener | ) |
Adds a EqualizerControllerListener to be notified of Equalizer state changes.
listener | The listener to be notified of Equalizer state changes. |
void alexaClientSDK::defaultClient::DefaultClient::addExternalMediaPlayerObserver | ( | std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > | observer | ) |
Adds an observer to be notified of ExternalMediaPlayer changes
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addInternetConnectionObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::InternetConnectionObserverInterface > | observer | ) |
Adds an observer to be notified of internet connection status changes.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addMessageObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface > | observer | ) |
Adds an observer to be notified when a message arrives from AVS.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addNotificationsObserver | ( | std::shared_ptr< acsdkNotificationsInterfaces::NotificationsObserverInterface > | observer | ) |
Adds an observer to be notified of IndicatorState changes.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::addRegistrationObserver | ( | const std::shared_ptr< registrationManager::RegistrationObserverInterface > & | observer | ) |
Adds an RegistrationObserverInterface
to the RegistrationNotifier
.
observer | - The RegistrationObserverInterfaces to be notified of logout events. |
void alexaClientSDK::defaultClient::DefaultClient::addSpeakerManagerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerObserverInterface > | observer | ) |
Adds a SpeakerManagerObserver to be alerted when the volume and mute changes.
observer | The observer to be notified upon volume and mute changes. |
void alexaClientSDK::defaultClient::DefaultClient::addSpeechSynthesizerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::SpeechSynthesizerObserverInterface > | observer | ) |
Adds a SpeechSynthesizerObserver to be alerted on SpeechSynthesizer state changes
observer | The observer to be notified upon the state change |
void alexaClientSDK::defaultClient::DefaultClient::addTemplateRuntimeObserver | ( | std::shared_ptr< templateRuntimeInterfaces::TemplateRuntimeObserverInterface > | observer | ) |
Adds an observer to be notified when a TemplateRuntime directive is received.
observer | The observer to add. |
void alexaClientSDK::defaultClient::DefaultClient::audioPlayerLocalStop | ( | ) |
This function stops playback of the current song in the AudioPlayer
.
|
override |
FeatureClientInterface
functions
void alexaClientSDK::defaultClient::DefaultClient::connect | ( | bool | performReset = true | ) |
Connects the client to AVS. After this call, users can observe the state of the connection asynchronously by using a connectionObserver that was passed in to the create() function.
performReset | True if the client wishes to reset the AVS gateway and clear the previous user's registration status as well on connection. |
|
static |
Creates and initializes a default AVS SDK client. To connect the client to AVS, users should make a call to connect() after creation.
manufactory | Manufactory for creating various instances used by DefaultClient. |
ringtoneMediaPlayer | The media player to play Comms ringtones. |
ringtoneSpeaker | The speaker to control volume of Comms ringtones. |
additionalSpeakers | A map of additional speakers to receive volume changes. #ifdef ENABLE_PCC |
phoneSpeaker | Interface to speaker for phone calls. |
phoneCaller | Interface for making phone calls. #endif #ifdef ENABLE_MCC |
meetingSpeaker | Interface to speaker for meetings. |
meetingClient | Meeting client for meeting client controller. |
calendarClient | Calendar client for meeting client controller. #endif #ifdef ENABLE_COMMS_AUDIO_PROXY |
commsMediaPlayer | The media player to play Comms calling audio. |
commsSpeaker | The speaker to control volume of Comms calling audio. |
sharedDataStream | The stream to use which has the audio from microphone. #endif |
alexaDialogStateObservers | Observers that can be used to be notified of Alexa dialog related UX state changes. |
connectionObservers | Observers that can be used to be notified of connection status changes. |
isGuiSupported | Whether the device supports GUI. |
firmwareVersion | The firmware version to report to AVS or INVALID_FIRMWARE_VERSION . |
sendSoftwareInfoOnConnected | Whether to send SoftwareInfo upon connecting to AVS . |
softwareInfoSenderObserver | Object to receive notifications about sending SoftwareInfo. |
diagnostics | Diagnostics interface which provides suite of APIs for diagnostic insight into SDK. |
externalCapabilitiesBuilder | Optional object used to build capabilities that are not included in the SDK. |
firstInteractionAudioProvider | Optional object used in the first interaction started from the alexa voice service |
sdkClientRegistry | Optional object used when the SDKClientBuilder is used to construct DefaultClient |
std::unique_ptr
to a DefaultClient if all went well or nullptr
otherwise. Creates and initializes a default AVS SDK client. To connect the client to AVS, users should make a call to connect() after creation.
deviceInfo | DeviceInfo which reflects the device setup credentials. |
customerDataManager | CustomerDataManager instance to be used by RegistrationManager and instances of all classes extending CustomDataHandler. |
externalMusicProviderMediaPlayers | The map of <players, mediaPlayer> to use to play content from each external music provider. |
externalMusicProviderSpeakers | The map of <players, speaker> to use to track volume of each external music provider media player. |
adapterCreationMap | The map of <players, adapterCreationMethod> to use when creating the adapters for the different music providers supported by ExternalMediaPlayer. |
speakMediaPlayer | The media player to use to play Alexa speech from. |
audioMediaPlayerFactory | The media player factory to use to generate players for Alexa audio content. |
alertsMediaPlayer | The media player to use to play alerts from. |
notificationsMediaPlayer | The media player to play notification indicators. |
bluetoothMediaPlayer | The media player to play bluetooth content. |
ringtoneMediaPlayer | The media player to play Comms ringtones. |
systemSoundMediaPlayer | The media player to play system sounds. |
speakSpeaker | The speaker to control volume of Alexa speech. |
audioSpeakers | A list of speakers to control volume of Alexa audio content. |
alertsSpeaker | The speaker to control volume of alerts. |
notificationsSpeaker | The speaker to control volume of notifications. |
bluetoothSpeaker | The speaker to control volume of bluetooth. |
ringtoneSpeaker | The speaker to control volume of Comms ringtones. |
systemSoundSpeaker | The speaker to control volume of system sounds. |
additionalSpeakers | A map of additional speakers to receive volume changes. #ifdef ENABLE_COMMS_AUDIO_PROXY |
commsMediaPlayer | The media player to play Comms calling audio. |
commsSpeaker | The speaker to control volume of Comms calling audio. |
sharedDataStream | The stream to use which has the audio from microphone. #endif |
equalizerRuntimeSetup | Equalizer component runtime setup |
audioFactory | The audioFactory is a component that provides unique audio streams. |
authDelegate | The component that provides the client with valid LWA authorization. |
alertStorage | The storage interface that will be used to store alerts. |
messageStorage | The storage interface that will be used to store certified sender messages. |
notificationsStorage | The storage interface that will be used to store notification indicators. |
deviceSettingStorage | The storage interface that will be used to store device settings. |
bluetoothStorage | The storage interface that will be used to store bluetooth data. |
miscStorage | The storage interface that will be used to store key / value pairs. |
alexaDialogStateObservers | Observers that can be used to be notified of Alexa dialog related UX state changes. |
connectionObservers | Observers that can be used to be notified of connection status changes. |
isGuiSupported | Whether the device supports GUI. |
capabilitiesDelegate | The component that provides the client with the ability to send messages to the Capabilities API. |
contextManager | The ContextManager which will provide the context for various components. |
transportFactory | The object passed in here will be used whenever a new transport object for AVS communication is needed. |
avsGatewayManager | The AVSGatewayManager instance used to create the ApiGateway CA. |
localeAssetsManager | The device locale assets manager. |
enabledConnectionRules | The set of BluetoothDeviceConnectionRuleInterface instances used to create the Bluetooth CA. |
systemTimezone | Optional object used to set the system timezone. |
firmwareVersion | The firmware version to report to AVS or INVALID_FIRMWARE_VERSION . |
sendSoftwareInfoOnConnected | Whether to send SoftwareInfo upon connecting to AVS . |
softwareInfoSenderObserver | Object to receive notifications about sending SoftwareInfo. |
bluetoothDeviceManager | The BluetoothDeviceManager instance used to create the Bluetooth CA. |
metricRecorder | The metric recorder object used to capture metrics. |
powerResourceManager | Object to manage power resource. |
diagnostics | Diagnostics interface which provides suite of APIs for diagnostic insight into SDK. |
externalCapabilitiesBuilder | Optional object used to build capabilities that are not included in the SDK. |
channelVolumeFactory | Optional object used to build ChannelVolumeInterface in the SDK. |
startAlertSchedulingOnInitialization | Whether to start scheduling alerts after client initialization. If this is set to false, no alert scheduling will occur until onSystemClockSynchronized is called. |
messageRouterFactory | Object used to instantiate MessageRouter in the SDK. |
expectSpeechTimeoutHandler | An optional object that applications may provide to specify external handling of the ExpectSpeech directive's timeout. If provided, this function must remain valid for the lifetime of the AudioInputProcessor . |
firstInteractionAudioProvider | Optional object used in the first interaction started from the alexa voice service |
cryptoFactory | Optional Encryption facilities factory. |
sdkClientRegistry | Optional object used when the SDKClientBuilder is used to construct DefaultClient |
std::unique_ptr
to a DefaultClient if all went well or nullptr
otherwise. std::shared_ptr<avsCommon::sdkInterfaces::endpoints::EndpointBuilderInterface> alexaClientSDK::defaultClient::DefaultClient::createEndpointBuilder | ( | ) |
Creates an endpoint builder which can be used to configure a new endpoint.
std::future<endpoints::EndpointRegistrationManager::DeregistrationResult> alexaClientSDK::defaultClient::DefaultClient::deregisterEndpoint | ( | avsCommon::sdkInterfaces::endpoints::EndpointIdentifier | endpointId | ) |
Deregisters an endpoint with the EndpointRegistrationManagerInterface
.
endpointId | The EndpointIdentifier of the endpoint to deregister. |
DeregistratonResult
for deregistering this endpoint. void alexaClientSDK::defaultClient::DefaultClient::disableVideo | ( | ) |
Disable the video of local device in an active call.
void alexaClientSDK::defaultClient::DefaultClient::disconnect | ( | ) |
Disconnects the client from AVS if it is connected. After the call, users can observer the state of the connection asynchronously by using a connectionObserver that was passed in to the create() function.
|
overridevirtual |
FeatureClientInterface
functions
Implements alexaClientSDK::avsCommon::utils::RequiresShutdown.
void alexaClientSDK::defaultClient::DefaultClient::enableVideo | ( | ) |
Enable the video of local device in an active call.
std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::FocusManagerInterface> alexaClientSDK::defaultClient::DefaultClient::getAudioFocusManager | ( | ) |
Get a reference to the audio focus manager
FocusManagerInterface
, callers should perform a nullptr check as the returned pointer may be null std::string alexaClientSDK::defaultClient::DefaultClient::getAVSGateway | ( | ) |
Get the gateway URL for the AVS connection.
std::shared_ptr<acsdkBluetoothInterfaces::BluetoothLocalInterface> alexaClientSDK::defaultClient::DefaultClient::getBluetoothLocal | ( | ) |
Gets the BluetoothLocalInterface
for local applications that wish to invoke Bluetooth functionality.
BluetoothLocalInterface
. std::shared_ptr<avsCommon::sdkInterfaces::endpoints::EndpointBuilderInterface> alexaClientSDK::defaultClient::DefaultClient::getDefaultEndpointBuilder | ( | ) |
Retrieves the builder for the default endpoint which contains all capabilities associated with this client.
This builder can be used to add extra capabilities to the default endpoint.
connect()
. Adding new components after the client has been connected will fail. std::shared_ptr<acsdkDeviceSetupInterfaces::DeviceSetupInterface> alexaClientSDK::defaultClient::DefaultClient::getDeviceSetup | ( | ) |
Gets the DeviceSetupInterface
for when it is time to send the DeviceSetupComplete event to AVS.
This method is required to support legacy applications that have not transitioned to fully integrating the manufactory.
DeviceSetupInterface
. std::shared_ptr<acsdkEqualizer::EqualizerController> alexaClientSDK::defaultClient::DefaultClient::getEqualizerController | ( | ) |
Get a shared_ptr to the EqualizerController.
EqualizerController
before releasing the last reference to the DefaultClient
. std::shared_ptr<avsCommon::sdkInterfaces::PlaybackRouterInterface> alexaClientSDK::defaultClient::DefaultClient::getPlaybackRouter | ( | ) | const |
std::shared_ptr<registrationManager::RegistrationManagerInterface> alexaClientSDK::defaultClient::DefaultClient::getRegistrationManager | ( | ) |
Get a shared_ptr to the RegistrationManager.
std::shared_ptr<settings::DeviceSettingsManager> alexaClientSDK::defaultClient::DefaultClient::getSettingsManager | ( | ) |
}
Retrieves the device settings manager which can be used to access device settings.
std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownManagerInterface> alexaClientSDK::defaultClient::DefaultClient::getShutdownManager | ( | ) |
Gets the ShutdownManagerInterface
for when it is time to shut down the SDK.
This method is required to support legacy applications that have not transitioned to fully integrating the manufactory.
ShutdownManagerInterface
. std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> alexaClientSDK::defaultClient::DefaultClient::getSpeakerManager | ( | ) |
Get a shared_ptr to the SpeakerManager.
bool alexaClientSDK::defaultClient::DefaultClient::isCommsCallMuted | ( | ) |
Check if the Comms call is muted.
bool alexaClientSDK::defaultClient::DefaultClient::isCommsEnabled | ( | ) |
Lets the caller know if Comms is enabled.
void alexaClientSDK::defaultClient::DefaultClient::localStopActiveAlert | ( | ) |
This function provides a way for application code to request this object stop any active alert as the result of a user action, such as pressing a physical 'stop' button on the device.
void alexaClientSDK::defaultClient::DefaultClient::muteCommsCall | ( | ) |
Mute comms Call.
|
overridevirtual |
The directive sequencer.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
The directive sequencer.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
The directive sequencer.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
The directive sequencer.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
|
overridevirtual |
The directive sequencer.
Implements alexaClientSDK::avsCommon::sdkInterfaces::SpeechInteractionHandlerInterface.
void alexaClientSDK::defaultClient::DefaultClient::onSystemClockSynchronized | ( | ) |
The directive sequencer.
std::future<endpoints::EndpointRegistrationManager::RegistrationResult> alexaClientSDK::defaultClient::DefaultClient::registerEndpoint | ( | std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointInterface > | endpoint | ) |
Registers an endpoint with the EndpointRegistrationManagerInterface
.
endpoint | A pointer to the EndpointInterface to be registered. |
RegistrationResult
for registering this endpoint. void alexaClientSDK::defaultClient::DefaultClient::registerExternalMediaPlayerAdapterHandler | ( | std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface > | externalMediaPlayerAdapterHandler | ) |
Register an ExternalMediaPlayerAdapterHandler with the ExternalMediaPlayer CA Multiple adapter handlers can be added to the ExternalMediaPlayer by repeatedly calling this function.
externalMediaPlayerAdapterHandler | Pointer to the EMPAdapterHandler to register |
void alexaClientSDK::defaultClient::DefaultClient::removeAlertsObserver | ( | std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > | observer | ) |
Removes an observer to be notified of alert state changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeAlexaDialogStateObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::DialogUXStateObserverInterface > | observer | ) |
Removes an observer to be notified of Alexa dialog related UX state.
removeObserver()
from DialogUXStateObserverInterface::onDialogUXStateChanged()
will result in a deadlock.observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeAudioInputProcessorObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::AudioInputProcessorObserverInterface > & | observer | ) |
Removes an AudioInputProcessorObserver
to be alerted on AudioInputProcessor
related state changes.
observer | The observer to be removed as an AudioInputProcessor observer. |
void alexaClientSDK::defaultClient::DefaultClient::removeAudioPlayerObserver | ( | std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > | observer | ) |
Removes an observer to be notified of AudioPlayer
state changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeBluetoothDeviceObserver | ( | std::shared_ptr< acsdkBluetoothInterfaces::BluetoothDeviceObserverInterface > | observer | ) |
Removes an observer to be notified of bluetooth device changes.
observer | The BluetoothDeviceObserverInterface to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeCallStateObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::CallStateObserverInterface > | observer | ) |
Removes an observer to be notified when the call state has changed.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeConnectionObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::ConnectionStatusObserverInterface > | observer | ) |
Removes an observer to be notified of connection status changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeContextManagerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerObserverInterface > | observer | ) |
Removes a ContextManagerObserver to be notified of Context state changes.
observer | The observer to no longer be notified of Context state changes. |
void alexaClientSDK::defaultClient::DefaultClient::removeEndpointRegistrationManagerObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointRegistrationObserverInterface > & | observer | ) |
Removes observer for endpoint registration manager.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeEqualizerControllerListener | ( | std::shared_ptr< acsdkEqualizerInterfaces::EqualizerControllerListenerInterface > | listener | ) |
Removes a EqualizerControllerListener to be notified of Equalizer state changes.
listener | The listener to no longer be notified of Equalizer state changes. |
void alexaClientSDK::defaultClient::DefaultClient::removeExternalMediaPlayerObserver | ( | std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > | observer | ) |
Removes an observer to be notified of ExternalMediaPlayer changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeInternetConnectionObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::InternetConnectionObserverInterface > | observer | ) |
Removes an observer to be notified of internet connection status changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeMessageObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface > | observer | ) |
Removes an observer to be notified when a message arrives from AVS.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeNotificationsObserver | ( | std::shared_ptr< acsdkNotificationsInterfaces::NotificationsObserverInterface > | observer | ) |
Removes an observer to be notified of IndicatorState changes.
observer | The observer to remove. |
void alexaClientSDK::defaultClient::DefaultClient::removeRegistrationObserver | ( | const std::shared_ptr< registrationManager::RegistrationObserverInterface > & | observer | ) |
Removes an RegistrationObserverInterface
to the RegistrationNotifier
.
observer | - The RegistrationObserverInterfaces to be notified of logout events. |
void alexaClientSDK::defaultClient::DefaultClient::removeSpeakerManagerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerObserverInterface > | observer | ) |
Removes a SpeakerManagerObserver from being alerted when the volume and mute changes.
observer | The observer to be notified upon volume and mute changes. |
void alexaClientSDK::defaultClient::DefaultClient::removeSpeechSynthesizerObserver | ( | std::shared_ptr< avsCommon::sdkInterfaces::SpeechSynthesizerObserverInterface > | observer | ) |
Removes a SpeechSynthesizerObserver from being alerted on SpeechSynthesizer state changes
observer | The observer to be removed |
void alexaClientSDK::defaultClient::DefaultClient::removeTemplateRuntimeObserver | ( | std::shared_ptr< templateRuntimeInterfaces::TemplateRuntimeObserverInterface > | observer | ) |
Removes an observer to be notified when a TemplateRuntime directive is received.
observer | The observer to remove. |
capabilityAgents::aip::AudioInputProcessor::EncodingFormatResponse alexaClientSDK::defaultClient::DefaultClient::requestEncodingAudioFormats | ( | const capabilityAgents::aip::AudioInputProcessor::EncodingFormatRequest & | encodings | ) |
Request for multiple audio streams with provided encodings for a single Recognize event. Calling this function will override any previous encoding specified by a call to setEncodingAudioFormat()
encodings | Encoding formats to use for audio streams. |
void alexaClientSDK::defaultClient::DefaultClient::sendDtmf | ( | avsCommon::sdkInterfaces::CallManagerInterface::DTMFTone | dtmfTone | ) |
Send dtmf tones during the call.
dtmfTone | The signal of the dtmf message. |
void alexaClientSDK::defaultClient::DefaultClient::setCaptionMediaPlayers | ( | const std::vector< std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface >> & | mediaPlayers | ) |
Sets the media players that can produce or control captioned content.
mediaPlayers | The MediaPlayerInterface instances to add. |
bool alexaClientSDK::defaultClient::DefaultClient::setEncodingAudioFormat | ( | avsCommon::utils::AudioFormat::Encoding | encoding | ) |
Set encoding for the audio format. The new encoding will be used for future utterances. Any audio stream already in progress will not be affected.
encoding | The encoding format to use. |
false
on failure to set the encoding. bool alexaClientSDK::defaultClient::DefaultClient::setFirmwareVersion | ( | avsCommon::sdkInterfaces::softwareInfo::FirmwareVersion | firmwareVersion | ) |
Update the firmware version.
firmwareVersion | The new firmware version. |
void alexaClientSDK::defaultClient::DefaultClient::stopAllActivities | ( | ) |
Stops all active channels/activities if there are any(has acquired focus atleast once). This acts as a "stop" button that can be used to stop all ongoing activities. This call will block until all the activities has stopped. There is a possibility of race condition of some activity about to start when this API is invoked.
void alexaClientSDK::defaultClient::DefaultClient::stopCommsCall | ( | ) |
Stops a phone-call.
void alexaClientSDK::defaultClient::DefaultClient::stopForegroundActivity | ( | ) |
Stops the foreground activity if there is one. This acts as a "stop" button that can be used to stop an ongoing activity. This call will block until the foreground activity has stopped all user-observable activities.
void alexaClientSDK::defaultClient::DefaultClient::stopInteraction | ( | ) |
Stops any ongoing interaction with the SDK by resetting the state of the AudioInputProcessor
.
This method is intended for use when a device needs to stop the current user interaction with alexa, for example when the audio input state needs to be returned to idle as a result of an event such as a back or exit button press. Calling this method has no effect on ongoing Alexa speech, audio playback or visual state.
void alexaClientSDK::defaultClient::DefaultClient::unmuteCommsCall | ( | ) |
Unmute Comms call.
std::future<endpoints::EndpointRegistrationManager::UpdateResult> alexaClientSDK::defaultClient::DefaultClient::updateEndpoint | ( | const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier & | endpointId, |
const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointModificationData > & | endpointModificationData | ||
) |
Updates an endpoint with the EndpointRegistrationManagerInterface
.
endpointId | The EndpointIdentifier of the endpoint to update. |
endpointModificationData | A pointer to the endpointModificationData to be updated. |
UpdateResult
for updating this endpoint. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0