Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation


AutoRPT: Automatic Rapid Prosody Transcription Tool

AutoRPT is a Python command-line tool designed to automatically annotate prosodic features following the Rapid Prosody Transcription (RPT) protocol. It is currently trained on Standard American English (SAE), with future updates planned to include other language varieties.

About the Project

This project is being developed by a team of undergraduate and graduate students, led by PI Associate Professor Jonathan Howell at Montclair State University. It is produced in conjunction with research funded by NSF grant 2316030, focusing on identifying the prosodic features of “Three Varieties of English in NJ”. The tool is designed to streamline the annotation of prosodic events using Rapid Prosodic Transcription (RPT), as outlined by Cole et al. (2017).

Two versions

The currently maintained AutoRPT is found at Howell-Prosody-Lab/AutoRPT and is an LSTM. This is an archive of the original Recurrent Neural Network framwork, which is more focused on the automatic annotation of prosodic events. The LSTM framework is more focused on the bootstrapping of annotations so that they can be reviewed by human annotators.

Prerequisites

  1. Ensure that you have Python version 3.7 or higher. You can download the latest version of Python here.
  2. Download and unzip a copy of the repo.
  3. It is recommended to create a virtual environment to manage the dependencies specific to AutoRPT.

Step 1: Create a Virtual Environment (Optional but Recommended)

Setting up a virtual environment ensures that package installations for AutoRPT do not interfere with other Python projects on your machine. Use the command line/terminal to run the following script:

For Windows:

python -m venv AutoRPT
AutoRPT\Scripts\activate

For macOS/Linux:

python3 -m venv AutoRPT
source AutoRPT/bin/activate

Step 2: Install Dependencies

Navigate to the directory containing the AutoRPT folder (this may be in your Downloads unless you have since moved it). Navigate into the AutoRPT-main\AutoRPT-main folder (you should be able to see requirements.txt when you open the folder in the system explorer or use DIR). You can install the required dependencies by running:

pip install -r requirements.txt

This command will install all the necessary Python packages listed in the requirements.txt file.

Required Python Packages

The key dependencies for AutoRPT are:

  1. Praat-ParselMouth: A Python interface to Praat for conducting phonetic analyses.
  2. TextGrid: A library used to handle Praat TextGrid objects for annotating speech.
  3. Scikit-learn: A widely-used library for machine learning tasks such as classification and regression.
  4. Pandas: A powerful data manipulation and analysis library.
  5. PyTorch: An open-source deep learning framework, used for building and training machine learning models.

Model Pipeline

Install the SpacY model pipeline.

python -m spacy download en_core_web_sm

Step 4: Run AutoRPT

Navigate into the folder with the main file. e.g.

cd AutoRPT-main/AutoRPT-main/AutoRPT

AutoRPT:

Example of how to call the tool: The example path is in green. Start typing after the >.

  1. Remember to include 'python' before calling the AutoRPT.py file (This is highlighted in Light Blue in the image) ** All parameters are highlighted yellow in the image ** All manually entered file paths are highlighted orange in the image
  2. Enter --textgrid and then inside either "" or '' include the path to the desired Textgrid file
  3. Enter --wav and then inside either "" or '' include the path to the desired wav file
  4. Enter --tier and then inside either "" or '' include the name of the target tier from the Textgrid file In the general folder of AutoRPT there will be Pitch and Intensity CSVs, feel free to delete these as they are no longer of use.

Within the csv_outputs folder there will be 3 files (per Wav/Textgrid run). These are CSVs that contain the predictions of the model.

Within the tg_outputs folder there will be 3 files (per Wav/Textgrid run). These are Textgrids that contain the predictions of the model.

Step by Step CMD Example

C:\YourFilePath>cd AutoRPT C:\YourFilePath\AutoRPT>python AutoRPT.py --textgrid "YourTextgridFile.TextGrid" --wav "YourWavFile.wav" --tier "YourTierName"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages