[Base on 1.2.6.0] add LWA && UI && others features for customer
This commit is contained in:
parent
7f9b5b7885
commit
3d9918072f
.gitignore
Integration
README.mdapplications/acsdkDefaultSampleApplicationOptions/src
shared/KWD/acsdkKWDProvider/src
srcs
ACL
CMakeLists.txt
include/ACL
AVSConnectionManager.h
Transport
DownchannelHandler.hExchangeHandler.hExchangeHandlerContextInterface.hHTTP2Transport.hHTTP2TransportFactory.hMessageConsumerInterface.hMessageRequestHandler.hMessageRequestQueue.hMessageRequestQueueInterface.hMessageRouter.hMessageRouterFactory.hMessageRouterFactoryInterface.hMessageRouterInterface.hMessageRouterObserverInterface.hMimeResponseSink.hMimeResponseStatusHandlerInterface.hPingHandler.hPostConnectFactoryInterface.hPostConnectInterface.hPostConnectObserverInterface.hPostConnectSequencer.hPostConnectSequencerFactory.hSynchronizedMessageRequestQueue.hTransportDefines.hTransportFactoryInterface.hTransportInterface.hTransportObserverInterface.h
src
AVSConnectionManager.cppCMakeLists.txt
Transport
DownchannelHandler.cppExchangeHandler.cppHTTP2Transport.cppHTTP2TransportFactory.cppMessageRequestHandler.cppMessageRequestQueue.cppMessageRouter.cppMessageRouterFactory.cppMimeResponseSink.cppPingHandler.cppPostConnectSequencer.cppPostConnectSequencerFactory.cppSynchronizedMessageRequestQueue.cppTransportDefines.cpp
test
AVSConnectionManagerTest.cppCMakeLists.txt
Transport
CMakeLists.txt
Common
CMakeLists.txtMockHTTP2Connection.cppMockHTTP2Request.cppMockMimeResponseSink.cppTestMessageRequestObserver.cpp
HTTP2TransportTest.cppMessageRequestHandlerTest.cppMessageRouterTest.cppMessageRouterTest.hMockAuthDelegate.hMockEventTracer.hMockHTTP2Connection.hMockHTTP2Request.hMockMessageConsumer.hMockMessageRequest.hMockMessageRouterObserver.hMockMimeResponseSink.hMockPostConnect.hMockPostConnectFactory.hMockPostConnectObserver.hMockPostConnectOperation.hMockPostConnectOperationProvider.hMockTransport.hMockTransportObserver.hPostConnectSequencerFactoryTest.cppPostConnectSequencerTest.cppTestMessageRequestObserver.hTestableConsumer.hADSL
|
@ -5,3 +5,12 @@
|
|||
Integration/AuthDelegate.config
|
||||
#macOS specific files
|
||||
.DS_Store
|
||||
.vscode
|
||||
/build/
|
||||
/cmake-build-debug-aarch64/
|
||||
/cmake-build-debug-x86_64/
|
||||
|
||||
GPATH
|
||||
GRTAGS
|
||||
GTAGS
|
||||
/cmake-build-debug*/
|
||||
|
|
|
@ -1,83 +0,0 @@
|
|||
/// This configuration file contains the minimum configurations required for the SDK Sample App.
|
||||
///
|
||||
/// More configuration options are available, which are not mentioned here.
|
||||
/// See https://developer.amazon.com/en-US/docs/alexa/avs-device-sdk/alexa-client-sdk-config-json.html
|
||||
/// to learn more about configuration options and default behaviours.
|
||||
{
|
||||
"cblAuthDelegate":{
|
||||
"databaseFilePath":"${SDK_CBL_AUTH_DELEGATE_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"deviceInfo":{
|
||||
"deviceSerialNumber":"${SDK_CONFIG_DEVICE_SERIAL_NUMBER}",
|
||||
"clientId":"${SDK_CONFIG_CLIENT_ID}",
|
||||
"productId":"${SDK_CONFIG_PRODUCT_ID}",
|
||||
"manufacturerName": "${SDK_CONFIG_MANUFACTURER_NAME}",
|
||||
"description": "${SDK_CONFIG_DEVICE_DESCRIPTION}"
|
||||
},
|
||||
"capabilitiesDelegate":{
|
||||
"databaseFilePath":"${SDK_CAPABILITIES_DELEGATE_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"miscDatabase":{
|
||||
"databaseFilePath":"${SDK_MISC_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"alertsCapabilityAgent":{
|
||||
"databaseFilePath":"${SDK_SQLITE_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"lwaAuthorization":{
|
||||
"databaseFilePath":"${SDK_LWA_AUTHORIZATION_ADAPTER_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"speakerManagerCapabilityAgent":{
|
||||
"defaultSpeakerVolume":40,
|
||||
"defaultAlertsVolume":40,
|
||||
"restoreMuteState":true
|
||||
},
|
||||
"pkcs11Module":{
|
||||
"libraryPath":"${SDK_PKCS11_MODULE_PATH}",
|
||||
"tokenName":"${SDK_PKCS11_TOKEN_NAME}",
|
||||
"userPin":"${SDK_PKCS11_USER_PIN}",
|
||||
"defaultKeyName":"${SDK_PKCS11_KEY_NAME}"
|
||||
},
|
||||
"deviceSettings":{
|
||||
"databaseFilePath":"${SDK_SQLITE_DEVICE_SETTINGS_DATABASE_FILE_PATH}",
|
||||
"locales":["en-US","en-GB","de-DE","en-IN","en-CA","ja-JP","en-AU","fr-FR","it-IT","es-ES","es-MX","fr-CA",
|
||||
"es-US", "hi-IN", "pt-BR", "ar-SA"],
|
||||
"defaultLocale":"en-US",
|
||||
"localeCombinations":[
|
||||
["en-US", "es-US"],
|
||||
["es-US", "en-US"],
|
||||
["en-US", "fr-FR"],
|
||||
["fr-FR", "en-US"],
|
||||
["en-US", "de-DE"],
|
||||
["de-DE", "en-US"],
|
||||
["en-US", "ja-JP"],
|
||||
["ja-JP", "en-US"],
|
||||
["en-US", "it-IT"],
|
||||
["it-IT", "en-US"],
|
||||
["en-US", "es-ES"],
|
||||
["es-ES", "en-US"],
|
||||
["en-IN", "hi-IN"],
|
||||
["hi-IN", "en-IN"],
|
||||
["fr-CA", "en-CA"],
|
||||
["en-CA", "fr-CA"]
|
||||
],
|
||||
"defaultTimezone":"America/Vancouver"
|
||||
},
|
||||
"bluetooth" : {
|
||||
"databaseFilePath":"${SDK_BLUETOOTH_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"certifiedSender":{
|
||||
"databaseFilePath":"${SDK_CERTIFIED_SENDER_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"notifications":{
|
||||
"databaseFilePath":"${SDK_NOTIFICATIONS_DATABASE_FILE_PATH}"
|
||||
},
|
||||
"externalMediaPlayer": {
|
||||
"agentString": "CQCAFYNYDC"
|
||||
},
|
||||
"sampleApp": {
|
||||
"displayCardsSupported":true,
|
||||
"sensory": {
|
||||
"modelFilePath": "${SDK_SENSORY_MODEL_FILE_PATH}"
|
||||
}
|
||||
}
|
||||
}
|
42
README.md
42
README.md
|
@ -1,42 +0,0 @@
|
|||
### What is the Alexa Voice Service (AVS)?
|
||||
|
||||
The Alexa Voice Service (AVS) enables developers to integrate Alexa directly into their products, bringing the convenience of voice control to any connected device. AVS provides developers with access to a suite of resources to build Alexa-enabled products, including APIs, hardware development kits, software development kits, and documentation.
|
||||
|
||||
[Learn more »](https://developer.amazon.com/alexa-voice-service)
|
||||
|
||||
### What is the AVS Device SDK
|
||||
|
||||
The Alexa Voice Service (AVS) Device SDK provides you with a set of C ++ libraries to build an Alexa Built-in product, meaning your device has direct access to cloud-based Alexa capabilities to receive voice responses instantly. Your device can be almost anything – a smartwatch, a speaker, headphones – the choice is yours.
|
||||
|
||||
[Learn more »](https://developer.amazon.com/docs/alexa/avs-device-sdk/overview.html)
|
||||
|
||||
### Release Notes and Known Issues
|
||||
|
||||
Feature enhancements, updates, and resolved issues from all releases are available on the [Amazon developer portal](https://developer.amazon.com/docs/alexa/avs-device-sdk/release-notes.html).
|
||||
|
||||
### Get Started
|
||||
|
||||
You can set up the SDK on the following platforms:
|
||||
* [Ubuntu Linux](https://developer.amazon.com/docs/alexa/avs-device-sdk/ubuntu.html)
|
||||
* [Raspberry Pi](https://developer.amazon.com/docs/alexa/avs-device-sdk/raspberry-pi.html)
|
||||
* [macOS](https://developer.amazon.com/docs/alexa/avs-device-sdk/mac-os.html)
|
||||
* [Windows 64-bit](https://developer.amazon.com/docs/alexa/avs-device-sdk/windows-64.html)
|
||||
* [Generic Linux](https://developer.amazon.com/docs/alexa/avs-device-sdk/linux.html)
|
||||
* [Android](https://developer.amazon.com/docs/alexa/avs-device-sdk/android.html)
|
||||
|
||||
### SDK Architecture
|
||||
|
||||
The SDK is modular and abstract. It provides [separate components](https://developer.amazon.com/docs/alexa/avs-device-sdk/overview.html#sdk-architecture) to handle necessary Alexa functionality including processing audio, maintaining persistent connections, and managing Alexa interactions. Each component exposes [Alexa APIs](https://developer.amazon.com/docs/alexa/alexa-voice-service/api-overview.html) to customize your device integrations as needed. The SDK also includes a Sample App, so you can test interactions before integration.
|
||||
|
||||
[Learn more »](https://developer.amazon.com/docs/alexa/avs-device-sdk/overview.html#sdk-architecture)
|
||||
|
||||
### API References
|
||||
|
||||
View the [C++ API References](https://alexa.github.io/avs-device-sdk/) for detailed information about implementation.
|
||||
|
||||
### Security Best Practices and Important Considerations
|
||||
|
||||
All Alexa products should adopt the [Security Best Practices for Alexa](https://developer.amazon.com/docs/alexa/alexa-voice-service/security-best-practices.html).
|
||||
|
||||
When building Alexa with the SDK, you should also adhere to the [following security principles](https://developer.amazon.com/docs/alexa/avs-device-sdk/overview.html#security-best-practices).
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
add_definitions("-DACSDK_LOG_MODULE=acsdkDefaultSampleApplicationOptions")
|
||||
add_library(acsdkDefaultSampleApplicationOptions
|
||||
DefaultSampleApplicationOptionsComponent.cpp)
|
||||
|
||||
target_include_directories(acsdkDefaultSampleApplicationOptions PUBLIC
|
||||
"${acsdkDefaultSampleApplicationOptions_SOURCE_DIR}/include")
|
||||
|
||||
target_link_libraries(acsdkDefaultSampleApplicationOptions
|
||||
acsdkCore
|
||||
acsdkManufactory
|
||||
acsdkNullMetricRecorder
|
||||
acsdkSampleApplicationInterfaces
|
||||
acsdkSampleApplicationCBLAuthRequester
|
||||
acsdkShared
|
||||
CBLAuthDelegate)
|
||||
|
||||
# install target
|
||||
asdk_install()
|
|
@ -1,55 +0,0 @@
|
|||
/*
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License").
|
||||
* You may not use this file except in compliance with the License.
|
||||
* A copy of the License is located at
|
||||
*
|
||||
* http://aws.amazon.com/apache2.0/
|
||||
*
|
||||
* or in the "license" file accompanying this file. This file is distributed
|
||||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
||||
* express or implied. See the License for the specific language governing
|
||||
* permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
#include <AVSCommon/Utils/Logger/Logger.h>
|
||||
|
||||
#include "KWDProvider/KeywordDetectorProvider.h"
|
||||
|
||||
using namespace alexaClientSDK;
|
||||
using namespace alexaClientSDK::kwd;
|
||||
|
||||
/// String to identify log entries originating from this file.
|
||||
static const std::string TAG{"KeywordDetectorProvider"};
|
||||
|
||||
/**
|
||||
* Create a LogEntry using this file's TAG and the specified event string.
|
||||
*
|
||||
* @param The event string for this @c LogEntry.
|
||||
*/
|
||||
#define LX(event) alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
|
||||
|
||||
KeywordDetectorProvider::KWDCreateMethod m_kwdCreateFunction;
|
||||
|
||||
KeywordDetectorProvider::KWDRegistration::KWDRegistration(KWDCreateMethod createFunction) {
|
||||
if (m_kwdCreateFunction) {
|
||||
ACSDK_ERROR(LX(__func__).m("KeywordDetector already registered"));
|
||||
return;
|
||||
}
|
||||
m_kwdCreateFunction = createFunction;
|
||||
}
|
||||
|
||||
std::unique_ptr<acsdkKWDImplementations::AbstractKeywordDetector> KeywordDetectorProvider::create(
|
||||
std::shared_ptr<avsCommon::avs::AudioInputStream> stream,
|
||||
avsCommon::utils::AudioFormat audioFormat,
|
||||
std::unordered_set<std::shared_ptr<avsCommon::sdkInterfaces::KeyWordObserverInterface>> keyWordObservers,
|
||||
std::unordered_set<std::shared_ptr<avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface>>
|
||||
keyWordDetectorStateObservers) {
|
||||
if (m_kwdCreateFunction) {
|
||||
return m_kwdCreateFunction(stream, audioFormat, keyWordObservers, keyWordDetectorStateObservers);
|
||||
} else {
|
||||
ACSDK_ERROR(LX(__func__).m("KeywordDetector create not found"));
|
||||
return nullptr;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue