This is a Swift Package Manager package for kotoba_tts.
- inside Xcode, in your project settings, open Package Dependencies
- click add
- paste in a link to this repo
- use the latest release
- add kotoba_tts to the targets that need it
Once it’s integrated, there are two methods for TTS:
int kotoba_generate_tts(const char* model1_path, const char* model2_path, const char* decoder_path, const char* input_text, const char* language_code, int cli_speaker_id, ChunkCallback chunk_callback)
: call this to start TTS.ChunkCallback
will be called with audio samples.void kotoba_warm_tts(const char* model1_path, const char* model2_path, const char* decoder_path)
. call this to warm the implementation after installing the app. this will improve the time to first audio when you call kotoba_generate_tts for the first time after installing your app.
- run
build-package.sh 1.0.0
(or whatever the new version will be) - commit and push the changes
- create a new release for that version and upload the framework .zip
- now you can point SPM at the repo to integrate it with your Xcode project