我试图导入WatchOS的SpeechKit框架并收到一个错误。有没有办法与手表一起使用?我得到一个错误,当我导入Speechkit框架说:“没有这样的模块讲话”WatchOS 3是否支持SpeechKit框架?
import WatchKit
import Foundation
import Speech
class SpeechInterfaceController: WKInterfaceController, SFSpeechRecognizerDelegate {
override func awake(withContext context: Any?) {
super.awake(withContext: context)
// Configure interface objects here.
}
override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
}
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
}
Pl。发布您的代码并错误地获得。 –
我添加了代码和错误消息 – Derivative