Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Français

Change language to:
English - 日本語 - Português - Русский

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

Aide de Scilab >> Sons - fichiers audio > wavwrite

wavwrite

writes .wav sound file

Syntax

wavwrite(y, wavfile)
wavwrite(y, Fs, wavfile)
wavwrite(y, Fs, nbits, wavfile)

Arguments

y

real vector or matrix with entries in [-1,1].

wavfile

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

Fs

integer, frequency sampling in Hz. 22500 is the default value.

nbits

bit-depth 8, 16, 24, 32 bits. it describes the number of bits of information recorded for each sample. 16 is the default value.

Description

Utility function to save .wav sound file. wavwrite(y,wavfile) writes a sound file specified by the string wavfile. The data should be arranged with one channel per column. Amplitude values outside the range [-1,+1] are ignored.

wavwrite(y,Fs,wavfile) specifies in Fs the sample rate of the data in Hertz.

Examples

A=matrix(1:6,2,3);
wavwrite(A/6,TMPDIR+'/foo.wav');
B=wavread(TMPDIR+'/foo.wav');

See also

  • auread — load .au sound file
  • wavread — load .wav sound file
  • savewave — save data into a sound wav file.
  • analyze — frequency plot of a sound signal
  • mapsound — Plots a sound map
Report an issue
<< wavread Sons - fichiers audio Heure et date >>

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 Feb 14 14:59:59 CET 2019