Add TTS for node-addon-api (#871)

This commit is contained in:
Fangjun Kuang
2024-05-13 19:24:09 +08:00
committed by GitHub
parent 740d7ae9d6
commit 031134b4d4
21 changed files with 691 additions and 10 deletions

View File

@@ -823,7 +823,7 @@ SHERPA_ONNX_API int32_t
SherpaOnnxOfflineTtsNumSpeakers(const SherpaOnnxOfflineTts *tts);
// Generate audio from the given text and speaker id (sid).
// The user has to use DestroyOfflineTtsGeneratedAudio() to free the
// The user has to use SherpaOnnxDestroyOfflineTtsGeneratedAudio() to free the
// returned pointer to avoid memory leak.
SHERPA_ONNX_API const SherpaOnnxGeneratedAudio *SherpaOnnxOfflineTtsGenerate(
const SherpaOnnxOfflineTts *tts, const char *text, int32_t sid,