Swiftpack.co - mohamedSulaimanAlmarzooqi/swift_tts as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mohamedSulaimanAlmarzooqi.
mohamedSulaimanAlmarzooqi/swift_tts 1.0.0
A SWIFT binding to the tts-rs library
⭐️ 0
🕓 1 week ago
.package(url: "https://github.com/mohamedSulaimanAlmarzooqi/swift_tts.git", from: "1.0.0")


A swift binding to nolan's tts-rs library


To build on windows, You just have to take the tts.dll.lib from the libs/windows directory, Put it at the same directory where you're building you're swift program and build.

Different platforms are not yet tested, But if you want to you can try building the tts-rs library with the feature ffi from this forck

And then you could just put the library at the same location where you're building you're spm package and should work fine, If not submit an issue.


import tts
var t: Tts?
#if os(windows
    t = Tts(Backend.tolk)
    t = Tts()
t.speak("Hello, World.")


Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics