Skip to content

PocketTTS non-English languages Cloned voice #793

Description

@iami2

Do the non-English language in Pocket-TTS support synthize with cloned voice? I am able to run the code below and generate .english TTS successfully but when generating any of the other languages, I get an audio file with just noise.

                let manager = PocketTtsManager(language: .spanish, directory: modelDirectory, placement: .gpu)
                try await manager.initialize()

                let voiceURL = Bundle.main.url(forResource: "sample voice", withExtension: "m4a")!
                let voice = try await manager.cloneVoice(from: voiceURL)
                
                let dataURL = FileManager.default.temporaryDirectory
                    .appendingPathComponent(UUID().uuidString)
                    .appendingPathExtension("wav")
                let data = try await manager.synthesize(text: "Hola, Que Tal?  Como andas?  Todo bien?", voiceData: voice, temperature: 0.3)//, )
                try data.write(to: dataURL)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions