跳到主要内容

工具的使用方法

使用方法

在命令行上运行 CriLipsMake2,并输入音频文件。
将生成保存了用于唇形同步动画曲线信息的文本文件。

命令参数

指定 -h 运行 CriLipsMake2.exe 时,会显示如下简易帮助

> CriLipsMake2.exe -h
|||||||||||| CriLipsMake2 Ver.X.YY.ZZ ||||||||||||
Copyright (c) 2025 CRI Middleware Co., Ltd.
usage: -in=sample.wav

[Required]
-in=<VALUE> :<Input File(.wav)>
-i <VALUE> :Same as -in

[Optional]
-out=<VALUE> :[Output File(.csv)] (Default: Same directory and basename as input file)
-o <VALUE> :Same as -out
-smooth_mode=<VALUE> :Set the smoothing level for the output animation. (Default: {normal} )
-m <VALUE> :Same as -smooth_mode
-volthreshold=<VALUE> :Volume threshold that is treated as silence. [-96 - 0] (Default: -40)
-vol <VALUE> :Same as -volthreshold
-enable_adxlip_compat :Enable output of .adxlip file (aiueo-based morph target blend format) for CriLipsMake.exe compatibility.
-adxlip :Same as -enable_adxlip_compat
-enable_lab_phoneme :Enable output of .lab file (timing-based audio segment).
-lab :Same as -enable_lab_phoneme
-use_external_device :Use external device for inference.
-e :Same as -use_external_device
-behaviour_params=<VALUE> :<Input Behaviour Params File(.json)>
-params <VALUE> :Same as -behaviour_params
-enable_auto_detection_mouth_open:[Experimental]Automatically detect the mouth opening size from the intonation of the voice.
-a :Same as -enable_auto_detection_mouth_open
-verbose :Print verbose logs.
-v :Same as -verbose

命令执行示例1

> CriLipsMake2.exe -in=sample.wav -out=sample.csv
  • -in
    • 指定要分析的 wav 文件
  • -out
    • 指定分析结果文件的输出路径字符串
    • 输出文件会被强制覆盖,请注意不要覆盖重要的同名文件

命令执行示例2

使用简化参数的命令示例。
简化参数时,<VALUE> 用空格分隔而不是 =。

> CriLipsMake2.exe -i sample.wav -o sample.csv

命令执行示例3

启用 .adxlip 文件兼容输出,同时指定平滑度。

> CriLipsMake2.exe -in=sample.wav -out=sample.csv -smooth_mode=quick -enable_adxlip_compat
  • -smooth_mode=quick
    • 指定平滑度为 quick 以生成唇形同步动画
    • 对于使用 adxlip 文件进行变形的角色模型,指定 quick 时动画氛围会与以往类似

关于平滑化的详细说明请参阅以下内容。

命令执行示例4

启用开发中的 β 版功能,根据音频的抑扬推测嘴巴张开。

> CriLipsMake2.exe -in=sample.wav -out=sample.csv -enable_auto_detection_mouth_open

分析结果的质量无法保证,今后更新可能会变更规格或行为。
请理解这是 β 版功能后再使用。

本功能会以 large、medium、small 三个等级推测嘴巴张开。
具体的嘴巴张开大小可通过以下选项进行更改。