skip to Main Content

I am trying to convert ds2 format audio file to wav in a python / c++ based solution. Basically, I want to read ds2 audio in Linux with any codec. I tried ffmpeg and pydub, but failed. Is there any other library or solution which can handle this conversion on linux?

ffmpeg -i audio_input.DS2  -acodec dss_sp -ar 16000 -ac 2 output.wav

with ffmpeg I used the above command and it has thrown an error. Can anyone suggest which library would make it possible on CentOS? or any piece of command which can help to read ds2 which can be converted to any other conventional format.

2

Answers


  1. As of early 2021, the Olympus DSS Pro Audio format (aka Digital Speech Standard Pro or DS2) are not supported by any software designed to run on Linux. There is an open ticket for ffmpeg to support DS2.

    There are only a few softwares for Windows that supports this format. These include:

    These may be used to convert the audio into an open format, such as WAV. From there you can convert into your desired formats using ffmpeg or similar.

    Some of these might run on Linux using the WINE compatibility layer. There is at least positive reports for DSS Player Lite.

    Login or Signup to reply.
  2. On linux with wine there is also switch from nch.com.au, free for personal use only.

    The graphical interface works fine on my Fedora desktop and you can use cli for automation

    Here a example with output in ~/Musics by default

    /usr/bin/wine /home/mylogin/.wine/dosdevices/c:/Program Files (x86)/NCH Software/Switch/switch.exe -convert "Z:homemylogintranscriptionsinterviewsmyinterview.DS2" -format .wav -overwrite ALWAYS -hide
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search