メインコンテンツまでスキップ

ツールの使い方

使い方​

CriLipsMake2をコマンドライン上で実行し、音声ファイルを入力します。
リップシンク向けアニメーションカーブ情報を保存したテキストファイルが生成されます。

コマンド引数​

-h を指定して CriLipsMake2.exe を実行すると下記のような 簡易ヘルプ が表示されます。

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

[Required]

[Optional]
-in=<VALUE> :<Input File(.wav .lab)>
When a .lab file is specified, the phoneme analysis is skipped and the phonemes in the file are used as is.
-i <VALUE> :Same as -in
-out=<VALUE> :[Output File(.csv)] (Default: Same directory and basename as input file)
The following extensions are reserved for use with other flags (such as -adxlip and -lab) and cannot be specified for output files:[.adxlip .lab]
-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).
This flag is ignored when the input file is a .lab file.
-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.
This flag is ignored when the input file is a .lab file.
-a :Same as -enable_auto_detection_mouth_open
-list_interractive :Interactive mode: read input file paths (.wav .lab) line by line from stdin. Type 'exit' or 'quit' (or EOF) to finish.
-list :Same as -list_interractive
-verbose :Print verbose logs.
-v :Same as -verbose

コマンド実行例1​

> CriLipsMake2.exe -in=sample.wav -out=sample.csv
  • -in
    • 解析対象のwavファイルを指定します
    • 解析済みの.labファイルも指定できます
  • -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を指定するとこれまでと似たようなアニメーションの雰囲気になります
  • -enable_adxlip_compat
    • -out=で指定したファイルの拡張子を .adxlip にしたファイルパスでCSVとは別ファイルとして出力します。

平滑化についての詳細は以下をご確認ください。

コマンド実行例4​

開発中のβ版機能である、音声の抑揚から口の開きを推定する機能を有効にします。

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

解析結果の品質は保証されません。また、今後のアップデートで仕様や動作の変更が発生する可能性があります。
β版機能であることをご理解の上でご利用ください。

本機能ではlarge,medium,smallの3段階で口の開きを推定します。 これらの具体的な口を開く大きさは以下のオプションから変更できます。

音素ラベルファイルの入力について​

-in には音声ファイルの代わりに、時刻区間ファイル(.lab)を指定できます。
.lab を指定した場合は音声からの音素解析を行わず、ファイルに記載された音素をそのまま使ってアニメーションカーブを生成します。

> CriLipsMake2.exe -in=sample.lab -out=sample.csv

音声解析処理をすべてスキップするのでアニメーションカーブの生成が高速に行えます。

したがって、同じ音声のアニメーションカーブで異なる平滑化オプションを高速に検証したり、
ラベルの解析結果を手修正してからアニメーションカーブを作り直したい場合に有効です。

入力できるファイルの内容は -enable_lab_phoneme で出力されるものと同じ形式です。

音声ファイルを入力した場合との差異は以下のとおりです。

  • 出力されるCSVやadxlipの Vol 列は、音声波形がないため常に -96.0000(無音相当)になります
  • -volthreshold は無視されます。入力した .lab のsilをそのまま無音区間として取り扱います。
  • -enable_lab_phoneme は無視されます。入力に利用した .lab をそのまま上書きされてしまうのを防ぎます。
  • -enable_auto_detection_mouth_open は無視されます(音声の抑揚を参照できないため)
    • -behaviour_params の mouth_open_size_path で指定する口の開きの大きさは音声ファイル入力時と同様に反映されます

以下の場合はエラーになります。

  • Mpeg4-Visemesの音素名として解釈できないラベルが記載されている
  • 有効な行が1行も記載されていない(空ファイル、区切り文字がWhitespaceではない場合など)

対話モードについて​

-list_interractive(短縮形 -list)を指定すると 対話モード で起動します。
対話モード中は標準入力(stdin)から1行につき1つの入力ファイル(wavファイル、または.labファイル)のパスを受け取り、解析を繰り返します。 大量のファイルを一度に解析する際に、最小のオーバヘッドで効率よく解析できます。 また外部アプリとの連携などで本ツールを常駐させたい場合にも有効です。

> CriLipsMake2.exe -list_interractive
|||||||||||| CriLipsMake2 Ver.xx.yy.zz ||||||||||||
Copyright (c) 2025 CRI Middleware Co., Ltd.
Interactive mode.
Enter the path of a wav file (or a .lab phoneme label file) to analyze, one per line.
Startup options are applied to all files. The output path is derived from each input path.
Type 'exit' or 'quit' (or send EOF with Ctrl+Z then Enter) to finish.
input file > exit
>
  • 対話モード中は、起動時に指定したオプション(-smooth_mode や -adxlip など)が解析する全てのファイルに適用されます
  • input file >
    • -in で指定していた入力ファイル(wavファイル、または.labファイル)のパスです
    • 出力ファイルのパスは入力ファイルのパスから自動的に決定されます(入力と同じディレクトリ・同じ基本名で拡張子 .csv)
  • 対話モードを終了するには exit もしくは quit と入力するか、EOF(Ctrl+Z を入力して Enter、またはパイプの終端)を送信します
  • ファイルの解析に失敗しても、ツールが次のファイルの解析を続行できる状態であればエラーを表示して次の入力待ちに戻ります
備考

対話モードを有効にした場合、音声によっては解析結果に誤差が生じることがあります。

これは解析処理自体の計算誤差によるもので仕様です。
とくに -enable_auto_detection_mouth_open オプションは計算誤差の影響を受けやすいです。

起動時オプション指定​

起動時オプションを全ファイルに適用する例です。

> CriLipsMake2.exe -smooth_mode=quick -enable_adxlip_compat -list_interractive

この例では平滑化がすべて quick かつ、.adxlip互換ファイルが常に有効になります。

ファイルリスト解析​

ファイルパスの一覧を記載したテキストファイルをパイプで渡すこともできます。

> type list.txt | CriLipsMake2.exe -list_interractive

list.txt はこのような、1行につき1つのwavファイルパスを記載したテキストファイルです。

serif1.wav
serif2.wav
serif3.wav