mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* wxapp: add FileSystemManager * fix: add interface * uppercase interface name * add types react-native-audio
14 lines
315 B
TypeScript
14 lines
315 B
TypeScript
import { AudioRecorder, AudioUtils } from 'react-native-audio';
|
|
const audioPath = AudioUtils.DocumentDirectoryPath + '/test.aac';
|
|
|
|
AudioRecorder.prepareRecordingAtPath(audioPath, {
|
|
SampleRate: 22050,
|
|
Channels: 1,
|
|
AudioQuality: "Low",
|
|
AudioEncoding: "aac"
|
|
});
|
|
|
|
AudioRecorder.onProgress = (data) => {
|
|
// todo
|
|
};
|