Add C API for MatchaTTS models (#1675)

This commit is contained in:
Fangjun Kuang
2025-01-03 12:17:26 +08:00
committed by GitHub
parent a4365dad82
commit 9aa4897a9e
7 changed files with 260 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ struct OfflineTtsConfig {
// Maximum number of sentences that we process at a time.
// This is to avoid OOM for very long input text.
// If you set it to -1, then we process all sentences in a single batch.
int32_t max_num_sentences = 2;
int32_t max_num_sentences = 1;
OfflineTtsConfig() = default;
OfflineTtsConfig(const OfflineTtsModelConfig &model,