Unable to play wave soundfiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am coding a small sip client prototype using the python bindings.

I am able to make and answer calls without a problem.

However, when trying to create a player for a wave soundfile I get the 
following error:

pjsua.Error: Object: Lib, operation=create_player(), error=Unsupported 
WAVE file format (PJMEDIA_EWAVEUNSUPP)

I have tracked that error down to a disallowed file format: 11,025 Hz 
8 bit PCM

There is no documentation on which are the allowed formats.

Tried different formats using the sample tool called playfile, and I 
have trouble even with 16 bit PCM files:

17:27:09.163       pa_dev.c  PA message: Expression 'ioctl( devHandle, 
SNDCTL_DSP_CHANNELS, &temp )' failed in 
'src/../../../portaudio/src/hostapi/oss/pa_unix_oss.c', line: 405

 17:27:09.203       pa_dev.c  PortAudio sound library initialized, status=0
 17:27:09.203       pa_dev.c  PortAudio host api count=2
 17:27:09.203       pa_dev.c  Sound device count=15
 17:27:09.204          pjlib  select() I/O Queue created (0x8e8fd5c)
 17:27:09.204   wav_player.c  File player 'test.wav' created: 
samp.rate=11025, ch=1, bufsize=4KB, filesize=304KB
 17:27:09.204       pa_dev.c  PA message: Expression 
'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294

 17:27:09.204       pa_dev.c  PA message: Expression 
'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, 
self->primeBuffers, hwParamsPlayback, &realSr )' failed in 
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1873

 17:27:09.204       pa_dev.c  PA message: Expression 
'PaAlsaStream_Configure( stream, inputParameters, outputParameters, 
sampleRate, framesPerBuffer, &inputLatency, &outputLatency, 
&hostBufferSizeMode )' failed in 
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994

 17:27:09.204     playfile.c  Unable to open sound device: Invalid 
sample rate [code=469996]

Does anyone know the appropriate wave file format?

-- 
Edgar Acosta				eacosta at hcn-inc.com
Software Developer			1 613 216 1495 x 6225 (ET)
The Hotel Communication Network Inc.	www.hcn-inc.com




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux