What should I do?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
How do you wait for a AVSpeechSynthesis text to speech to finish to change the state of a Control in SwiftUI?
https://www.hackingwithswift.com/forums/swift/xctest-is-not-documented-paul-s-page-on-xctest-is-unclear/17122
Is there a working, sample code for GroupActivity API for all platforms?
Does anyone have a step-by-step "official" guide to getting MusicKit working with iOS inside Xcode when developing an app in Swift?
This code doesn't work. What should I do when it stops prematurely?
import Foundation
import AVFoundation
print("Hello, World!")
var synthesizer = AVSpeechSynthesizer()
let utterance = AVSpeechUtterance(string: "Hello World!")
utterance.voice = AVSpeechSynthesisVoice(identifier: "com.apple.speech.synthesis.voice.samantha.premium")
utterance.rate = 0.5
synthesizer.speak(utterance)
print("Done.")
Topic:
App & System Services
SubTopic:
General
Tags:
Foundation
Swift
Command Line Tools
AVFoundation