Giter Site home page Giter Site logo

zphhhhh / react-native-speech-iflytek Goto Github PK

View Code? Open in Web Editor NEW
204.0 204.0 52.0 21.72 MB

React Native 下的科大讯飞语音库,可以进行语音识别与语音合成

License: MIT License

JavaScript 3.96% Python 1.13% Java 21.82% Objective-C 73.10%

react-native-speech-iflytek's People

Contributors

2534290808 avatar zphhhhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-speech-iflytek's Issues

运行样例代码报错

你好,我使用的是create-react-native-app脚手架,我按照readme的说法安装包后运行代码报错。
error

ios 端报错

ios 按照文档引入依赖模块,还是报如图错误,请问 有在IOS 端运行成功的吗?

image

更换iflyMSC.framework之后init的时候出现error:10122

从官网上下载了对应的lib,然后把里面的framework替换了一下,xcode中的framework我也删掉再加入了一下,但是在运行的时候会报10122的错误,查了文档是加载模块错误。。但是不太清楚这个错误是因为触发的。。

Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onRecognizerResult",{"duration":12207,"isLast":true,"result":"1234512345。","text":"。"}])

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

错误码10407

我按照readme 的步骤,在安卓端总是提示 用户校验失败,错误码10407,请问是否需要其他配置?

onRecognizerResult 没能进入此方法

按照作者的Usage的方法如下:
Recognizer.init("57c7c5b0");
this.recognizerEventEmitter = new NativeEventEmitter(Recognizer);
this.recognizerEventEmitter.addListener('onRecognizerResult', this.onRecognizerResult);
Recognizer.start();

没能进入此方法

Attempt to invoke virtual method 'boolean com.iflytek.cloud.SpeechSynthesizer.setParameter(java.lang.String, java.lang.String)' on a null object reference

经过测试是 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

很多次在Reload JS之后语音识别服务会卡住

最近在测试的发现,如果我修改了JS想Reload看效果的时候,有时会出现 语音合成之后一直在等待回调OnResult但是一直没有回应。但是在后台把程序关掉之后再进去就可以了。想问问这个会影响到实际产品发布吗?或者说有没有什么解决办法呢?

加载不了该API

我尝试使用一个新的react native项目,npm install 之后,更换了libs,没有使用link,app能运行,但是会显示找不到合成和识别的init方法,link之后app就完全跑不起来了,一直报错,也没找到好的解决办法,

之前也尝试了先install,再link,再更换libs文件,但是完全按照example里面的文件写了之后
image 还是有这种错误,网上也没找到相关的解决方法,有什么建议吗?

xcode archive 找不到文件/libRNSpeechIFlytek.a

报如下错误

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'

ios报错

ld: library not found for -lRNSpeechIFlytek
clang: error: linker command failed with exit code 1 (use -v to see invocation)

希望能对应更新一下1.X版本

看了一下1.3版本。没有支持对error的错误。2.0以上版本有对应的支持,但是只能支持React 0.47以上的版本。希望能更新出一版1.4版本,感激不尽

是否可以添加OnLatError的接口?

在测试中经常出现开始录入的时候没有人说话,然后就提示“您好像没有说话哦”,但是在自己的程序中没办法catch到这个error,可否在module中添加一个EventEmit把error分发到自定义函数中去呢?

IOS crash when Recognizer.init('xxxxxxx')

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:
`

  1. inline void LogDestination::SetLogDestination(LogSeverity severity,
  2. const char* base_filename) {
  3. assert(severity >= 0 && severity < NUM_SEVERITIES);
  4. // Prevent any subtle race conditions by wrapping a mutex lock around
  5. // all this stuff.
  6. MutexLock l(&log_mutex);
  7. log_destination(severity)->fileobject_.SetBasename(base_filename);
  8. }

`
@zphhhhh 能帮忙看一下这个问题么

寻找优秀音视频人才

你好
agora目前在寻找优秀的音视频相关人才,看到您比较擅长这一块;
有兴趣加个微信:13611988401我们详细沟通吗?

运行报错

你好,按照readme的说明完成配置后,安装报下面这个错请问是什么问题?
eeeeeee

Android集成成功,IOS编辑通过,但启动后xcode

image

//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];

[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

iOS iflyMSC not found

I tried the iOS version today and followed the tutorial on website putting the iflyMSC framework into the iOS project root folder, set the framework search path to $(PROJECT_DIR) . But still get this error, I don't really get what happened here. Can you give me some advice on that ?

Uploading Screen Shot 2018-01-13 at 8.41.29 AM.png…

判断识别结束

如何判断识别结束呢?在onRecognizerResult函数中判断Recognizer.isListening(),不管结果为是或否,都会执行很多遍

0.62版本问题

android版可以正常使用,
ios版无法集成,是否可以改成pod安装依赖?

Example 工程集成最新的讯飞iflyMSC.framework后 IOS闪退

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=750
1334,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.

打release包会出错误

开发debug版一切正常。

但是想打release包的时候会出以下错误。

no such file or directory: 'xxxx/Xcode/DerivedData/xxxx-hdbzzyndzuhubadplllkbkpmevbu/Build/Products/Release-iphonesimulator/libRNSpeechIFlytek.a'

调试没问题,但是打包报错

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",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.