16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_WAVUTILS_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_WAVUTILS_H_ 30 constexpr
const char*
ID_FMT =
"fmt ";
110 unsigned int bytesPerSample,
111 unsigned int channels,
113 std::chrono::milliseconds totalDuration,
128 std::vector<uint16_t>* audioBuffer,
136 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_WAVUTILS_H_
constexpr unsigned int SAMPLE_RATE_OFFSET
Definition: WavUtils.h:57
constexpr unsigned int CB_SZ_OFFSET
Definition: WavUtils.h:65
constexpr uint16_t BITS_PER_BYTE
Definition: WavUtils.h:36
constexpr uint32_t PCM_SUBCHUNK_SZ
Definition: WavUtils.h:32
constexpr unsigned int AUDIO_FORMAT_OFFSET
Definition: WavUtils.h:55
::std::string string
Definition: gtest-port.h:1097
constexpr uint32_t FLOAT_SUBCHUNK_SZ
Definition: WavUtils.h:41
constexpr uint16_t PLAY_BITS_PER_SAMPLE
Definition: WavUtils.h:37
constexpr const char * ID_FACT
Definition: WavUtils.h:43
constexpr unsigned int RIFF_FMT_OFFSET
Definition: WavUtils.h:52
constexpr unsigned int FACT_SZ_OFFSET
Definition: WavUtils.h:67
constexpr unsigned int NUM_CHANNELS_OFFSET
Definition: WavUtils.h:56
constexpr unsigned int PCM_HEADER_SIZE
Definition: WavUtils.h:46
constexpr unsigned int FMT_SZ_OFFSET
Definition: WavUtils.h:54
ByteVector generateWavHeader(unsigned int bytesPerSample, unsigned int channels, unsigned int rate, std::chrono::milliseconds totalDuration, bool isPCM=true)
constexpr unsigned int RIFF_SZ_OFFSET
Definition: WavUtils.h:51
constexpr uint16_t FORMAT_PCM
Definition: WavUtils.h:35
constexpr unsigned int FACT_SAMPLE_LEN_OFFSET
Definition: WavUtils.h:68
std::vector< unsigned char > ByteVector
Definition: WavUtils.h:73
constexpr const char * ID_DATA
Definition: WavUtils.h:31
constexpr unsigned int FMT_ID_OFFSET
Definition: WavUtils.h:53
bool readWAVFile(const std::string &absoluteFilePath, std::vector< uint16_t > *audioBuffer, WavHeader &wavHeader, bool isPCM=true)
constexpr uint16_t FORMAT_IEEE_FLOAT
Definition: WavUtils.h:40
constexpr unsigned int FACT_ID_OFFSET
Definition: WavUtils.h:66
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
constexpr unsigned int RIFF_ID_OFFSET
Definition: WavUtils.h:50
constexpr unsigned int BYTE_RATE_OFFSET
Definition: WavUtils.h:58
constexpr unsigned int DATA_ID_OFFSET
Definition: WavUtils.h:61
constexpr const char * ID_FMT
Definition: WavUtils.h:30
constexpr unsigned int NON_PCM_OFFSET
Definition: WavUtils.h:71
constexpr unsigned int DATA_SZ_OFFSET
Definition: WavUtils.h:62
constexpr unsigned int NON_PCM_HEADER_SIZE
Definition: WavUtils.h:47
constexpr unsigned int BLOCK_ALIGN_OFFSET
Definition: WavUtils.h:59
constexpr const char * ID_RIFF
Definition: WavUtils.h:28
constexpr uint32_t FACT_CHUNK_SZ
Definition: WavUtils.h:42
constexpr const char * ID_WAVE
Definition: WavUtils.h:29
constexpr unsigned int BITS_PER_SAMPLE_OFFSET
Definition: WavUtils.h:60