Git Product home page Git Product logo

entn-at / prosodic-lid-globalphone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samsucik/prosodic-lid-globalphone

0.0 1.0 0.0 137.16 MB

MInf project exploring the use of prosodic information in language identification from speech, using the x-vector architecture in Kaldi, on the GlobalPhone dataset.

License: Apache License 2.0

Shell 75.10% Awk 0.01% Perl 9.93% Python 14.07% HTML 0.76% MATLAB 0.12% sed 0.01% Makefile 0.01%

prosodic-lid-globalphone's Introduction

Prosodic language identification from speech

This is the project I created for my Year 4 dissertation at the University of Edinburgh (the dissertation itself can be found here).

This work explores the use of prosodic features (in addition to the standard acoustic features) for better language identification, using the recently proposed X-vector approach, speech data in 19 languages from the GlobalPhone corpus, and the Kaldi toolkit.

Why should I care?

Basically, my results show that adding prosodic features (in particular the Kaldi pitch) greatly improves LID performance, especially when doing intermediate fusion of different feature types at the utterance embedding level (as opposed to early fusion at the speech frame level). Also, the implementation in globalphone-xvectors/ is a standard Kaldi recipe, easy to re-use for any user of Kaldi willing to further explore prosodic LID. Why not giving it a try, perhaps on a different dataset or with different prosodic features? You can also skim through my dissertation first, it's public, based entirely on this repository, and its repository contains many detailed results.

How to use it

Obviously, you should have Kaldi installed, and also have access to the GlobalPhone corpus. For training the X-vector TDNN, you might want to have some GPUs at hand. I myself was using a GPU cluster with Slurm as the job manager. Some more specific details on the kind of computing environment you will need:

  • having a Conda environment named lid, based on this environment file and with requirements from requirements.txt installed
  • use Python 3, or else things can break
  • as for scripts from the egs/ directory, in particular from the steps and utils directories of egs/wsj/s5, feel free to ignore the version of egs/ included in this repository and use your own, but make sure that you are on par or ahead of this Kaldi pull request (it fixed a few instances in which things were breaking for Python 3).

To actually make it all run:

  1. Start by creating a user-specific config in conf/user_specific_config.sh by cloning and changing conf/user_specific_config-example.sh.
  2. Skim through run.sh to get an idea of how running an experiment works.
  3. Skim through the example/default experiment config in conf/exp_default.conf, which shows all available options. Essentially, the idea is that with an appropriate experiment config, you should be able to run an experiment end-to-end with run.sh (if your experiment uses x-vector (intermediate) fusion, then you'll need to additionally run run_intermediate_fusion.sh as well). Here, an experiment consists of preparing the data, training and evaluating the whole system using a particular combination of feature types.
  4. For even more docs and notes, see docs/ -- it's brief and contains only explanations that I wrote after desperately not understanding something for hours and then getting it. Some of the docs also touch on very important peculiarities of the GlobalPhone corpus.
  5. Create your own experiment config file and pass it to run.sh (also familiarise yourself with the other arguments that run.sh takes -- they are pretty standard).

NOTE: cluster.md, cluster_setup.sh, install_conda.sh and install_kaldi.sh are meant for people making this repo run in the UoE SoI MSc teaching cluster.

If something breaks, try to use your brain, though I cannot absolutely guarantee that all the code is 100% correct. It worked for me.

Analysing results

Some useful scripts to facilitate results analysis can be found in helper-scripts-for-report/. Even more useful code, graphs of all kinds, additional notes and examples of analysis can be found in my dissertation repo.

FAQ

Will you continue this project? I'm not planning to, even though this work asks for a continuation -- at least in the form of trying to reproduce my very positive results in a more challenging context -- on more noisy data, such as the NIST LRE datasets. I myself, however, prefer working with text at the moment, not so much with speech.

Any other question Have you tried looking up an answer in my dissertation repo and in this repo? In particular, in the docs and the example config file? If yes, and you still don't have an answer, do get in touch with me or file an issue here.

prosodic-lid-globalphone's People

Contributors

samsucik avatar

Watchers

James Cloos 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.