




















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
)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。