Converting with sox works well as followed :
sox -V intro.wav -c 1 -r 8000 intro2.wav
To convert with asterisk convert, I needed to use an absolute path :
asterisk -rx file convert /var/lib/asterisk/moh/folder/intro.wav
/var/lib/asterisk/folder/intro.alaw
All works well.
Jonas.
On
Hi
to convert wav file use following
sox 'orgFile' -w -r 8000 -c 1 -s 'fixedFile'
while replace orgFile and fixedFile with actual filenames
If still now luck try with mp3
Regards
--
_
-- Bandwidth and Colocation Provided
Can anyone help because I don't understand why Asterisk can not read the
input file, there is not much info given...
2 files :
[r...@asterisk testing]# file testExtended.wav
testExtended.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM,
16 bit, stereo 44100 Hz
[r...@asterisk
Hi.
Just to let you know, we record voices with audacity, and export audio as
flac, just in case we need to edit it.
Then I have the following sh script:
o# cat convert.sh
#!/bin/sh
today=$(date +%F);
mkdir -p $today/flac;
mkdir -p $today/wav;
mkdir -p $today/ul;
for i in *.flac;
do
I took this from the wiki, but it's not working :
[r...@asterisk testing]# sox test.wav -r 8000 -c1 test.alaw resample -ql
sox sox: effect `resample' is deprecated; see sox(1) for an alternative
sox formats: no handler for file extension `alaw'
Jonas.
On 08/14/2010 04:30 PM, Motiejus Jakštys
And even when I think the format is correct :
[r...@asterisk testing]# sox test.wav -r 8000 -c1 test.wav resample -ql
sox sox: effect `resample' is deprecated; see sox(1) for an alternative
sox wav: Premature EOF on .wav input file
[r...@asterisk testing]# file test.wav
test.wav: RIFF
I have another file that reads :
[r...@asterisk ]# file intro\ extended\ version.wav
intro extended version.wav: RIFF (little-endian) data, WAVE audio,
Microsoft PCM, 16 bit, stereo 44100 Hz
With the same result :
[r...@asterisk ]# asterisk -rx file convert
/var/lib/asterisk/moh/test/intro\
On Sat, Aug 14, 2010 at 4:24 PM, Jonas Kellens jonas.kell...@telenet.be
wrote:
intro extended version.wav: RIFF (little-endian) data, WAVE audio,
Microsoft
PCM, 16 bit, stereo 44100 Hz
You need *MONO, 8000Hz*
$ man sox
--
Motiejus Jakštys
--
Hello list,
I'm using asterisk 1.4.30 and realtime sip.
I notice that the field musiconhold is not working as when putting
someone on hold, the default musiconhold class is always used.
musiconhold.conf :
[default]
mode=files
directory=/var/lib/asterisk/moh
random=yes
;
[106002]
Hello list,
when putting the class 'default' in comment, then this happens :
[Aug 13 12:36:34] WARNING[21172]: res_musiconhold.c:666 get_mohbyname:
Music on Hold class 'default' not found
[Aug 13 12:36:34] -- Started music on hold, class '106002', on
SIP/test2-0001
[Aug 13 12:36:34]
Asterisk can convert from wav but it still needs to be in the correct
format. See
http://www.voip-info.org/tiki-index.php?page=Convert+WAV+audio+files+for+use+in+Asterisk
Jonas Kellens wrote:
Hello list,
when putting the class 'default' in comment, then this happens :
[Aug 13 12:36:34]
1. the converting is not working
[r...@asterisk testing]# file 01Long.wav
01Long.wav: RIFF (little-endian) data, WAVE audio, 20294 channels
1414676809 Hz
[r...@asterisk testing]# asterisk -rx file convert
/var/lib/asterisk/testing/01Long.wav /var/lib/asterisk/testing/01Long.alaw
Unable to
The wav file is not in the correct format. Also the number of channels
and sampling frequency it is reporting is complete nonsense. This is
what it should display:-
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
Jonas Kellens wrote:
1. the converting is not
13 matches
Mail list logo