Recording
A finished audio recording, as a file the app can play, upload or keep.
Usage
Configure a component-owned voice recorder.
This type is used by audio.recorder
// Configure a component-owned voice recorder.
import { Button, audio, type RecordingFormat, type RecordingQuality } from 'kuito';
export function Memo() {
const format: RecordingFormat = 'aac';
const quality: RecordingQuality = 'high';
const recorder = audio.recorder({ format, quality });
return <Button onPress={() => void recorder.start().catch(console.error)}>Record</Button>;
}
// Declare microphone permission; finish the file with recorder.stop().Type declaration
export type Recording = AudioRecording;Members 2
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | — |
duration | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.