Results 1 to 7 of 7

Thread: How to convert audio file of type G.723.1 into wav format using sox?

  1. #1
    Join Date
    Jun 2013
    Beans
    2

    How to convert audio file of type G.723.1 into wav format using sox?

    I have few audio files which have .wav extension. I tried to get information about this file using soxi <foo.wav> command but I got following error :
    soxi FAIL formats: can't open input file foo.wav': Unknown WAV file encoding (type a100)
    So I used MediaInfo tool to get more information about this file I got following information about this file:


    General
    Format : Wave
    File size : 51.4 KiB
    Duration : 1mn 18s Overall
    bit rate : 5 339 bps
    Audio
    Format : G.723.1
    Codec ID : A100
    Duration : 1mn 18s
    Bit rate : 5 328 bps
    Channel(s) : 1 channel
    Sampling rate : 8 000 Hz
    Stream size : 51.3 KiB (100%)
    According to this information it seems like this file is has G.723.1 format and SOX is not able to understand this format.
    So I would like to know :

    • My conclusion that SOX does not support this type of file is correct?
    • If SOX does not support this type of file then installing some codec will help? I have seen lamecommand on few web pages but not sure if it will help me or not.

    Request someone to help !

  2. #2
    Join Date
    Jun 2013
    Beans
    2

    How to convert audio file of type G.723.1 into wav format using sox?

    I have few audio files which have .wav extension. I tried to get information about this file using soxi <foo.wav> command but I got following error :
    soxi FAIL formats: can't open input file foo.wav': Unknown WAV file encoding (type a100)
    So I used MediaInfo tool to get more information about this file I got following information about this file:

    General
    Format : Wave
    File size : 51.4 KiB
    Duration : 1mn 18s Overall
    bit rate : 5 339 bps
    Audio
    Format : G.723.1
    Codec ID : A100
    Duration : 1mn 18s
    Bit rate : 5 328 bps
    Channel(s) : 1 channel
    Sampling rate : 8 000 Hz
    Stream size : 51.3 KiB (100%)
    According to this information it seems like this file is has G.723.1 format and SOX is not able to understand this format.
    So I would like to know :

    • My conclusion that SOX does not support this type of file is correct?
    • If SOX does not support this type of file then installing some codec will help? I have seen lamecommand on few web pages but not sure if it will help me or not.

    Request someone to help !

  3. #3
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: How to convert audio file of type G.723.1 into wav format using sox?

    Threads merged.
    Cheesemill

  4. #4
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: How to convert audio file of type G.723.1 into wav format using sox?

    Hi S


    this is a phone audio file right?

    G.723.1 — Delivering Highly Compressed Speech at Near-toll Quality Adopted in November 1995 by the International Telecommunication Union (ITU), the G.723.1 codec can be used for compressing the speech or the audio component of multimedia services at a very low bit rate as part of the overall H.323 and H.324 families of standards.
    G.723.1 offers a dual rate of 6.3 kbps, based upon an MP-MLQ2 codebook search, and 5.3 kbps, based on the unique ACELP® technology platform developed at the Université de Sherbrooke. The higher bit rate has greater quality. The lower bit rate gives good quality and provides system designers with additional flexibility. Both rates are mandatory parts of the encoder and decoder. It is possible to switch between the two rates at any 30-ms frame boundary.
    G.723.1 can perform full duplex compression and decompression functions for multimedia, visual telephony, and videoconferencing products. It was optimized to represent speech with high quality at low bit rates using a limited amount of complexity. Music and other audio signals are not represented as faithfully as speech but can be compressed and decompressed using this coder.
    By delivering highly compressed speech, this codec is targeted for communications applications where low bit-rates are required without compromising the speech quality. In fact, G.723.1 provides near-toll quality.
    Technical Highlights

    • Frame size: 30 ms (240 samples)
    • Lookahead: 7.5 ms (60 samples)
    • Bit rates: 5.3 & 6.3 (MOS at 6.3 is 3.9)
    • Possibility of switching between both rates during real-time operation
    • Optional VAD/CNG (G.723 Annex A



    could you upload a sample here for us to try? thanx
    Last edited by shantiq; June 14th, 2013 at 03:16 PM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  5. #5
    Join Date
    Jun 2007
    Beans
    10,984

    Re: How to convert audio file of type G.723.1 into wav format using sox?

    sox probably doesn't support it.

    It looks like libav supports it, but you'll need a newer version than what's in the repos.
    http://git.libav.org/?p=libav.git;a=...tags/v9.6#l203

    It also looks like it's supported in ffmpeg. Since I use Debian, I'll leave it to the libav/ffmpeg experts to tell you the best way to go about getting the right version in Ubuntu. By the way, which version of Ubuntu are you using?
    Last edited by Temüjin; June 15th, 2013 at 09:27 AM.

  6. #6
    Join Date
    Sep 2006
    Beans
    3,476

    Re: How to convert audio file of type G.723.1 into wav format using sox?

    Getting a recent build of ffmpeg has two main options:

    Static build of ffmpeg
    Pros:


    Cons:
    • May not have what you want, such as no x11 support for screen capture, and no support for non free encoders such as libfdk_aac.
    • You don't get to compile.


    Compile ffmpeg
    Pros:


    Cons:
    • You have to compile.
    • Bigger download than static build due to dependencies and sources.

  7. #7
    Join Date
    Dec 2006
    Beans
    6,932

    Re: How to convert audio file of type G.723.1 into wav format using sox?

    Hmmm... love to see a sample of one of these files...
    You think that's air you're breathing now?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •