Audio processing

Low-level RIFF/WAVE waveform tensor extractor and channel deinterleaver (AudioProcessor.hpp).

class AudioProcessor JBit · DataProcessor/Audio/AudioProcessor.hpp · 3 members

Parses PCM, IEEE Float, and Mu-Law WAV streams into normalized float vectors.

std::vector<float> waveToTensor(const std::string& filename);
std::vector<std::vector<float>> deinterleave(const std::vector<float>& interleavedTensor, uint16_t channels);
uint16_t getChannels() const / uint32_t getSampleRate() const / uint16_t getBitDepth() const / std::string getFormatString() const;