Skip to main content

ExtractedAudioData

@siteed/expo-audio-studio


@siteed/expo-audio-studio / ExtractedAudioData

Interface: ExtractedAudioData

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

Properties

base64Data?

optional base64Data: string

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

Base64 encoded string representation of the audio data (when includeBase64Data is true)


bitDepth

bitDepth: BitDepth

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

Bits per sample (8, 16, or 32)


channels

channels: number

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

Number of audio channels (1 for mono, 2 for stereo)


checksum?

optional checksum: number

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

CRC32 Checksum of PCM data


durationMs

durationMs: number

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

Duration of the audio in milliseconds


format

format: "pcm_32bit" | "pcm_16bit" | "pcm_8bit"

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

PCM format identifier (e.g., "pcm_16bit")


hasWavHeader?

optional hasWavHeader: boolean

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

Whether the pcmData includes a WAV header


normalizedData?

optional normalizedData: Float32Array<ArrayBufferLike>

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

Normalized audio data in [-1, 1] range (when includeNormalizedData is true)


pcmData

pcmData: Uint8Array

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

Raw PCM audio data


sampleRate

sampleRate: number

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

Sample rate in Hz (e.g., 44100, 48000)


samples

samples: number

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

Total number of audio samples per channel