-
Notifications
You must be signed in to change notification settings - Fork 1
Wiki
- Скачайте установщик: https://www.python.org/downloads/
- Запустите его и обязательно отметьте галочку «Add Python to PATH» внизу окна.
- Нажмите «Install Now» и дождитесь окончания.
Проверка: откройте cmd, введите python --version и Enter. Должна появиться
версия (например, 3.12.x).
- Скачайте архив для Windows: https://www.gyan.dev/ffmpeg/builds/ (файл
ffmpeg-release-essentials.zip) или с https://ffmpeg.org/download.html. - Распакуйте архив в любую папку (например,
C:\ffmpeg). - Добавьте папку bin в PATH:
- Win + R → введите
sysdm.cpl→ Enter. - Вкладка Дополнительно → Переменные среды.
- В «Переменные среды пользователя» выберите Path → Изменить →
Создать → укажите путь к папке
bin(например,C:\ffmpeg\bin). - OK во всех окнах.
- Win + R → введите
- Закройте и снова откройте cmd. Проверка: введите
ffmpeg -version— должна появиться информация о версии.
- Скачайте или склонируйте этот проект и откройте его папку.
- Дважды щёлкните по start.bat.
- При первом запуске установятся зависимости (может занять минуту).
- Откроется окно программы.
Две разных библиотеки для распознавания речи, рекомендую попробовать обе и выбрать понравившуюся
Выберите размер модели распознавания речи. Чем больше модель - тем точнее результат, но выше нагрузка на ПК
Рекомендация: не используйте модели medium и large без необходимости: они требуют много оперативной памяти и при длинных аудио могут сильно тормозить или падать. Для большинства записей достаточно base или small
Для скачивания модели нажмите на кнопку "Скачать модели". Рекомендую скачивать модели типа "small". После загрузки выберете в меню нужную вам модель. Примечание: язык модели и язык в параметрах должен совпадать
Путь к папке с формами рта нужно брать из BBS-мода (тот путь, что
указывается в треке texture), а не из проводника
Включённый smooth задаёт кейфреймы для трека позы pose, а не для texture
Название текстуры по умолчанию, которая показывается, когда в аудио тишина. Должно совпадать с именем файла одной из форм рта
В папке bbs_models/ лежат риги, совместимые с авто-липсинком. Переместите
нужный риг в каталог моделей BBS.
| Вариант | Описание |
|---|---|
| Mouth | Модель накладывается на лицо персонажа. Анимация рта — смена текстур. |
| Mouth RIG | Полноценный риг рта (зубы, язык и т.д.). Плавная анимация, но менее универсален. Анимация рта — смена поз. |
- Mouth: нарисуйте свои текстуры с теми же именами, что и стандартные изображения.
-
Mouth RIG: создайте позы с названиями как в риге, затем файл
poses.jsonиз папки с моделью переместите вjson_files/.
Mouth
- Если на скине есть рот — уберите его.
- Скопируйте одно из изображений рта и нарисуйте свой вариант (если рта нет — шаг пропустить).
- Прикрепите модель к кости
Headрига персонажа.
Mouth RIG
- Откройте
texture.pngв папке с ригом рта. - Замените существующий рот своим рисунком; если на скине рта нет — сотрите эти пиксели.
- Откройте свой фильм в BBS.
- Наведите курсор на любую дорожку кейфреймов → ПКМ → иконка пресетов.
- В открывшемся меню нажмите иконку папки справа, затем закройте меню.
- В открывшуюся папку положите свой
.jsonфайл. - Наведитесь на нужную дорожку (texture или pose), поставьте курсор на тик начала аудио.
- ПКМ → пресеты → выберите только что добавленный пресет.
Рекомендую удалять
.jsonфайлы которые вы уже использовали
Вы можете добавлять поддержку других языков. Для этого в папке
json_files/maps/ создайте новый .json файл, где напишите какая форма рта
будет использоваться под каждую букву в вашем языке
Благодарю великодушный Cursor и ChatGPT, которые помогли мне в создании данного скрипта.
Благодарю добродушного МакХорса, который создал BBS мод!
- Download the installer: https://www.python.org/downloads/
- Run it and check "Add Python to PATH" at the bottom of the window.
- Click "Install Now" and wait for it to finish.
To verify: open cmd, type python --version and press Enter. You should see a version (e.g. 3.12.x).
- Download the Windows archive: https://www.gyan.dev/ffmpeg/builds/ (file
ffmpeg-release-essentials.zip) or from https://ffmpeg.org/download.html. - Extract it to any folder (e.g.
C:\ffmpeg). - Add the bin folder to PATH:
- Win + R → type
sysdm.cpl→ Enter. - Advanced tab → Environment Variables.
- Under "User variables" select Path → Edit → New → enter the path to the
binfolder (e.g.C:\ffmpeg\bin). - OK in all dialogs.
- Win + R → type
- Close and reopen cmd. To verify: type
ffmpeg -version— version info should appear.
- Download or clone this project and open its folder.
- Double-click start.bat.
- On first run, dependencies will be installed (may take a minute).
- The application window will open.
There are two different libraries for speech recognition. I recommend trying both and choosing the one you like best
Select the size of the speech recognition model. The larger the model, the more accurate the result, but the higher the load on the PC
Recommendation: do not use medium and large models unless necessary: they require a lot of RAM and can slow down or crash when processing long audio files. For most recordings, base or small is sufficient.
To download a model, click on the “Download models” button. I recommend downloading “small” models. After downloading, select the model you need from the menu. Note: the model language and the language in the settings must match
The path to the mouth shapes folder must be taken from the BBS mod (the path used in the texture track), not copied from Explorer.
When enabled, smooth mode creates keyframes for the pose track (pose), not for texture.
The default texture name shown when there is silence in the audio. It must match the filename of one of the mouth shapes (e.g. neutral mouth).
The bbs_models/ folder contains rigs compatible with auto lip sync. Copy the desired rig into your BBS models folder.
| Option | Description |
|---|---|
| Mouth | Model overlays the character’s face. Mouth animation uses texture switching. |
| Mouth RIG | Full mouth rig (teeth, tongue, etc.). Smoother animation but less universal. Mouth animation uses pose switching. |
- Mouth: draw your textures with the same names as the default images.
-
Mouth RIG: create poses with the same names as in the rig, then copy
poses.jsonfrom the model folder intojson_files/.
Mouth
- If the skin has a mouth, remove it.
- Copy one of the mouth images and draw your version (skip if there is no mouth on the skin).
- Attach the model to the character rig’s
Headbone.
Mouth RIG
- Open
texture.pngin the mouth rig folder. - Replace the existing mouth with your drawing; if the skin has no mouth, erase those pixels.
- Open your film in BBS.
- Hover over any keyframe track → Right-click → presets icon.
- In the menu that opens, click the folder icon on the right, then close the menu.
- Put your
.jsonfile in the folder that opened. - Hover over the target track (texture or pose) and place the cursor on the tick where the audio starts.
- Right-click → Presets → select the preset you just added.
It’s a good idea to remove
.jsonfiles after you’ve used them.
You can add support for other languages. In json_files/maps/ create a new .json file that maps each letter of your language to a mouth shape.
Thanks to Cursor and ChatGPT for help with this script.
Thanks to Mchorse for creating the BBS mod!