Lip synchronization with a sound file
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Lip synchronization with a sound file
Hello! I found and tried some Blink and Lip Flap scripts, including the one with playing sound detection. But lip animation still looks horribly unnatural. I want to make lip synchronization with the current sound file playing in the voice channel, just like in professional-made visual novels, for ex. SciADVs. Is it possible for Ren'Py to do so? Even if you have to do some hard-code directly with Python.
- wyverngem
- Miko-Class Veteran
- Posts: 615
- Joined: Mon Oct 03, 2011 7:27 pm
- Completed: Simple as Snow, Lady Luck's Due,
- Projects: Aether Skies, Of the Waterfall
- Tumblr: casting-dreams
- itch: castingdreams
- Location: USA
- Contact:
Re: Lip synchronization with a sound file
How realistic do you want the mouth animations? You could set up it's own ATL for a layeredimage and find a way to animate it with code. However, I think it would mean you going line by line to change the animations.
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Lip synchronization with a sound file
It is certainly do-able in Ren'Py, though you will have to be reasonably familiar with Python and get to know how things such as auto-voice and DynamicDisplayables work. I would suggest, if you do try this as a starter project, look at something like Rhubarb LipSync to generate files containing the time=>lip_shape info, read that in and use a Dynamic Displayable to output just the characters mouth. A DD will/can update its shown image dynamically at every frame, so you'd want to just map the current position of the voice audio and resolve which mouth shape to show.
(note: audio is rather low volume, oops)
https://github.com/DanielSWolf/rhubarb- ... c/releases
I've got a long day at work tomorrow so need sleep now. Might be able to help more later in the week.
(note: audio is rather low volume, oops)
https://github.com/DanielSWolf/rhubarb- ... c/releases
I've got a long day at work tomorrow so need sleep now. Might be able to help more later in the week.
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Re: Lip synchronization with a sound file
viewtopic.php?f=8&t=4010&start=15Encritary wrote: ↑Sun Mar 10, 2019 11:57 am Hello! I found and tried some Blink and Lip Flap scripts, including the one with playing sound detection. But lip animation still looks horribly unnatural. I want to make lip synchronization with the current sound file playing in the voice channel, just like in professional-made visual novels, for ex. SciADVs. Is it possible for Ren'Py to do so? Even if you have to do some hard-code directly with Python.
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Ocelot