A high-fidelity, dependency-free Python tool for converting proprietary Olympus/Philips .DS2 files to standard MP3 and WAV.
DS2 (Digital Speech Standard Pro) is a highly compressed speech format used by professional digital dictation devices. This project provides a native Python implementation of the CELP (Code-Excited Linear Prediction) decoder, reverse-engineered for bit-exact accuracy.
- Bit-Exact Decoding: Accurate reconstruction of speech with professional lattice synthesis filters.
- Resampling: Automatically resamples 12kHz/16kHz DS2 audio to 44.1kHz for universal MP3 player compatibility.
- Recording Pause Handling: Correctly handles recording pauses and edits within the stream.
- Zero Binaries: No ffmpeg, libav, or DLLs required for the core decoding process.
Ensure you have Python 3.8+ installed.
pip install -r requirements.txtBatch Convert a Directory:
python ds2_to_mp3.py ./my_recordings/Convert a Single File:
python ds2_to_mp3.py recording.DS2DS2 (Digital Speech Standard Pro), profesyonel dikte cihazları (Olympus, Philips vb.) tarafından kullanılan, yüksek sıkıştırmalı bir ses formatıdır. Bu proje, özel CELP kod çözücü mimarisini hiçbir dış kütüphaneye (ffmpeg vb.) ihtiyaç duymadan doğrudan Python üzerinden çalıştırır.
- Kusursuz Çeviri: Profesyonel "lattice synthesis" filtreleri ile kayıpsız bir koda çözme işlemi.
- Evrensel Uyumluluk: 12kHz/16kHz ham ses verisini, tüm cihazların çalabileceği 44.1kHz standardına yükseltir (MP3 için).
- Kesinti Yönetimi: Kayıt sırasında yapılan duraklatmaları fark eder ve sesi bozmadan birleştirir.
- Kurulumsuz Kullanım: Dışarıdan .exe veya .dll dosyası gerektirmez.
Python 3.8+ yüklü olduğundan emin olun.
pip install -r requirements.txtTüm Klasörü Dönüştürmek İçin:
python ds2_to_mp3.py ./ses_kayitlarim/Tek Bir Dosyayı Dönüştürmek İçin:
python ds2_to_mp3.py kayit.DS2MIT License.