Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Manipulação de Arquivos de Som > auread

auread

load .au sound file

Calling Sequence

y=auread(aufile)
y=auread(aufile,ext)
[y,Fs,bits]=auread(aufile)
[y,Fs,bits]=auread(aufile,ext)

Arguments

aufile

string (The .au extension is appended if no extension is given)

Fs

...

[]

integer, frequency sampling in Hz.

ext

string ('size' or 'snd') or integer (to read n samples) or 1 x 2 integer vector [n1,n2] (to read from n1 to n2).

Description

Utility function to read .au sound file. auread(aufile) loads a sound file specified by the string aufile, returning the sampled data in y. Amplitude values are in the range [-1,+1].

Supports multi-channel data in the following formats: 8-bit mu-law, 8-, 16-, and 32-bit linear, and floating point.

[y,Fs,bits]=auread(aufile) returns the sample rate (Fs) in Hertz and the number of bits per sample used to encode the data in the file.

auread(aufile,n) returns the first n samples from each channel.

auread(aufile,[n1,n2]) returns samples n1 to n2.

auread(aufile,'size') returns the size of the audio data contained in the file in place of the actual audio data, returning the vector as [samples channels].

auread(aufile,'snd') returns information about the sample and data as a tlist.

Examples

y=wavread('SCI/modules/sound/demos/chimes.wav');

// default is 8-bits mu-law
auwrite(y,TMPDIR+'/tmp.au');
y1=auread(TMPDIR+'/tmp.au');
max(abs(y-y1))

See Also

  • savewave — save data into a sound wav file.
  • analyze — frequency plot of a sound signal
  • mapsound — Plots a sound map
Report an issue
<< analyze Manipulação de Arquivos de Som auwrite >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:57:42 CEST 2014