AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Typedefs | Functions | Variables
SampleApplication.cpp File Reference
#include <acsdkAudioInputStream/AudioInputStreamFactory.h>
#include <acsdkAudioInputStream/CompatibleAudioFormat.h>
#include <acsdkCryptoInterfaces/KeyStoreInterface.h>
#include <acsdkCryptoInterfaces/CryptoFactoryInterface.h>
#include <acsdkCrypto/CryptoFactory.h>
#include <acsdkManufactory/Manufactory.h>
#include <acsdkPkcs11/KeyStoreFactory.h>
#include <ACL/Transport/HTTP2TransportFactory.h>
#include <ACL/Transport/PostConnectSequencerFactory.h>
#include <AVSCommon/AVS/CapabilitySemantics/CapabilitySemantics.h>
#include <AVSCommon/AVS/Initialization/InitializationParametersBuilder.h>
#include <AVSCommon/SDKInterfaces/PowerResourceManagerInterface.h>
#include <AVSCommon/Utils/LibcurlUtils/HttpPost.h>
#include <AVSCommon/Utils/LibcurlUtils/LibcurlHTTP2ConnectionFactory.h>
#include <AVSCommon/Utils/UUIDGeneration/UUIDGeneration.h>
#include <AVSGatewayManager/AVSGatewayManager.h>
#include <AVSGatewayManager/Storage/AVSGatewayManagerStorage.h>
#include <SynchronizeStateSender/SynchronizeStateSenderFactory.h>
#include "SampleApp/ExternalCapabilitiesBuilder.h"
#include "SampleApp/KeywordObserver.h"
#include "SampleApp/LocaleAssetsManager.h"
#include "SampleApp/SampleApplication.h"
#include "SampleApp/SampleApplicationComponent.h"
#include <AVSCommon/AVS/Initialization/AlexaClientSDKInit.h>
#include <AVSCommon/SDKInterfaces/Bluetooth/BluetoothDeviceConnectionRuleInterface.h>
#include <AVSCommon/SDKInterfaces/Bluetooth/BluetoothDeviceManagerInterface.h>
#include <AVSCommon/SDKInterfaces/Diagnostics/ProtocolTracerInterface.h>
#include <AVSCommon/SDKInterfaces/Endpoints/EndpointBuilderInterface.h>
#include <AVSCommon/Utils/Configuration/ConfigurationNode.h>
#include <AVSCommon/Utils/DeviceInfo.h>
#include <AVSCommon/Utils/LibcurlUtils/HTTPContentFetcherFactory.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/Logger/LoggerSinkManager.h>
#include <AVSCommon/Utils/Network/InternetConnectionMonitor.h>
#include <acsdkAlerts/Storage/SQLiteAlertStorage.h>
#include <Audio/AudioFactory.h>
#include <Audio/MicrophoneInterface.h>
#include <acsdkBluetooth/BasicDeviceConnectionRule.h>
#include <acsdkBluetooth/SQLiteBluetoothStorage.h>
#include <acsdkNotifications/SQLiteNotificationsStorage.h>
#include <CBLAuthDelegate/CBLAuthDelegate.h>
#include <CBLAuthDelegate/SQLiteCBLAuthDelegateStorage.h>
#include <CapabilitiesDelegate/CapabilitiesDelegate.h>
#include <CapabilitiesDelegate/Storage/SQLiteCapabilitiesDelegateStorage.h>
#include <SQLiteStorage/SQLiteMiscStorage.h>
#include <SampleApp/CaptionPresenter.h>
#include <SampleApp/SampleEqualizerModeController.h>
#include <Settings/Storage/SQLiteDeviceSettingStorage.h>
#include <acsdkEqualizerImplementations/InMemoryEqualizerConfiguration.h>
#include <acsdkEqualizerImplementations/MiscDBEqualizerStorage.h>
#include <acsdkEqualizerImplementations/SDKConfigEqualizerConfiguration.h>
#include <acsdkEqualizerInterfaces/EqualizerInterface.h>
#include <InterruptModel/config/InterruptModelConfiguration.h>
#include <algorithm>
#include <cctype>
#include <csignal>

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::sampleApp
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Typedefs

using alexaClientSDK::sampleApp::MediaPlayerInterface = alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerInterface
 
using alexaClientSDK::sampleApp::ApplicationMediaInterfaces = alexaClientSDK::avsCommon::sdkInterfaces::ApplicationMediaInterfaces
 

Functions

static const std::string alexaClientSDK::sampleApp::SAMPLE_APP_CONFIG_KEY ("sampleApp")
 Key for the root node value containing configuration values for SampleApp. More...
 
static const std::string alexaClientSDK::sampleApp::EQUALIZER_CONFIG_KEY ("equalizer")
 Key for the root node value containing configuration values for Equalizer. More...
 
static const std::string alexaClientSDK::sampleApp::FIRMWARE_VERSION_KEY ("firmwareVersion")
 Key for the firmwareVersion value under the SAMPLE_APP_CONFIG_KEY configuration node. More...
 
static const std::string alexaClientSDK::sampleApp::ENDPOINT_KEY ("endpoint")
 Key for the endpoint value under the SAMPLE_APP_CONFIG_KEY configuration node. More...
 
static const std::string alexaClientSDK::sampleApp::DISPLAY_CARD_KEY ("displayCardsSupported")
 Key for setting if display cards are supported or not under the SAMPLE_APP_CONFIG_KEY configuration node. More...
 
static const std::string alexaClientSDK::sampleApp::AUDIO_MEDIAPLAYER_POOL_SIZE_KEY ("audioMediaPlayerPoolSize")
 Key for the Audio MediaPlayer pool size. More...
 
static const std::string alexaClientSDK::sampleApp::TAG ("SampleApplication")
 String to identify log entries originating from this file. More...
 
static alexaClientSDK::avsCommon::utils::logger::Level alexaClientSDK::sampleApp::getLogLevelFromUserInput (std::string userInputLogLevel)
 
static bool alexaClientSDK::sampleApp::ignoreSigpipeSignals ()
 

Variables

static const size_t alexaClientSDK::sampleApp::WORD_SIZE = 2
 The size of each word within the stream. More...
 
static const size_t alexaClientSDK::sampleApp::MAX_READERS = 10
 The maximum number of readers of the stream. More...
 
static const unsigned int alexaClientSDK::sampleApp::AUDIO_MEDIAPLAYER_POOL_SIZE_DEFAULT = 2
 
static const std::chrono::seconds alexaClientSDK::sampleApp::AMOUNT_OF_AUDIO_DATA_IN_BUFFER = std::chrono::seconds(15)
 The amount of audio data to keep in the ring buffer. More...
 
static const std::set< alexaClientSDK::avsCommon::utils::logger::LevelalexaClientSDK::sampleApp::allLevels
 A set of all log levels. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0