Comments (5)
I tried to use the play
command on a couple of WAV files, and it sounds okay:
/play ring.wav
playing audio file "ring.wav" ..
/play autoanswer.wav
playing audio file "autoanswer.wav" ..
/play busy.wav
playing audio file "busy.wav" ..
/play notfound.wav
playing audio file "notfound.wav" ..
/play sound0.wav
playing audio file "sound0.wav" ..
Can you include the log in your failing case ?
Even if all WAV files are in 16-bits format, the program should still support playing
WAV files with 16-bit and PCMU,PCMA.
It is strange that no one else has reported this ?
from baresip.
Here are the media files:
share/autoanswer.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
share/busy.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/callwaiting.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
share/error.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/message.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/notfound.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/ringback.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/ring.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
share/sound0.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound1.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound3.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound4.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound5.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound6.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound7.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound8.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sound9.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/sounda.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/soundb.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/soundc.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/soundd.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/soundroute.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
share/soundstar.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
It would probably make sense that they are all the same format.
For sampling rate 16000Hz is probably better than 8000Hz.
from baresip.
Right. Who is able to generate the adequate WAV files?
In a separate directory (e.g. test) we should keep one WAV file from each different kind, sample rate for testing.
from baresip.
This issue is not new. I'll suggest to postpone the fix after v3.10.
from baresip.
It took some time to understand whats going on here. The result is:
- By default play.c uses
aufile_load()
which supports all the WAV formats you mentioned. - If
file_ausrc aufile
is set, PCMU and PCMA are not supported (so far).- But I found that the player is running for ever in some failure conditions. These are fixed by: #2972
- If we want to support also PCMU and PCMA, then I guess that
module/aufile
should convert the samples likeaufile_load()
in play.c does this.
from baresip.
Related Issues (20)
- Call getting rejected with "no common audio codecs - rejected" HOT 12
- -- Could NOT find GZRTP (missing: GZRTP_INCLUDE_DIR) HOT 4
- calls from -e are starting before register HOT 7
- gst module not found in debian 11 HOT 4
- Assertion failure in 'echo' module. HOT 2
- webrtc demo cant display video on chrome 122.0.6261.58 version HOT 5
- Writing custom modules to interface with baresip?
- Can not receive method NOTIFY when connecting to wss server HOT 2
- Multiple outgoing calls, only sending audio when one is accepted HOT 8
- May I ask how to set the sampling rate of saved audio files to 16000, with a default of 8000
- answered call has video even when not asked for HOT 18
- Thread Sanitizer warning for `test_call_tcp` for the stream->tx object HOT 2
- inreq_allowed is missing from Wiki and if not allowed produced incorrect negative response HOT 10
- Baresip gets stuck related to "audio: rtp timestamp wraps backwards" since 3.9.0 HOT 6
- Add ;inreq_allowed to addr-params
- Restore backwards compatibility by accepting MESSAGE requests by default
- netroam module HOT 2
- How do I get my client to support TLS 1.0? HOT 1
- ci: broken sanitizers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baresip.