<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<font face="Courier New, Courier, monospace">Dear all,<br>
<br>
When opening a wav file with wavread, even with the option 'info',
seemingly it does not recognize the file as a valid wav file if it
is encoded with a </font><font face="Courier New, Courier,
monospace">category </font><font face="Courier New, Courier,
monospace">different from PCM.<br>
<br>
For instance, I've created a simple wave file, opened it with
Audacity (a free open-source audio editor) and exported it with
mu-law encoding, getting the attached file. <br>
<br>
Wavread with the option 'info' behaves like this:<br>
<br>
--> H = wavread('c:\test mu-law.wav', 'info')<br>
at line 16 of function read_wavefmt ( C:\Program
Files\scilab-6.0.2\modules\sound\macros\wavread.sci line 186 )<br>
at line 113 of function wavread ( C:\Program
Files\scilab-6.0.2\modules\sound\macros\wavread.sci line 128 )<br>
<br>
find_cktype: An error occurred: Invalid wav format.<br>
<br>
I think this behavior is not correct, since my file is indeed a
valid wav file (I successfully opened it with other audio editor).
<br>
<br>
From this and other similar experiments I conclude that the only
encoding category Scilab supports is PCM (no compression). This
may be OK to keep the function simple (there are literally dozens
of formats that can be contained in a wav file), but the
documentation should warn about that and the error message should
be more accurate, informing that it is an unsupported format,
instead of providing a misleading report telling that the format
is invalid.<br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
<br>
</font>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>