inflect_micro_v2 / cpp /src /wav_writer.h
inoryQwQ's picture
三芯片合并:AX620E/AX637 升级 encoder+decoder 全 NPU,新增新一代 SDK;AX650 保持老 SDK
5eee449 verified
Raw
History Blame Contribute Delete
228 Bytes
#pragma once
#include <string>
#include <vector>
// Write float32 mono samples in [-1, 1] as 16-bit PCM WAV.
void write_wav(const std::string& path, const std::vector<float>& waveform,
int sample_rate = 24000);