Skip to content

emperor-limitless/swift_tts

Repository files navigation

swift_tts

A swift binding to nolan's tts-rs library

Building.

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.

Example

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

About

A SWIFT binding to the tts-rs library

Resources

License

LGPL-2.1, LGPL-3.0 licenses found

Licenses found

LGPL-2.1
LICENSE-NVDA.txt
LGPL-3.0
LICENSE_tolk.txt

Stars

Watchers

Forks

Packages

No packages published