How to encode WAV to play with SIPp

前端 未结 3 1880
醉话见心
醉话见心 2021-01-07 11:06

By looking into another SIPp related question I learned that it is now possible to play WAV files using the rtp_stream action.

I\'ve tried several diffe

3条回答
  •  余生分开走
    2021-01-07 11:29

    I was looking for different WAV file encodings and found a lot of them on Wikipedia.

    I've found one file (8,000 Hz µ-Law) that works correctly with the rtp_stream="8kulaw.wav,-1,0" exec parameter.

    This is the file information:

    ubuntu@mylinux:~/$ file 8kulaw.wav
    8kulaw.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz
    

    I've tried to encode this file to the exact same configuration using this Sox command but it did NOT worked:

    sox -r 8000 -e u-law sorry_dave.wav sorry_dave4.wav
    

提交回复
热议问题