我試圖導入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