Class TalkUnit
トークUnit管理用クラス
Inherited Members
Namespace: LibSasara.Model
Assembly: LibSasara.dll
Syntax
public class TalkUnit : UnitBase
Constructors
TalkUnit(XElement, CeVIOFileBase)
Unit管理用クラス コンストラクタ
Declaration
public TalkUnit(XElement elem, CeVIOFileBase root)
Parameters
Type | Name | Description |
---|---|---|
XElement | elem | |
CeVIOFileBase | root | Unit所属ファイルの管理クラス |
See Also
IUnitBuilder<TUnit, TBuilder>
Properties
Alpha
声質
Declaration
public decimal Alpha { get; set; }
Property Value
Type | Description |
---|---|
decimal | max: 0.6, min: 0.5 |
CastId
キャスト(ボイス)の内部ID
Declaration
public string CastId { get; set; }
Property Value
Type | Description |
---|---|
string |
Category
Unit category
Declaration
public override Category Category { get; }
Property Value
Type | Description |
---|---|
Category |
Overrides
See Also
Components
感情パラメータ一覧
Declaration
public List<(string Id, decimal Value)> Components { get; set; }
Property Value
Type | Description |
---|---|
List<(string Id, decimal Value)> | 感情パラメータの内部IDと値の |
Remarks
- CeVIO AIの場合はボイス関連の感情パラメータ一覧
- CeVIO CSの場合は全ボイス共通の感情パラメータ一覧
Directions
セリフのコンディションパラメータ
Declaration
public (decimal Volume, decimal Speed, decimal Tone, decimal Alpha, decimal LogF0Scale) Directions { get; set; }
Property Value
Type | Description |
---|---|
(decimal Volume, decimal Speed, decimal Tone, decimal Alpha, decimal LogF0Scale) |
Remarks
- Volume大きさ。Volume
- Speed速さ。Speed
- Tone高さ。Tone
- Alpha声質。Alpha
- LogF0Scale抑揚。LogF0Scale
Language
Unitの言語
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
"Japanese"
, "English"
LogF0Scale
抑揚
Declaration
public decimal LogF0Scale { get; set; }
Property Value
Type | Description |
---|---|
decimal | max: 2.0, min: 0.0 |
Metadata
調声メタデータ
Declaration
public List<byte[]> Metadata { get; }
Property Value
Type | Description |
---|---|
List<byte[]> |
Phonemes
音素データのリスト
Declaration
public List<TalkPhoneme> Phonemes { get; }
Property Value
Type | Description |
---|---|
List<TalkPhoneme> |
Remarks
RawComponents
感情パラメータの生要素リスト
Declaration
public List<XElement> RawComponents { get; }
Property Value
Type | Description |
---|---|
List<XElement> |
RawDirection
get/set a raw Direction element
Declaration
public XElement RawDirection { get; set; }
Property Value
Type | Description |
---|---|
XElement |
RawMetadata
調声メタデータの生データ文字列
Declaration
public string? RawMetadata { get; set; }
Property Value
Type | Description |
---|---|
string |
RawPhonemes
音素データ生データ
Declaration
public List<XElement> RawPhonemes { get; }
Property Value
Type | Description |
---|---|
List<XElement> |
Speed
速さ
Declaration
public decimal Speed { get; set; }
Property Value
Type | Description |
---|---|
decimal | max: 5.0, min: 0.2 |
Text
セリフ文字列
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
日本語200文字、英語500文字まで。
Tone
高さ
Declaration
public decimal Tone { get; set; }
Property Value
Type | Description |
---|---|
decimal | max: 6.0, min: -6.0 |
Volume
大きさ
Declaration
public decimal Volume { get; set; }
Property Value
Type | Description |
---|---|
decimal | max: 8.0, min: -8.0 |
Methods
CreateTalkUnitRaw(TimeSpan, TimeSpan, string, string?, Guid?, string?, decimal, decimal, decimal, decimal, decimal, IEnumerable<(string Id, decimal Value)>?, IEnumerable<TalkPhoneme>?)
TalkのUnit要素生成
Declaration
public static XElement CreateTalkUnitRaw(TimeSpan StartTime, TimeSpan Duration, string CastId, string? Text, Guid? Group = null, string? Language = "Japanese", decimal Volume = 0, decimal Speed = 1, decimal Tone = 0, decimal Alpha = 0.55, decimal LogF0Scale = 1, IEnumerable<(string Id, decimal Value)>? components = null, IEnumerable<TalkPhoneme>? phonemes = null)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | StartTime | |
TimeSpan | Duration | |
string | CastId | |
string | Text | |
Guid? | Group | |
string | Language | |
decimal | Volume | |
decimal | Speed | |
decimal | Tone | |
decimal | Alpha | |
decimal | LogF0Scale | |
IEnumerable<(string id, decimal value)> | components | |
IEnumerable<TalkPhoneme> | phonemes |
Returns
Type | Description |
---|---|
XElement | TalkのUnit要素のXElement |
Remarks
TalkのUnit要素のXElementを生成します。
生成するだけでCeVIOFileBaseには紐付けません。 TalkUnitBuilderも活用してください。