ltx23_read_audio

Read an audio file as 16 kHz stereo PCM

Description

Decodes MP3/WAV/etc. via av to 16-bit PCM at the target rate and parses the RIFF container in base R.

Usage

ltx23_read_audio(path, sample_rate = 16000L)

Arguments

  • path: Audio file.
  • sample_rate: Integer.

Value

Matrix [2, samples] in [-1, 1].