From 605c47f2a071dea02856cd30762e2c60116dad93 Mon Sep 17 00:00:00 2001 From: 01xkp <1903679953@qq.com> Date: Fri, 8 Nov 2024 10:45:02 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[#IB2T5C]=E4=BF=AE=E6=94=B9react-native?= =?UTF-8?q?-voice-voice=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-voice-voice.md | 7 ++++--- zh-cn/react-native-voice-voice.md | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/en/react-native-voice-voice.md b/en/react-native-voice-voice.md index adecb73b..16b1b4df 100644 --- a/en/react-native-voice-voice.md +++ b/en/react-native-voice-voice.md @@ -509,11 +509,11 @@ open `string.json`,Reason for adding permission request: | stop():Promise | Stops listening for speech. Returns null if no error occurs. | function | no | Android, iOS | yes | | cancel():Promise | Cancels the speech recognition. Returns null if no error occurs. | function | no | Android, iOS | yes | | destroy():Promise | Destroys the current SpeechRecognizer instance. Returns null if no error occurs. | function | no | Android, iOS | yes | -| removeAllListeners()| Cleans/nullifies overridden Voice static methods. | void | no | Android, iOS | yes | +| removeAllListeners()| Cleans/nullifies overridden Voice static methods. | void | no | Android, iOS | no | | isRecognizing():Promise | Return if the SpeechRecognizer is recognizing. |function | no | Android, iOS | yes | | getSpeechRecognitionServices() | Returns a list of the speech recognition engines available on the device. (Example: ['com.google.android.googlequicksearchbox'] if Google is the only one available.) | function | no | Android | no | -## 事件回调 +## Event Callbacks > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -534,8 +534,9 @@ open `string.json`,Reason for adding permission request: - [ ] 原库支持在线和离线模式,HarmonyOS 侧暂只支持离线 问题: [issue#2](https://github.com/react-native-oh-library/voice/issues/2) - [ ] 原库支持多种区域和语言,HarmonyOS 侧暂只支持中文 问题: [issue#3](https://github.com/react-native-oh-library/voice/issues/3) -## Others +## Others +- removeAllListeners方法未生效,与iOS效果一致。 问题: [issue#491](https://github.com/react-native-voice/voice/issues/491) ## License This project is licensed under [The MIT License (MIT)](https://github.com/react-native-voice/voice/blob/master/LICENSE). diff --git a/zh-cn/react-native-voice-voice.md b/zh-cn/react-native-voice-voice.md index 5c6991f6..947a5e40 100644 --- a/zh-cn/react-native-voice-voice.md +++ b/zh-cn/react-native-voice-voice.md @@ -503,7 +503,7 @@ ohpm install | stop():Promise | Stops listening for speech. Returns null if no error occurs. | function | no | Android, iOS | yes | | cancel():Promise | Cancels the speech recognition. Returns null if no error occurs. | function | no | Android, iOS | yes | | destroy():Promise | Destroys the current SpeechRecognizer instance. Returns null if no error occurs. | function | no | Android, iOS | yes | -| removeAllListeners():Promise | Cleans/nullifies overridden Voice static methods. | void | no | Android, iOS | yes | +| removeAllListeners():Promise | Cleans/nullifies overridden Voice static methods. | void | no | Android, iOS | no | | isRecognizing():Promise | Return if the SpeechRecognizer is recognizing. | function | no | Android, iOS | yes | | getSpeechRecognitionServices() | Returns a list of the speech recognition engines available on the device. (Example: ['com.google.android.googlequicksearchbox'] if Google is the only one available.) | function| no | Android | no | @@ -527,8 +527,9 @@ ohpm install - [ ] 原库支持在线和离线模式,HarmonyOS侧暂只支持离线 问题: [issue#2](https://github.com/react-native-oh-library/voice/issues/2) - [ ] 原库支持多种区域和语言,HarmonyOS侧暂只支持中文 问题: [issue#3](https://github.com/react-native-oh-library/voice/issues/3) -## 其他 +## 其他 +- removeAllListeners方法未生效,与iOS效果一致。问题: [issue#491]((https://github.com/react-native-voice/voice/issues/491) ## 开源协议 本项目基于 [The MIT License (MIT)](https://github.com/react-native-voice/voice/blob/master/LICENSE) ,请自由地享受和参与开源。 \ No newline at end of file -- Gitee