Lip File Format: Difference between revisions
Lou Montana (talk | contribs) (Page refresh) |
Lou Montana (talk | contribs) (Add female animation list) |
||
Line 15: | Line 15: | ||
It is then followed with lines of {{hl|<timestamp>, <value>}}: | It is then followed with lines of {{hl|<timestamp>, <value>}}: | ||
* {{hl|<timestamp>}} is a 3 digits precision float ranging between 0.000 (beginning of the file) and the audio file duration in seconds | * {{hl|<timestamp>}} is a 3 digits precision float ranging between 0.000 (beginning of the file) and the audio file duration in seconds | ||
* {{hl|<value>}} is an integer ranging between 0 and 7 (included) which corresponds to | * {{hl|<value>}} is an integer ranging between 0 and 7 (included) which corresponds to an animation index in: | ||
: {| class="valign-top" | |||
| <sqf inline>"CfgHeads" >> "Default_A3" >> "Grimaces" >> "Lipsync" >> "vizem"</sqf> | |||
| <spoiler text="Show Male animation list"> | |||
* {{hl|A3\Characters_F\Heads\Anim\male\Neutral.rtm}} | * {{hl|A3\Characters_F\Heads\Anim\male\Neutral.rtm}} | ||
* {{hl|A3\Characters_F\Heads\Anim\male\a.rtm}} | * {{hl|A3\Characters_F\Heads\Anim\male\a.rtm}} | ||
Line 25: | Line 28: | ||
* {{hl|A3\Characters_F\Heads\Anim\male\i.rtm}} | * {{hl|A3\Characters_F\Heads\Anim\male\i.rtm}} | ||
</spoiler> | </spoiler> | ||
|- | |||
| <sqf inline>"CfgHeads" >> "WomanHead_A3" >> "Grimaces" >> "Lipsync" >> "vizem"</sqf> | |||
| <spoiler text="Show Female animation list"> | |||
* {{hl|A3\Characters_F\Heads\Anim\female\Neutral.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\a.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\e2.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\f.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\m.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\y.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\v.rtm}} | |||
* {{hl|A3\Characters_F\Heads\Anim\female\i.rtm}} | |||
</spoiler> | |||
|} | |||
The first timestamp-value line is always {{hl|0.000, 0}}.<br> | The first timestamp-value line is always {{hl|0.000, 0}}.<br> |
Latest revision as of 15:20, 8 May 2025
Lip is a humanly readable text file generated by WaveToLip from any wss, wav, or ogg sound file and produces lip expressions (lip sync) for the speaking character.
Syntax
The file begins with the frame step value frame = <value>, e.g frame = 0.040 (this value is hardcoded in WaveToLip).
It is then followed with lines of <timestamp>, <value>:
- <timestamp> is a 3 digits precision float ranging between 0.000 (beginning of the file) and the audio file duration in seconds
- <value> is an integer ranging between 0 and 7 (included) which corresponds to an animation index in:
"CfgHeads" >> "Default_A3" >> "Grimaces" >> "Lipsync" >> "vizem" - A3
\Characters_F \Heads \Anim \male \Neutral.rtm - A3
\Characters_F \Heads \Anim \male \a.rtm - A3
\Characters_F \Heads \Anim \male \e2.rtm - A3
\Characters_F \Heads \Anim \male \f.rtm - A3
\Characters_F \Heads \Anim \male \m.rtm - A3
\Characters_F \Heads \Anim \male \y.rtm - A3
\Characters_F \Heads \Anim \male \v.rtm - A3
\Characters_F \Heads \Anim \male \i.rtm
"CfgHeads" >> "WomanHead_A3" >> "Grimaces" >> "Lipsync" >> "vizem" - A3
\Characters_F \Heads \Anim \female \Neutral.rtm - A3
\Characters_F \Heads \Anim \female \a.rtm - A3
\Characters_F \Heads \Anim \female \e2.rtm - A3
\Characters_F \Heads \Anim \female \f.rtm - A3
\Characters_F \Heads \Anim \female \m.rtm - A3
\Characters_F \Heads \Anim \female \y.rtm - A3
\Characters_F \Heads \Anim \female \v.rtm - A3
\Characters_F \Heads \Anim \female \i.rtm
- A3
The first timestamp-value line is always 0.000, 0.
The final line is <fileDuration>, -1, indicating the lip movement's end.
frame = 0.040
0.000, 0
0.080, 2
// ...
11.080, -1