Skip to content

Deep understanding and modelling of the hierarchical structure of prosody

License

Notifications You must be signed in to change notification settings

gerazov/prosodeep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProsoDeep

Deep understanding and modelling of the hierarchical structure of Prosody

The ProsoDeep project seeks to gain a deeper understanding of the hierarchical structure of the language of prosody through the utilisation of deep models. The models are designed to facilitate the advanced exploration of prosodic phenomena in lingustics, as well as advancements in speech technologies that rely both on the synthesis of prosody, e.g. expressive text-to-speech (TTS) systems, and its analysis, e.g. automatic speech recognition (ASR) and speech emotion recognition (SER).

The models

The different models developed within the ProsoDeep project are based on the Superposition of Functional Contours (SFC) model, which is a top-down approach that aims to decompose prosodic contours into their constituent functionally relevant elementary contours, named also prosodic prototypes or clichés [sfc]. They include the:

Code

The code implementation for all of the models is written in Python and is available as free software under a GNU General Public License v3.

The code includes a code base package named prosodeep and a main execution script prosodeep.py. The script controls the execution flow and carries out data loading, model initialisation, training and evaluation. Instructions on its use and the various parameters will be made available soon on Read the Docs at https://prosodeep.readthedocs.io/

Modules

The prosodeep package comprises the following modules:

  • prosodeep_params.py -- parameter setting module that includes (this list is not exhaustive):
    • model selection -- which type of contour generators to use, and what training approach to use, i.e. joint backpropagation training or analysis-by-synthesis,
    • model hyperparameters -- number of points to be sampled from the pitch, number of training iterations, number of hidden units, layers, type of activation, learning rate, regularisation parameters, type of optimizer, early stopping, validation and test set ratios,
    • data related parameters -- type of input data, phrase level functional contours, local functional contours,
    • general control parameters -- use of preprocessed data, use of trained models, plotting, saving.
  • prosodeep_corpus.py -- holds all the functions that are used to consolidate and work with the corpus of data that is directly fed and output from the SFC model. The corpus is a Pandas data frame object, which allows easy data access and analysis.
  • prosodeep_data.py -- comprises functions that read the input data files and calculate the $f_0$ and duration coefficients,
  • prosodeep_learn.py -- holds the training functions for backpropagation and analysis_by_synthesis,
  • prosodeep_model.py -- holds all of the neural network models used by the various prosody models,
  • prosodeep_dsp.py -- holds DSP functions for smoothing the pitch contour based on SciPy,
  • prosodeep_plot.py -- holds the plotting functions based on matplotlib and seaborn.

Currently, prosodeep supports the standard Praat TextGrid annotations, and calculates pitch based on Praat PointProcess pitch mark files. We plan to integrate state-of-the-art pitch extractors in the near future, e.g. the Kaldi pitch extractor.

The PySFC implementation can be found at https://github.com/gerazov/pysfc

Python ecosystem

Python was chosen as an implementation language because of the powerful scientific computing environment that is completely based on free software. The code is built upon NumPy within the SciPy ecosystem. The neural network models and their training were implemented in PyTorch, which is a powerful deep learning platform centered on Python that allows for rapid model prototyping and easy debugging. Great attention was put on code readability, which is also one of the features of good Python, augmented with detailed functions docstrings, and comments. The code is segmented in Spyder cells for rapid prototyping. Other packages used in the code include:

  • scikit-learn -- for machine learning utility functions,
  • pandas -- for data structuring and manipulation,
  • matplotlib -- for result plotting, and
  • seaborn -- for plotting histograms.

Finally, the whole code has been licensed as free software with a GNU General Public License v3. The code can be found on GitHub: https://github.com/gerazov/prosodeep

Acknowledgement

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie Actions (MSCA) grant agreement No 745802: “ProsoDeep: Deep understanding and modelling of the hierarchical structure of Prosody”.

References

ProsoDeep

  • [vrpm] Gerazov Branislav, Gérard Bailly, Omar Mohammed, Yi Xu, and Philip N. Garner, “Embedding Context-Dependent Variations of Prosodic Contours using Variational Encoding for Decomposing the Structure of Speech Prosody,” Workshop on Prosody and Meaning: Information Structure and Beyond, Aix-en-Provence, France, 8 November 2018. [pdf]
  • [vpm] Gerazov Branislav, Gérard Bailly, Omar Mohammed, Yi Xu, and Philip N. Garner, “A Variational Prosody Model for the decomposition and synthesis of speech prosody,” in ArXiv e-prints, 22 June 2018. https://arxiv.org/abs/1806.08685
  • [wsfc] Gerazov Branislav, Gérard Bailly, and Yi Xu, “A Weighted Superposition of Functional Contours model for modelling contextual prominence of elementary prosodic contours,” in Proceedings of Interspeech, Hyderabad, India, 02 – 07 Sep, 2018. [pdf]
  • [pysfc-tones] Gerazov Branislav, Gérard Bailly, and Yi Xu, “The significance of scope in modelling tones in Chinese,” in Tonal Aspects of Languages, Berlin, Germany, 18 – 20 Jun, 2018. [pdf]
  • [pysfc] Gerazov Branislav and Gérard Bailly, “PySFC – A System for Prosody Analysis based on the Superposition of Functional Contours Prosody Model,” in Speech Prosody, Poznan, Poland, 13 – 16 June, 2018. [pdf]
  • [sfc] Bailly, Gérard, and Bleicke Holm, “SFC: a trainable prosodic model,” Speech communication 46, no. 3: 348-364, 2005. [pdf]

About

Deep understanding and modelling of the hierarchical structure of prosody

Resources

License

Stars

Watchers

Forks