<< sfgettlbxpath sndfile_toolbox sfsupportedformat >>

sndfile_toolbox >> sndfile_toolbox > sfread

sfread

read a sound file in scilab.

Calling Sequence

[data,samplerate,fmt] = sfread(filename)

Parameters

filename

a string. The path of the wav file to be loaded

data

a matrix one colum for each channel (normalized output [-1,+1])

samplerate

sample rate: 22050,44100, etc

fmt

a string :format of file. example "wav-int16"

Description

read a sound file in scilab

default supported format are:

AIFF (Apple/SGI 16 bit PCM) --> "aiff-int16"

AIFF (Apple/SGI 32 bit float) --> "aiff-int32"

AIFF (Apple/SGI 8 bit PCM) --> "aiff-int8"

AU (Sun/Next 16 bit PCM) --> " au-int16"

AU (Sun/Next 8-bit u-law) --> "au-ulaw"

CAF (Apple 16 bit PCM) --> "caf-int16"

FLAC 16 bit --> "flac-int16"

OKI Dialogic VOX ADPCM --> "wav-vox_adpcm"

Ogg Vorbis (Xiph Foundation) --> "ogg-vorbis"

WAV (Microsoft 16 bit PCM) --> "wav-int16"

WAV (Microsoft 32 bit float) --> "wav-int32"

WAV (Microsoft 4 bit IMA ADPCM) --> "wav-ima_adpcm"

WAV (Microsoft 4 bit MS ADPCM) --> "wav-ms_adpcm"

WAV (Microsoft 8 bit PCM) --> "wav-int8"

Examples

[data,samplerate,fmt] = sfread('filename.wav')

See Also

Authors


Report an issue
<< sfgettlbxpath sndfile_toolbox sfsupportedformat >>