Giter VIP home page Giter VIP logo

vox2wav's Introduction

vox2wav

Converting Vox files to Wav or other formats that are easy to workaround.

What are Vox files?

VOX files are audio files used in speech applications. Usually they contain pre-recorded voice prompts. Because voice networks have relatively low bandwidth the audio used can be sampled at a fairly low rate (an ISDN "B" channel carries only 8kHz voice). Consequently, VOX files are often 8kHz (although 6kHz is also possible).

VOX files can contain audio in different formats. There are at least four different formats:

Raw A-law
Raw mu-law
8kHz 4-bit ADPCM (also known as IMA/OKI ADPCM)
6kHz 4-bit ADPCM

There is no file header inside a VOX file, only audio samples, so there is no way to know which format a particular file contains. If you play it and it sounds bad (i.e. distorted, wrong speed/pitch, or just ‘noise’), then you are not playing it back in the same way that it was recorded.

VOX files have been long associated with the Dialogic® DMV and JCT Media Boards, and customers often have collections of recorded prompts stored in "VOX format".

Using this bash file you can convert a directory full of vox files ending with .V3(this is the default value you can change it) to wav or other formats. reference

Installation

In case you don't have ffmpeg installed on you os, install with the following commands:

sudo apt update
sudo apt install ffmpeg

Converting a single file

To check all the supported codecs by ffmpeg run the following command:

ffmpeg -codecs
# or grep a specific keyword
ffmpeg -codecs | grep adpcm 

Based on the description choose a codecs that satisfies your needs.

vox_path=path-to-vox-file
wav_path=output-path
ffmpeg -f u8 -c adpcm_ima_oki -ar 6.0k -ac 1 -i $vox_path $wav_path
Name description
-f file format, u8: unsigned 8-bit
-c file codec, adpcm_ima_oki: ADPCM IMA Dialogic OKI
-ar rate, set audio sampling rate (in Hz)
-ac channels, set number of audio channels
-i input file path

Converting a directory of vox files

vox_dir=path-to-vox-dir
wav_dir=output-dir
vox_ext=.V3
bash Vox2Wav.sh $vox_dir $wav_dir $vox_ext

vox2wav's People

Contributors

pooya-mohammadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.