Can I use Text-To-Speech in WatchKit? Basically, I want to play text-based audio on an Apple Watch. How could I achieve this?
Yes, now you can get the class from AVSpeechSynthesizerDelegate and add
import AVFoundation var synth:AVSpeechSynthesizer = AVSpeechSynthesizer.init() synth.delegate = self synth.speak(utterance)
No, you cannot play audio directly from the Apple Watch speaker.
Source: https://habr.com/ru/post/1605708/More articles:Share iOS extension not working - iosSave socket response to string in Perl - stringDelete line in Windows CMD in Perl - cmdLaravel 5 controller naming convention - phphow to add angular radius and addition to multi-line stretchable text - androidHow to programmatically manage a sound card? - pythonHow to combine an array of hashes by prioritizing non-nil values โโ- ruby โโ| fooobar.comHow to convert JSO to JSON? - jsonIs there a general way to find styles that apply to a view? - androidShowing common and specific validation errors at the same time with Ecto - elixirAll Articles