Skip to content

Praat script that transplants prosody of a donor sentence to a receiver sentence.

Notifications You must be signed in to change notification settings

timjzee/transplant-prosody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Formatting

Audio files should be annotated as follows:

alt text

.wav and .TextGrid files should be named as follows:

Sentence ID Nativeness Proficiency Speaker No. Extension
CV4 - L2 _ B1 _ 4 .wav
CVC1 - L1 _ 2 .TextGrid

Note that Sentence ID and Nativeness should be separated by a hyphen -, whereas the other fields are separated by underscores _.

Requirements

  • .wav files and corresponding .TextGrid files should be located in the same folder.
  • When providing file paths use forward slashes "/" (the POSIX standard).
  • Corresponding donor and receiver TextGrids should have the same amount of syllables. Realizations that have a different amount of syllables for a word compared to the majority of productions are ignored. Differences in syllable intervals as a result of the presence or absence of pauses are resolved by automatically inserting a small empty interval at relevant times. The script throws a warning message if the two TextGrids somehow still differ in syllable count.
  • Both TextGrids should have empty intervals either side of the actual utterance (see TextGrid above).

Usage

  • Before transplantation, use Praat's pitch analysis to find the best settings (time step, min Hz, max Hz). You will need these settings for each audio file.
  • Download the transplantProsody.praat file in this repository.
  • Praat > Open Praat script > transplantProsody.praat > Open
  • Run > Run
  • Give sentence ID (e.g. CV1; see Formatting section above).
  • Fill out the complete path to folder containing donor and receiver files.
  • Provide path to output folder.
  • OK
  • Specify whether you would like manual control over prosody combinations.
  • Continue
  • Provide receiver and donor labels (these can be found in the table accompanying this pop-up screen)
  • Continue
  • If you opted for manual prosody selection:
    • Select the manipulations you would like to carry out.
    • Continue
  • Choose the optimal settings for pitch analysis of both speakers.
  • Continue
  • The script will now take a few minutes to carry out all transplantations.
  • The resynthesised sound files should be saved to the output folder you specified at the start.
  • By viewing the manipulation objects, you can get a visual representation of what has been changed.

Schematic overview

alt text

About

Praat script that transplants prosody of a donor sentence to a receiver sentence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages