|
|
@@ -239,6 +239,11 @@ class MainController: UIViewController,WKUIDelegate, WKNavigationDelegate, WKScr
|
|
|
|
|
|
//开启语音识别
|
|
|
@objc func startSpeechMark() {
|
|
|
+ if (!YJSpeechManager.default().microphoneAuthorization()){
|
|
|
+ LGAlertHUD.shareInstance().showInfo(withStatus: "麦克风权限未打开")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ self.webView.evaluateJavaScript("startRecognitionAnima()")
|
|
|
YJSpeechManager.default().startEngine(atRefText: nil, markType: .chineseASR, symbol: true)
|
|
|
YJSpeechManager.default().speechEngineResult { resultModel in
|
|
|
if (resultModel!.isError){
|