SwatPhonLab / UltraTrace

A Free/Open-Source tool for manual annotation of Ultrasound Tongue Imaging data.
GNU General Public License v3.0
10 stars 5 forks source link

Test sound files #122

Closed keggsmurph21 closed 4 years ago

keggsmurph21 commented 4 years ago

These patches add support for loading (but not playing back) .wav, .flac, .ogg, and .mp3 files. Unfortunately, there is a lot of code repetition between these classes as they're all basically wrappers around a pydub.AudioSegment.

However, we need to separate them out into different classes because

  1. They handle different file extensions / mime types
  2. They rely on the third party library pydub, and we don't want to be importing that in base.py.