Git Product home page Git Product logo

Comments (5)

alfredh avatar alfredh commented on June 12, 2024 1

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.

alfredh avatar alfredh commented on June 12, 2024

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.

cspiel1 avatar cspiel1 commented on June 12, 2024

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.

cspiel1 avatar cspiel1 commented on June 12, 2024

This issue is not new. I'll suggest to postpone the fix after v3.10.

from baresip.

cspiel1 avatar cspiel1 commented on June 12, 2024

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 like aufile_load() in play.c does this.

from baresip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.