Search code examples
c#pcmgsm

Convert GSM Audio to WAV PCM


Does anyone know how to convert GSM audio into PCM WAV via C#? I have tried to find a viable solution on the Internet to no avail.


Solution

  • Here is a link to a C library that encodes and decodes GSM files:

    http://user.cs.tu-berlin.de/~jutta/gsm/gsm-1.0.13.tar.gz

    and a link to more information on the subject:

    http://user.cs.tu-berlin.de/~jutta/toast.html

    It should be possible to either compile the C code as a DLL and call it from a C# application using PInvoke, or else incorporate the methods directly into your C# app.

    Once you have the GSM data decoded into sample data, writing it out to a WAV file is very simple.