Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is text-to-speech possible with Apple Watch WatchKit?

Is Text-To-Speech possible in WatchKit? Basically, I want to play audio based on text on an Apple Watch. How could I achieve this?

like image 668
Ashish Verma Avatar asked Sep 03 '15 10:09

Ashish Verma


1 Answers

Yes you can now derive you class from AVSpeechSynthesizerDelegate, and add

import AVFoundation

var synth:AVSpeechSynthesizer = AVSpeechSynthesizer.init()
synth.delegate = self
synth.speak(utterance)
like image 57
altagir Avatar answered Sep 24 '22 03:09

altagir