Skip to content

Python audio pipeline for preparing data for cherokeelanguage/online-exercises

License

Notifications You must be signed in to change notification settings

CherokeeLanguage/online-exercises-audio-pipeline

Repository files navigation

Online exercises audio pipeline

This repository contains python modules to process WAV audio from first language speakers into individual terms for use on the CherokeeLanguage/online-exercises site.

High level approach

  1. Create a new folder in data/ for each dataset
  2. Annotate WAV files from first-language speakers with ELAN
    • Use shorthand phonetics with no tone
  3. Export annotations as TSV
  4. Provide a CSV file with rich (tonal) phonetics, syllabary, and English (terms CSV)
    • Should have columns: NEEDS_FIXING, VOCAB_SET, ENGLISH, CHEROKEE, SYLLABARY, AUDIO
    • NEEDS_FIXING and AUDIO can be blank to start
  5. Write a dataset.json file that says where to find each of the above (see common/structs.py and data/jw-living-phrases/dataset.json)
  6. Run the following to interactively match an annotated segment to each row in the terms CSV.
    python -m match_audio data/<your-data-set>
    
  7. Generate English audio with TTS if needed
  8. Copy audio and JSON files into online-exercises repository

Setup

If you also have a copy of CherokeeLanguage/audio-lessons-generator-python they can share a symlinked cache folder.

TODOS

English audio generation (generate_english_audio module) needs testing and a brush up for new code structure

Currently, English audio generation expects files to be in slightly different places as it was mostly just picked up from where it lived unmerged on CherokeeLanguage/audio-lessons-generator-python.

create_cards is a bit fragile

The current implementation expects a file with English followed by Cherokee for every term. We could relax this to just Cherokee annotations, pull the English from the CSV, and then generate the English text with the other module.

About

Python audio pipeline for preparing data for cherokeelanguage/online-exercises

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published