WatchKit: Speech to text conversion in WatchKit Apps

后端 未结 3 826
孤城傲影
孤城傲影 2020-12-19 07:39

Can any one help me with a sample code for adding Speech to Text conversion feature in Apple Watchkit apps.

3条回答
  •  感动是毒
    2020-12-19 07:54

    self.presentTextInputControllerWithSuggestions(["Y","N"], allowedInputMode: WKTextInputMode.Plain,
        completion:{(results) -> Void in
            let aResult = results?[0] as? String
            print(aResult)
    })
    

提交回复
热议问题