AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
DiagnosticsUtils.cpp File Reference
#include "Diagnostics/DiagnosticsUtils.h"
#include <fstream>
#include <AVSCommon/Utils/Logger/Logger.h>
Include dependency graph for DiagnosticsUtils.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::diagnostics
 
 alexaClientSDK::diagnostics::utils
 

Macros

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

Functions

static const std::string alexaClientSDK::diagnostics::utils::TAG ("DiagnosticsUtils")
 String to identify log entries originating from this file. More...
 
bool alexaClientSDK::diagnostics::utils::validateAudioFormat (const avsCommon::utils::WavHeader &wavHeader)
 
bool alexaClientSDK::diagnostics::utils::readWavFileToBuffer (const std::string &absoluteFilePath, std::vector< uint16_t > *audioBuffer)
 

Variables

static constexpr unsigned int alexaClientSDK::diagnostics::utils::NUM_BITS_PER_SAMPLE = 16
 Constant indicating the number of bits per sample. More...
 
static constexpr unsigned int alexaClientSDK::diagnostics::utils::NUM_OF_AUDIO_CHANNELS = 1
 Constant indicating the number of audio channels supported. More...
 
static constexpr unsigned int alexaClientSDK::diagnostics::utils::SAMPLES_PER_SECOND = 16000
 Constant indicating the Samples per second supported. More...
 
static constexpr unsigned int alexaClientSDK::diagnostics::utils::LPCM_AUDIO_FORMAT = 1
 Constant indicating the LPCM audio format in the WAV file header. 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