sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

Import Piper / VITS as iOS Custom System Voices for TTS using AVSpeechSynthesisProviderAudioUnit Extension in Swift

Open S-Ali-Zaidi opened this issue 1 year ago • 2 comments

In recent iOS updates, Apple now allows for any speech synthesizers brought into iOS via an App to become a part of the custom options for the iOS system voices for TTS, using the AVSpeechSynthesisProviderVoice and AVSpeechSynthesisProviderAudioUnit:

See:

This functionality has been implemented by the official espeak-ng iOS app, you can see how it was done in extensions directory of their iOS app source code

There is also a repo that has built out a similar functionality around espeak-ng and piper for iOS here

Wondering if we can see this implemented within Sherpa-onnx too?

S-Ali-Zaidi avatar Jun 08 '24 06:06 S-Ali-Zaidi

Would you like to contribute?

We have done that for Android.

csukuangfj avatar Jun 08 '24 07:06 csukuangfj

I think you’d be better forking that iOS piper code. I built something similar and scrapped it because of that code. As piper is vits we should be able to largely use the same thing. We need this too

willwade avatar Jul 24 '24 17:07 willwade