AppDevGuy / OSSSpeechKit

OSSSpeechKit offers a native iOS Speech wrapper for AVFoundation and Apple's Speech.
MIT License
146 stars 37 forks source link

catch the moment when speaking ends #41

Open LuongNgoc19999 opened 1 year ago

LuongNgoc19999 commented 1 year ago

How can I catch the moment when speaking end?

AppDevGuy commented 1 year ago

You can see an example of how to implement that here: CountryLanguageListTableViewController

You need to ensure you've set the delegate

Catch when speaking has ended here.

LuongNgoc19999 commented 1 year ago

Thanks for your answer, but you are getting it wrong when i call speechKit.speakText("text") => my device will start playing the speaker, how do i know the moment when it stops playing

AppDevGuy commented 1 year ago

Now I understand. It looks like I have not implemented that functionality. Looks like it's possible according to the Apple docs though. If it's urgently needed, please fork and implement it and open a PR. If it can wait, I will add it to the backlog to try and implement.