reduce maxTokens to 45 for 3s bucket compatibility
This commit is contained in:
@@ -42,7 +42,8 @@ final class KokoroPipeline {
|
||||
}
|
||||
|
||||
func synthesize(text: String) throws -> [Float] {
|
||||
let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 512)
|
||||
// 3s bucket can handle ~45 phonemes at normal speed
|
||||
let (phonemes, tokenIdsAll, unknown, phonemeScalarCount) = try prepareTokens(from: text, maxTokens: 45)
|
||||
if !unknown.isEmpty {
|
||||
print("KokoroTokenizer unknown tokens: \(unknown.prefix(20))")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user