To run the program we first need to create the virtual environment (venv)
CTRL + Shift + P- Search
Run Task - Now click on
Create venv, thenInstall requirements
Then we activate it with in cmd (or any other terminal) using
.venv\Scripts\activate
Now, you should be able to run the application with
python -m app.src.main
If everything worked correctly, you should see this window:
Now you can adjust the settings before starting. Most importantly the selection of the correct audio input device and threshold for audio detection.
If speech threshold is set to zero, the character will be animated with a completely opened mouth. By increasing the value, you can create a stage between closed mouth to opened mouth, where the mouth is animated using random half opened mouths.
Settings that worked well for me personally where:
- Ambient/Ignore: -45
- Speech: 8 (-37)
Pressing Start Listening will start the application.
The project contains a config json file, which determines which images to use. You can paste your own pictures in the /assets/frames directory and replace the active_preset with your newly created preset in presets.
