MakingChatbots / ivr-tester

An automated testing framework for Interactive Voice Response (IVR) call flows
https://ivr-tester.makingchatbots.com/
MIT License
26 stars 9 forks source link

Raw audio format #55

Closed bcomerford closed 3 years ago

bcomerford commented 3 years ago

Is there a preferred audio player to listen to playback? The .raw format isn't recognized by any of my standard applications. Thanks!

SketchingDev commented 3 years ago

Personally I prefer to convert them to a wave file using SoX. The wave file can then be opened in your audio player of choice:

sox -r 8000 -t raw -e u-law -c 1 -b 8 input.raw -t wav output.wav

Alternatively you can use Audacity:

  1. File > Import > Raw Data...
  2. Provide following in 'Import Raw Data' window
    • Encoding: U-Law
    • Byte-order: Little-endian
    • Channels: 1 Channel (Mono)
    • Start offset: 0
    • Amount to import: 100%
    • Sample Rate: 8000Hz
  3. Import

Let me know if you have any problems with the above. I will make sure I add these instructions to the README as it's a good question!

It's worth noting that the recording is only of the inbound audio. You'll be able to hear what IVR Tester heard, but not any of the outbound DTMF tones that IVR Tester produced.

bcomerford commented 3 years ago

Awesome, I downloaded ocenaudio and was toying around with the encoding but just plugged in the specs you provided and it works great!

SketchingDev commented 3 years ago

Splendid! Glad to hear it worked