Write audio file
audiowrite(
writes
a matrix of audio data, filename
,y
,Fs
)y
, with sample rate Fs
to
a file called filename
. The filename
input
also specifies the output file format. The output data type depends on the output
file format and the data type of the audio data, y
.
audiowrite(
uses
additional options specified by one or more filename
,y
,Fs
,Name,Value
)Name,Value
pair
arguments.
The output data type is determined by the file
format, the data type of y
, and the specified output BitsPerSample
.
File Formats | Data Type of y | Output BitsPerSample | Output Data Type |
---|---|---|---|
WAVE (.wav ), | uint8 , int16 , int32 , single , double | 8 | uint8 |
16 | int16 | ||
24 | int32 | ||
uint8 , int16 , int32 | 32 | int32 | |
single , double | 32 | single | |
single , double | 64 | double | |
FLAC (.flac ) | uint8 , int16 , int32 , single , double | 8 | int8 |
16 | int16 | ||
24 | int32 | ||
MPEG-4 (.m4a , .mp4 ),OGG ( .ogg ) | uint8 , int16 , int32 , single , double | N/A | single |