Download docs/usage.md from Respair/Nichijou_TTS: direct link, hf CLI and curl.
- Browser
- Download file 2.75 kB
-
https://huggingface.co/Respair/Nichijou_TTS/resolve/main/docs/usage.md
- Command line
-
hf download hf://Respair/Nichijou_TTS/docs/usage.md
-
curl -L -o usage.md https://huggingface.co/Respair/Nichijou_TTS/resolve/main/docs/usage.md
Usage and tips
You can generate up to 60 seconds of audio. If you use an audio prompt, its duration counts toward that limit, leaving less time for generated audio.
You can switch speakers using
<S1>and<S2>, or specify their gender with<Sn:male>and<Sn:female>. However,<S3>and beyond were relatively rare in training, so they may not work as reliably.Try to write your text the way a real conversation would flow. Include natural hesitations like "um" and "uh," false starts, self-corrections, and other disfluencies to make the speech sound more human. You can also check the default examples for inspiration.
Other supported control tags include:
<laughs>: Laughter<coughs>: Coughing<clears_throat>: Throat clearing<bgm>: Background music<anime>: Anime-style speech<en>: English<ja>: Japanese
It's recommended to prepend
<ja><S1>to the beginning of each sample. However, don't add these tags when using an audio prompt.Wrap English text in square brackets
[], like[hello text], unless the entire text is in English. Check the examples for the correct formatting.The
<anime>tag currently doesn't support multi-speaker conversations.
使い方とポイント
生成できる音声は最大60秒。音声プロンプトを使う場合は、その長さも60秒に含まれるため、生成できる時間がその分短くなります。
話者の切り替えには
<S1>と<S2>を使い、<Sn:male>や<Sn:female>で性別も指定できます。ただし、<S3>以降は使用例が少なく、まだ動作が不安定な場合もあります。テキストは、実際の会話の流れを意識して書くのがポイント。「えっと」「あの」といった言いよどみや、途中で言い直すような表現を混ぜると、より自然な会話になります。デフォルトのテキストも参考にしてみてください。
ほかにも、以下のタグが使えます。
<laughs>:笑い声<coughs>:咳<clears_throat>:咳払い<bgm>:BGM<anime>:アニメ風<en>:英語<ja>:日本語
基本的には、各サンプルの冒頭に
<ja><S1>を付けるのがおすすめです。ただし、音声プロンプトを使う場合は付けないでください。英語の部分は、
[hello text]のように角括弧[]で囲んでください。テキスト全体が英語の場合はその必要はありません。具体的な書き方はサンプルを参考にしてみてください。<anime>タグは、複数人での会話には対応していません。