LIP Composer 0.18-git

   (0 reviews)
Sign in to follow this  

1 Screenshot

About This File

Python script I wrote to automate generating LIP files from text.

It works by converting entered text to CMU phonemes using CMU pronouncing dictionary, and then converting CMU phonemes to KotOR phonemes. Keyframe times are linearly interpolated between 0.0 and entered sound length. When a word is not present in CMU dictionary, it will be converted to phonemes letter by letter.

Requirements:

Usage:

  1. Determine the length of your sound file
  2. Edit tools_dir variable in compose_lip.py to point to reone-tools installation directory
  3. Execute the script from the command line, enter text and sound length when asked: `python compose_lip.py`
  4. output.lip is your generated LIP file - output.lip.json is its JSON representation

Tweaking:

  • Add words that were not recognized to cmudict-0.7b.txt
  • Edit output.lip.json, compile using reone-tools: `reone-tools --to-lip output.lip.json`

List of KotOR phonemes (aka shapes):

  • 0 - EE
  • 1 - EH
  • 2 - SCHWA
  • 3 - AH
  • 4 - OH
  • 5 - OOH
  • 6 - Y
  • 7 - S/TS
  • 8 - F/V
  • 9 - N/NG
  • 10 - TH
  • 11 - M/P/B
  • 12 - T/D
  • 13 - J/SH
  • 14 - L/R
  • 15 - K/G
  • Like 1
  • Thanks 1



User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.