<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Can anyone help because I
don't understand why Asterisk can not read the input file, there is not
much info given...<br>
<br>
2 files :<br>
<br>
[root@asterisk testing]# file testExtended.wav <br>
testExtended.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM,
16 bit, stereo 44100 Hz<br>
[root@asterisk testing]# file testLong.wav <br>
testLong.wav: RIFF (little-endian) data, WAVE audio, 20294 channels
1414676809 Hz<br>
<br>
to mono :<br>
<br>
[root@asterisk testing]# sox testExtended.wav -r 8000 -c1
testExtended2.wav resample -ql<br>
sox sox: effect `resample' is deprecated; see sox(1) for an alternative<br>
[root@asterisk testing]# sox testLong.wav -r 8000 -c1 testLong2.wav
resample -ql<br>
sox sox: effect `resample' is deprecated; see sox(1) for an alternative<br>
sox effects: resample clipped 2 samples; decrease volume?<br>
<br>
afterwards :<br>
<br>
[root@asterisk testing]# file testLong2.wav <br>
testLong2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16
bit, mono 8000 Hz<br>
[root@asterisk testing]# file testExtended2.wav <br>
testExtended2.wav: RIFF (little-endian) data, WAVE audio, Microsoft
PCM, 16 bit, mono 8000 Hz<br>
<br>
But Asterisk can not open them :<br>
<br>
[root@asterisk testing]# asterisk -rx "file convert testExtended2.wav
testExtended2.alaw"<br>
Unable to open input file: testExtended2.wav<br>
[root@asterisk testing]# asterisk -rx "file convert testLong2.wav
testLong2.alaw"<br>
Unable to open input file: testLong2.wav<br>
<br>
<br>
Any thoughts ?!<br>
<br>
<br>
Jonas.<br>
<br>
</font><br>
<blockquote cite="mid:4C67AFB2.8060804@telenet.be" type="cite"><font
face="Helvetica, Arial, sans-serif"></font><br>
On 08/14/2010 04:30 PM, Motiejus Jakštys wrote:
<blockquote
cite="mid:AANLkTi=UUzXvrDTVi9oJj8kES9-6ikeeCgDcokKg=MEs@mail.gmail.com"
type="cite">On Sat, Aug 14, 2010 at 4:24 PM, Jonas Kellens <<a
moz-do-not-send="true" href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>>
wrote:<br>
><br>
> intro extended version.wav: RIFF (little-endian) data, WAVE audio,
Microsoft<br>
> PCM, 16 bit, stereo 44100 Hz<br>
><br>
<br>
You need <b>MONO, 8000Hz</b><br>
<br>
$ man sox<br>
<br>
--<br>
Motiejus Jakštys<br>
</blockquote>
</blockquote>
</body>
</html>