A compact autoregressive text-to-speech (TTS) model for efficient local synthesis.
mlx-audio-swift-tts --model mlx-community/Soprano-80M-bf16 --text "Hello world."import MLXAudioTTS
let model = try await SopranoModel.fromPretrained("mlx-community/Soprano-80M-bf16")
let audio = try await model.generate(
text: "Hello world.",
parameters: GenerateParameters()
)- The
voiceargument is currently unused in the baseSopranoModelimplementation.