From 7bdf8fcedea79dca9d9afb965c3256c6fd6eace1 Mon Sep 17 00:00:00 2001 From: hyochan Date: Tue, 11 Jun 2024 15:10:19 +0900 Subject: [PATCH] docs: typo --- .vscode/settings.json | 14 ++++++++++++++ README.md | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..181c1e57 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "cSpell.words": [ + "audiorecorderplayer", + "buildscript", + "classpath", + "jcenter", + "mansya", + "mmss", + "mmssss", + "RFNS", + "RNFS", + "xcodeproj" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 1f3747ff..7f5d38e9 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ This is a react-native link module for audio recorder and player. This is not a 4. `subscriptionDuration` offset not defaults to `0.5` which is `500ms`. - Resolve [#273](https://github.com/hyochan/react-native-audio-recorder-player/issues/273) -- There has been vast improvements in [#114](https://github.com/dooboolab/react-native-audio-recorder-player/pull/114) which is released in `2.3.0`. We now support all `RN` versions without any version differenciating. See below installation guide for your understanding. +- There has been vast improvements in [#114](https://github.com/dooboolab/react-native-audio-recorder-player/pull/114) which is released in `2.3.0`. We now support all `RN` versions without any version differentiating. See below installation guide for your understanding. ## Migration Guide @@ -157,7 +157,7 @@ if (Platform.OS === 'android') { PermissionsAndroid.PERMISSIONS.RECORD_AUDIO, ]); - console.log('write external stroage', grants); + console.log('write external storage', grants); if ( grants['android.permission.WRITE_EXTERNAL_STORAGE'] === @@ -212,7 +212,7 @@ All methods are implemented with promises. | mmss | `number` seconds | `string` | Convert seconds to `minute:second` string | | setSubscriptionDuration | | `void` | Set default callback time when starting recorder or player. Default to `0.5` which is `500ms` | | addRecordBackListener | `Function` callBack | `void` | Get callback from native module. Will receive `currentPosition`, `currentMetering` (if configured in startRecorder) | -| removeRecordBackListener | `Function` callBack | `void` | Removes recordback listener | +| removeRecordBackListener | `Function` callBack | `void` | Removes recordBack listener | | addPlayBackListener | `Function` callBack | `void` | Get callback from native module. Will receive `duration`, `currentPosition` | | removePlayBackListener | `Function` callBack | `void` | Removes playback listener | | startRecorder | `` uri? `` meteringEnabled? | `Promise` | Start recording. Not passing uri will save audio in default location. | @@ -222,7 +222,7 @@ All methods are implemented with promises. | startPlayer | `string` uri? `Record` httpHeaders? | `Promise` | Start playing. Not passing the param will play audio in default location. | | stopPlayer | | `Promise` | Stop playing. | | pausePlayer | | `Promise` | Pause playing. | -| seekToPlayer | `number` miliseconds | `Promise` | Seek audio. | +| seekToPlayer | `number` milliseconds | `Promise` | Seek audio. | | setVolume | `double` value | `Promise` | Set volume of audio player (default 1.0, range: 0.0 ~ 1.0). | ## Able to customize recorded audio quality (from `2.3.0`)