increase maxTokens from 96 to 512 to fix text truncation
This commit is contained in:
@@ -42,7 +42,7 @@ final class KokoroPipeline {
|
||||
}
|
||||
|
||||
func synthesize(text: String) throws -> [Float] {
|
||||
let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 96)
|
||||
let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 512)
|
||||
if !unknown.isEmpty {
|
||||
print("KokoroTokenizer unknown tokens: \(unknown.prefix(20))")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user