Add Kokoro v1.1-zh (#1942)
This commit is contained in:
@@ -33,8 +33,8 @@ GeneratedAudio GeneratedAudio::ScaleSilence(float scale) const {
|
||||
if (scale == 1) {
|
||||
return *this;
|
||||
}
|
||||
// if the interval is larger than 0.6 second, then we assume it is a pause
|
||||
int32_t threshold = static_cast<int32_t>(sample_rate * 0.6);
|
||||
// if the interval is larger than 0.2 second, then we assume it is a pause
|
||||
int32_t threshold = static_cast<int32_t>(sample_rate * 0.2);
|
||||
|
||||
std::vector<SilenceInterval> intervals;
|
||||
int32_t num_samples = static_cast<int32_t>(samples.size());
|
||||
|
||||
Reference in New Issue
Block a user