GithubHelp home page GithubHelp logo

caleblitalien / online-exercises-audio-pipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cherokeelanguage/online-exercises-audio-pipeline

0.0 0.0 0.0 120.56 MB

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

License: MIT License

Shell 0.58% Python 99.42%

online-exercises-audio-pipeline's Introduction

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.

online-exercises-audio-pipeline's People

Contributors

charliemcvicker 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.