zphhhhh / react-native-speech-iflytek Goto Github PK
View Code? Open in Web Editor NEWReact Native 下的科大讯飞语音库,可以进行语音识别与语音合成
License: MIT License
React Native 下的科大讯飞语音库,可以进行语音识别与语音合成
License: MIT License
app reload无法再次语音识别 ,但是可以发音;
而且Recognizer.isListening()为true,大神有没有遇到这个问题?
从官网上下载了对应的lib,然后把里面的framework替换了一下,xcode中的framework我也删掉再加入了一下,但是在运行的时候会报10122的错误,查了文档是加载模块错误。。但是不太清楚这个错误是因为触发的。。
android上,js 代码中无法接收到如onRecognizerResult的事件。。。包括 onRecognizerVolumeChanged
@zphhhhh @2534290808 麻烦您帮忙查一下,多谢。
2018-11-15 21:55:46.282 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerResult",{"duration":12207,"isLast":true,"result":"1234512345。","text":"。"}])
2018-11-15 21:55:34.307 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:34.946 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 16 lines
2018-11-15 21:55:34.987 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.029 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.068 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.107 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.148 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":2}])
2018-11-15 21:55:35.187 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":2}])
2018-11-15 21:55:35.227 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":4}])
2018-11-15 21:55:35.267 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":2}])
2018-11-15 21:55:35.307 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":1}])
2018-11-15 21:55:35.346 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.386 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 1 line
2018-11-15 21:55:35.426 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.466 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":1}])
2018-11-15 21:55:35.506 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":4}])
2018-11-15 21:55:35.546 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":3}])
2018-11-15 21:55:35.586 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":1}])
2018-11-15 21:55:35.626 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:35.987 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 9 lines
2018-11-15 21:55:36.027 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.068 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.106 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.146 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.186 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.227 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.241 12732-13122/com.example V/AudioManager: playSoundEffect effectType: 0
2018-11-15 21:55:36.267 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.747 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 12 lines
2018-11-15 21:55:36.786 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.826 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB
2018-11-15 21:55:36.826 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:36.827 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB AttachCurrentThread
JNI_IsrResultCB get result chararray
JNI_IsrResultCB get sessionID chararray
JNI_IsrResultCB CallVoidMethod
2018-11-15 21:55:36.828 12732-12841/com.example D/MscRecognizer: rsltCb:0result:{"sn":1,"ls":false,"bg":0,"ed":0,"ws":[{"bg":0,"cw":[{"sc":0.0,"w":"12345"}]}]}
2018-11-15 21:55:36.828 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB DetachCurrentThread
2018-11-15 21:55:36.829 12732-13727/com.example D/MscSpeechLog: msc result time:1542290136829
2018-11-15 21:55:36.831 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerResult",{"duration":2756,"isLast":false,"result":"1234512345","text":"12345"}])
2018-11-15 21:55:36.867 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:37.027 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 4 lines
2018-11-15 21:55:37.067 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:37.107 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:38.107 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 25 lines
2018-11-15 21:55:38.147 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:38.187 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.027 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 21 lines
2018-11-15 21:55:39.067 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.107 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.147 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.187 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.227 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.666 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 11 lines
2018-11-15 21:55:39.707 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.747 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:39.949 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 5 lines
2018-11-15 21:55:39.988 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.027 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.187 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 4 lines
2018-11-15 21:55:40.227 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.269 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.306 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.346 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.385 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 1 line
2018-11-15 21:55:40.426 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.466 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.506 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:40.547 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:41.028 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 12 lines
2018-11-15 21:55:41.069 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:41.107 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:41.507 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 10 lines
2018-11-15 21:55:41.547 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:41.588 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.029 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 11 lines
2018-11-15 21:55:42.069 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.110 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.149 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.189 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.230 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.269 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:42.987 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 18 lines
2018-11-15 21:55:43.027 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.067 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.108 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.747 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.786 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.825 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 1 line
2018-11-15 21:55:43.866 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.906 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.946 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:43.986 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.026 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.066 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.106 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.147 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.185 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.226 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.306 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 2 lines
2018-11-15 21:55:44.346 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.386 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.426 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.466 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.506 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.546 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.586 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.626 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.666 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.706 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:44.946 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 6 lines
2018-11-15 21:55:44.986 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.027 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.066 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.106 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.146 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.188 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.227 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:45.267 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:46.149 12732-12732/com.example I/chatty: uid=10326(u0_a326) com.example identical 22 lines
2018-11-15 21:55:46.190 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerVolumeChanged",{"volume":0}])
2018-11-15 21:55:46.190 12732-12841/com.example D/MSC_LOG: JNI_IsrStatusCB
JNI_IsrStatusCB AttachCurrentThread
2018-11-15 21:55:46.191 12732-12841/com.example D/MSC_LOG: JNI_IsrStatusCB get sessionID chararray
2018-11-15 21:55:46.192 12732-12841/com.example D/MSC_LOG: JNI_IsrStatusCB get param2 bytearray
JNI_IsrStatusCB CallVoidMethod
2018-11-15 21:55:46.192 12732-12841/com.example D/MscRecognizer: stusCb:3,type:0
2018-11-15 21:55:46.192 12732-12841/com.example D/MscSpeechLog: Msc recognize vadEndCall
2018-11-15 21:55:46.193 12732-12841/com.example D/MscSpeechLog: stopRecognize, current status is :recording usercancel : false
stop record
curStatus=recording,setStatus=waitresult
2018-11-15 21:55:46.194 12732-12841/com.example D/MscSpeechLog: setStatus success=waitresult
2018-11-15 21:55:46.194 12732-12841/com.example D/MSC_LOG: JNI_IsrStatusCB DetachCurrentThread
2018-11-15 21:55:46.194 12732-13727/com.example D/MscSpeechLog: recording stop
IsrSession pushEndFlag
2018-11-15 21:55:46.225 12732-13728/com.example D/MscSpeechLog: release record begin
2018-11-15 21:55:46.225 12732-13728/com.example E/HwCustAudioRecordImpl: isOpenEC : false
2018-11-15 21:55:46.255 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB
JNI_IsrResultCB AttachCurrentThread
2018-11-15 21:55:46.256 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB get result chararray
JNI_IsrResultCB get sessionID chararray
JNI_IsrResultCB CallVoidMethod
2018-11-15 21:55:46.256 12732-12841/com.example D/MscRecognizer: rsltCb:5result:{"sn":2,"ls":true,"bg":0,"ed":0,"ws":[{"bg":0,"cw":[{"sc":0.0,"w":"。"}]}]}
2018-11-15 21:55:46.256 12732-12841/com.example D/MSC_LOG: JNI_IsrResultCB DetachCurrentThread
2018-11-15 21:55:46.277 12732-13727/com.example D/MscSpeechLog: start abandon audio focus
2018-11-15 21:55:46.278 12732-13727/com.example V/AudioManager: unregisterAudioFocusListener...
2018-11-15 21:55:46.278 12732-13727/com.example I/AudioManager: abandonAudioFocus
2018-11-15 21:55:46.280 12732-13727/com.example D/MscSpeechLog: msc result time:1542290146280
DC getEnable enter.
DC getEnable static value=true
getMscParameter enter key=idc
2018-11-15 21:55:46.281 12732-13727/com.example D/MscSpeechLog: getMscParameter value=dx
getMscParameter leave
DC getEnable msc val=dx
DC getEnable value=false
DC getEnable leave.
curStatus=waitresult,setStatus=exiting
setStatus success=exiting
2018-11-15 21:55:46.282 12732-13727/com.example D/MscSpeechLog: onSessionEnd
2018-11-15 21:55:46.282 12732-12732/com.example W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerResult",{"duration":12207,"isLast":true,"result":"1234512345。","text":"。"}])
2018-11-15 21:55:46.284 12732-13727/com.example D/MSC_LOG: QISRSetParam Begin
我按照readme 的步骤,在安卓端总是提示 用户校验失败,错误码10407,请问是否需要其他配置?
iOS 能不能像安卓同样能输出.wav格式?
按照作者的Usage的方法如下:
Recognizer.init("57c7c5b0");
this.recognizerEventEmitter = new NativeEventEmitter(Recognizer);
this.recognizerEventEmitter.addListener('onRecognizerResult', this.onRecognizerResult);
Recognizer.start();
没能进入此方法
synthesizerEventEmitter.addListener('onSynthesizerBufferCompletedEvent', (result)=>{
console.log(result); // {"content": null, "filename": null}
});
求帮助!
react-native 版本0.56.0的,想做语音合成
Synthesizer.start();的时候报的这个错,不知道怎么回事儿
isSpeaking 返回false
能不能帮忙看看= =
您好,你这个语音识别有支持离线的吗?
1.原私人账号可以正常播报
2.现在使用公司账号,按照流程操作播报不了
3.再把包替换回去,用私人账号就可以正常播报,用公司账号下面的包就不行,是有什么问题吗?
经过测试是 Synthesizer.init 的时候报的错
代码如下:
constructor(props) {
super(props)
Synthesizer.init("5a5b697b")
}
componentDidMount() {
this.synthesizerEventEmitter = new NativeEventEmitter(Synthesizer);
this.synthesizerEventEmitter.addListener('onSynthesizerBufferCompletedEvent', (e) => {
});
this.synthesizerEventEmitter.addListener('onSynthesizerSpeakCompletedEvent', (e) => {
});
}
报错信息如下
Attempt to invoke virtual method 'boolean com.iflytek.cloud.SpeechSynthesizer.setParameter(java.lang.String, java.lang.String)' on a null object reference
setTtsParam
SpeechSynthesizerModule.java:183
init
SpeechSynthesizerModule.java:108
invoke
Method.java
invoke
JavaMethodWrapper.java:372
invoke
JavaModuleWrapper.java:160
run
NativeRunnable.java
handleCallback
Handler.java:751
dispatchMessage
Handler.java:95
dispatchMessage
MessageQueueThreadHandler.java:29
loop
Looper.java:154
run
MessageQueueThreadImpl.java:192
run
Thread.java:761
最近在测试的发现,如果我修改了JS想Reload看效果的时候,有时会出现 语音合成之后一直在等待回调OnResult但是一直没有回应。但是在后台把程序关掉之后再进去就可以了。想问问这个会影响到实际产品发布吗?或者说有没有什么解决办法呢?
可以自己扩展吗
报如下错误
clang: error: no such file or directory: '/Users/zz/Library/Developer/Xcode/DerivedData/UServiceApp-gjwpbofoefhetkbbjrbcwwlofmqb/Build/Intermediates.noindex/ArchiveIntermediates/UServiceApp/BuildProductsPath/Release-iphoneos/libRNSpeechIFlytek.a'
是否可以进行讯飞的语音评测
react native 版本 0.59.1
开发模式下正常,
生产模式下,SpeechUtility.createUtility
会直接崩溃
ld: library not found for -lRNSpeechIFlytek
clang: error: linker command failed with exit code 1 (use -v to see invocation)
看了一下1.3版本。没有支持对error的错误。2.0以上版本有对应的支持,但是只能支持React 0.47以上的版本。希望能更新出一版1.4版本,感激不尽
在测试中经常出现开始录入的时候没有人说话,然后就提示“您好像没有说话哦”,但是在自己的程序中没办法catch到这个error,可否在module中添加一个EventEmit把error分发到自定义函数中去呢?
按照README步骤,出现'iflyMSC/IFlyMSC.h' file not found,多次拖拉framework无效。
ios版本也上传一下啊
react-native: 0.55.2
react-native-speech-iflytek: 1.0.3
xcode: 9.3
xcode 报错:
Assertion failed: (severity >= 0 && severity < NUM_SEVERITIES), function SetLogDestination, file MyProject/node_modules/react-native/third-party/glog-0.3.4/src/logging.cc, line 595.
logging.cc:
`
`
@zphhhhh 能帮忙看一下这个问题么
你好
agora目前在寻找优秀的音视频相关人才,看到您比较擅长这一块;
有兴趣加个微信:13611988401我们详细沟通吗?
xcode是9.3.1已经按之前别人的问题试了,还是报错
please delete this issue! thank you! @zphhhhh
能指导下集成 讯飞吗
//Set log level
[IFlySetting setLogFile:LVL_ALL];
//Set whether to output log messages in Xcode console
[IFlySetting showLogcat:YES];
//Set the local storage path of SDK
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachePath = [paths objectAtIndex:0];
[IFlySetting setLogFilePath:cachePath];
//Set APPID
NSString *initString = [[NSString alloc] initWithFormat:@"appid=%@", @"5b62e512"];
//Configure and initialize iflytek services.(This interface must been invoked in application:didFinishLaunchingWithOptions:)
[IFlySpeechUtility createUtility:initString];
Assertion failed: (severity >= 0 && severity < NUM_SEVERITIES), function SetLogDestination, file /Users/samyao/Git/trace/node_modules/react-native/third-party/glog-0.3.4/src/logging.cc, line 595.
各种方法都试过,bitcode也关闭了,就是初始化时报错,无法继续,很急,很关键。
if (Platform.OS === 'ios') {
Synthesizer.init("xxxxx");//也会报错
Recognizer.init("xxxxx");
}
2018年9月15号下载的最新sdk包:iOS_iat1174_tts_online1174_5b8e2af1.zip
PS F:\Gitee\trace\trace> react-native -version
react-native-cli: 2.0.1
react-native: 0.53.0
如何判断识别结束呢?在onRecognizerResult函数中判断Recognizer.isListening(),不管结果为是或否,都会执行很多遍
android版可以正常使用,
ios版无法集成,是否可以改成pod安装依赖?
ios平台上pause()之后调用resume()方法没有反应
目前使用的语音识别SDK 其他功能都正常 只有ios端静听不到说话端音量变化 onRecognizerVolumeChanged 此事件无响应
Example 工程集成最新的讯飞iflyMSC.framework后 IOS闪退 @麻烦@zphhhhh 帮忙看一下哦。
2018-11-12 08:32:18.791 [info][tid:com.facebook.react.JavaScript] Running application "Example" with appParams: {"rootTag":1,"initialProps":{}}. DEV === true, development-level warning are ON, performance optimizations are OFF
2018-11-12 16:32:24.185 Example[65771:9172715] [IFLYTEK] login with params:appid=5be3a4b2
2018-11-12 16:32:24.185 Example[65771:9172715] [IFLYTEK] -[IFlySpeechUtility login],login=0
2018-11-12 16:32:24.201 Example[65771:9172821] [IFLYTEK] +[IFlySpeechRecognizer sharedInstance][IN],iflyInstance=0
2018-11-12 16:32:24.202 Example[65771:9172821] [IFLYTEK] +[IFlySpeechRecognizer sharedInstance][OUT],iflyInstance=899171696
2018-11-12 16:32:24.203 Example[65771:9172715] [IFLYTEK] +[IFlySystemInfo getWorkPath],_gMscLogPath=(null)
2018-11-12 16:32:24.203 Example[65771:9172715] [IFLYTEK] +[IFlyReachability currentReachabilityStatus][IN]
2018-11-12 16:32:24.204 Example[65771:9172715] [IFLYTEK] -[IFlyReachability networkStatusForFlags:][IN]
2018-11-12 16:32:24.204 Example[65771:9172715] [IFLYTEK] Reachability Flag Status: -R ------- networkStatusForFlags
2018-11-12 16:32:24.204 Example[65771:9172715] [IFLYTEK] -[IFlyReachability networkStatusForFlags:][OUT]
2018-11-12 16:32:24.204 Example[65771:9172715] [IFLYTEK] -[IFlyReachability dealloc][IN]
2018-11-12 16:32:24.205 Example[65771:9172715] [IFLYTEK] -[IFlyReachability stopNotifier][IN]
2018-11-12 16:32:24.205 Example[65771:9172715] [IFLYTEK] -[IFlyReachability stopNotifier][OUT]
2018-11-12 16:32:24.205 Example[65771:9172715] [IFLYTEK] -[IFlyReachability dealloc][OUT]
2018-11-12 16:32:24.213 Example[65771:9172715] [IFLYTEK] +[IFlyReachability currentReachabilityStatus][OUT]
2018-11-12 16:32:24.214 Example[65771:9172715] [IFLYTEK] +[IFlySystemInfo getCarrierName][IN]
2018-11-12 16:32:24.215 Example[65771:9172715] [IFLYTEK] +[IFlySystemInfo getCarrierName][OUT]
2018-11-12 16:32:24.215 Example[65771:9172715] [IFLYTEK] login -[IFlyLoginParam toString:] SessionParam:timeout=20000,appid=5be3a4b2,msc.ver=1.0.1216.1174,openudid=d41d8cd98f00b204e9800998ecf8427e7a255ccf,work_dir=/Users/SamuelMac/Library/Developer/CoreSimulator/Devices/0154DD8D-8CE9-4C15-A054-56A76E5F8A17/data/Containers/Data/Application/C18BAC11-BAD4-4F20-8D1A-DA5186CC84B4/Library/Caches,carrier=,os.system=iPhone OS,os.release=9.3,os.version=9.3,os.model=x86_64,os.resolution=7501334,os.manufact=apple,os.jailbreak=0,app.name=Example,app.path=/Users/SamuelMac/Library/Developer/CoreSimulator/Devices/0154DD8D-8CE9-4C15-A054-56A76E5F8A17/data/Containers/Bundle/Application/D335F295-9781-488D-900E-2CDB6096177D/Example.app,app.pkg=Example.app,app.bid=org.reactjs.native.example.Example,net_type=wifi,appid=5be3a4b2
2018-11-12 16:32:24.215 Example[65771:9172715] [IFLYTEK] paramString:
timeout=20000,appid=5be3a4b2,msc.ver=1.0.1216.1174,openudid=d41d8cd98f00b204e9800998ecf8427e7a255ccf,work_dir=/Users/SamuelMac/Library/Developer/CoreSimulator/Devices/0154DD8D-8CE9-4C15-A054-56A76E5F8A17/data/Containers/Data/Application/C18BAC11-BAD4-4F20-8D1A-DA5186CC84B4/Library/Caches,carrier=,os.system=iPhone OS,os.release=9.3,os.version=9.3,os.model=x86_64,os.resolution=7501334,os.manufact=apple,os.jailbreak=0,app.name=Example,app.path=/Users/SamuelMac/Library/Developer/CoreSimulator/Devices/0154DD8D-8CE9-4C15-A054-56A76E5F8A17/data/Containers/Bundle/Application/D335F295-9781-488D-900E-2CDB6096177D/Example.app,app.pkg=Example.app,app.bid=org.reactjs.native.example.Example,net_type=wifi,appid=5be3a4b2
Assertion failed: (severity >= 0 && severity < NUM_SEVERITIES), function SetLogDestination, file /Users/SamuelMac/Documents/SchProject/JsProject/react-native-speech-iflytek-master/Example/node_modules/react-native/third-party/glog-0.3.4/src/logging.cc, line 595.
开发debug版一切正常。
但是想打release包的时候会出以下错误。
no such file or directory: 'xxxx/Xcode/DerivedData/xxxx-hdbzzyndzuhubadplllkbkpmevbu/Build/Products/Release-iphonesimulator/libRNSpeechIFlytek.a'
release模式的时候报错:ld: library not found for -lRNSpeechIFlytek
用 #19的方法,单独buildRNSpeechIFlytek报错'React/RCTBridgeModule.h' file not found
即使有时候没错,问题还是解决不了。
What went wrong:
Execution failed for task ':react-native-speech-iflytek:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found
"react": "16.8.3",
"react-native": "0.59.8",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.