2

我不确定这些行为是否正确,但这些事件在 iOS 和 Android 中的工作方式略有不同。在Android中,react-native-voice模块在调用以下方法后停止收听语音

Voice.android.js:70 onSpeechPartialResults {value: Array(1)}
Voice.android.js:70 onSpeechPartialResults {value: Array(1)}
Voice.android.js:70 onSpeechPartialResults {value: Array(1)}
Voice.android.js:70 onSpeechPartialResults {value: Array(1)}
Voice.android.js:74 onSpeechEnd {error: false}
Voice.android.js:78 onSpeechResults {value: Array(5)}

是否可以让模块在不停止的情况下进行监听?

测试的安卓版本:9.0.5、8.0

4

0 回答 0