Have been working on a language learning app on macOS. Realized that there’s no usable edge-tts package for Swift. So I made one. SwiftEdgeTTS
It is expected to be working the same way as the Python package edge-tts, but without any Python dependencies.
Example usage:
import SwiftEdgeTTS
let ttsService = EdgeTTSService()
let outputURL = FileManager.default.temporaryDirectory
.appendingPathComponent("output.mp3")
let audioURL = try await ttsService.synthesize(
text: "Hello, world!",
voice: "en-US-JennyNeural",
outputURL: outputURL
)