【发布时间】:2017-02-01 02:32:12
【问题描述】:
我尝试导入 watchOS 的 SpeechKit 框架并收到错误消息。有没有办法在手表上使用它?导入 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.发布你的代码并错误你得到什么。
-
我已经添加了代码和错误信息
标签: ios watchkit watchos-3 speechkit