Skip to main content

TrimAudioResult

@siteed/expo-audio-studio


@siteed/expo-audio-studio / TrimAudioResult

Interface: TrimAudioResult

Defined in: src/ExpoAudioStream.types.ts:801

Result of the audio trimming operation.

Properties

bitDepth

bitDepth: number

Defined in: src/ExpoAudioStream.types.ts:835

The bit depth of the trimmed audio, applicable to PCM formats like 'wav'.


channels

channels: number

Defined in: src/ExpoAudioStream.types.ts:830

The number of channels in the trimmed audio (e.g., 1 for mono, 2 for stereo).


compression?

optional compression: object

Defined in: src/ExpoAudioStream.types.ts:845

Information about compression if the output format is compressed.

bitrate

bitrate: number

The bitrate of the compressed audio in bits per second.

format

format: string

The format of the compression (e.g., 'aac', 'mp3', 'opus').

size

size: number

The size of the compressed audio file in bytes.


durationMs

durationMs: number

Defined in: src/ExpoAudioStream.types.ts:815

The duration of the trimmed audio in milliseconds.


filename

filename: string

Defined in: src/ExpoAudioStream.types.ts:810

The filename of the trimmed audio file.


mimeType

mimeType: string

Defined in: src/ExpoAudioStream.types.ts:840

The MIME type of the trimmed audio file (e.g., 'audio/wav', 'audio/mpeg').


processingInfo?

optional processingInfo: object

Defined in: src/ExpoAudioStream.types.ts:865

Information about the processing time.

durationMs

durationMs: number

The time it took to process the audio in milliseconds.


sampleRate

sampleRate: number

Defined in: src/ExpoAudioStream.types.ts:825

The sample rate of the trimmed audio in Hertz (Hz).


size

size: number

Defined in: src/ExpoAudioStream.types.ts:820

The size of the trimmed audio file in bytes.


uri

uri: string

Defined in: src/ExpoAudioStream.types.ts:805

The URI of the trimmed audio file.