Search Results for

    Show / Hide Table of Contents

    Class FluentCeVIOParam

    CeVIOにまとめてメソッドチェーン(Buiderパターン)でパラメータを指定できるパラメータクラス

    Inheritance
    object
    FluentCeVIOParam
    Namespace: FluentCeVIOWrapper.Common
    Assembly: FluentCeVIOWrapper.Common.dll
    Syntax
    public class FluentCeVIOParam

    Methods

    Alpha(uint)

    声質(0~100)を設定します。

    Declaration
    public FluentCeVIOParam Alpha(uint value)
    Parameters
    Type Name Description
    uint value

    声質(0~100)

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetAlphaAsync()
    Alpha(uint)
    SetAlphaAsync(uint)

    Cast(string)

    キャスト(話者)を設定します。

    Declaration
    public FluentCeVIOParam Cast(string castName)
    Parameters
    Type Name Description
    string castName

    キャスト名。利用可能なキャスト名の文字列はGetAvailableCastsAsync()で取得可。

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetCastAsync()
    GetAvailableCastsAsync()
    Cast(string)
    SetCastAsync(string)

    Components(IEnumerable<TalkerComponent>)

    現在のキャストの感情パラメータマップコレクションを設定します。

    Declaration
    public FluentCeVIOParam Components(IEnumerable<TalkerComponent> value)
    Parameters
    Type Name Description
    IEnumerable<TalkerComponent> value

    感情パラメータの管理オブジェクト

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    TalkerComponent
    GetComponentsAsync()
    SetComponentsAsync(IEnumerable<TalkerComponent>)
    GetComponentsAsync()

    Create(FluentCeVIO)

    メソッドチェーンでパラメータを指定できるパラメータクラスのファクトリメソッド 最後に SendAsync()を呼ぶ

    Declaration
    public static FluentCeVIOParam Create(FluentCeVIO fcw)
    Parameters
    Type Name Description
    FluentCeVIO fcw

    FluentCeVIOインスタンス

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    CreateParam()
    SendAsync()

    Emotions(Dictionary<string, uint>)

    Componentsの簡易版。

    Declaration
    public FluentCeVIOParam Emotions(Dictionary<string, uint> list)
    Parameters
    Type Name Description
    Dictionary<string, uint> list

    感情名、値(0~100)のDictionaryを与えてください

    Returns
    Type Description
    FluentCeVIOParam
    Examples
    .Emotions(new(){["怒り"]=15,["普通"]=50})
    See Also
    Components(IEnumerable<TalkerComponent>)

    SendAndSpeakAsync(string, bool, SpeakSegment, CancellationToken?)

    メソッドチェーンで指定したパラメータをまとめて設定してすぐに発声する 必ず最後に呼ぶ

    Declaration
    public ValueTask SendAndSpeakAsync(string text, bool isWait = true, SpeakSegment segment = SpeakSegment.NoCheck, CancellationToken? token = null)
    Parameters
    Type Name Description
    string text

    セリフ。日本語は最大200文字(古いバージョンは150文字)。

    bool isWait

    再生終了まで待つかどうか

    SpeakSegment segment

    セリフ文字列の分割モードの指定。

    CancellationToken? token
    Returns
    Type Description
    ValueTask

    セリフの再生に成功したかどうか。

    Examples

    await SpeakAsync("こんにちは"); //再生終了まで待つ await SpeakAsync("こんにちは",true);

    See Also
    SpeakSegment
    SendAsync()

    SendAsync()

    メソッドチェーンで指定したパラメータをまとめて設定する 必ず最後に呼ぶ

    Declaration
    public ValueTask SendAsync()
    Returns
    Type Description
    ValueTask
    See Also
    Create(FluentCeVIO)
    SendAndSpeakAsync(string, bool, SpeakSegment, CancellationToken?)

    Speed(uint)

    話す速さ(0~100)を設定します。

    Declaration
    public FluentCeVIOParam Speed(uint value)
    Parameters
    Type Name Description
    uint value

    話す速さ(0~100)

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetSpeedAsync()
    Speed(uint)
    SetSpeedAsync(uint)

    Tone(uint)

    音の高さ(0~100)を設定します。

    Declaration
    public FluentCeVIOParam Tone(uint value)
    Parameters
    Type Name Description
    uint value

    音の高さ(0~100)

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetToneAsync()
    Tone(uint)
    SetToneAsync(uint)

    ToneScale(uint)

    抑揚(0~100)を設定します。

    Declaration
    public FluentCeVIOParam ToneScale(uint value)
    Parameters
    Type Name Description
    uint value

    抑揚(0~100)

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetToneScaleAsync()
    ToneScale(uint)
    SetToneScaleAsync(uint)

    Volume(uint)

    音の大きさ(0~100)を設定します。

    Declaration
    public FluentCeVIOParam Volume(uint volume)
    Parameters
    Type Name Description
    uint volume

    音の大きさ(0~100)

    Returns
    Type Description
    FluentCeVIOParam
    See Also
    GetVolumeAsync()
    Volume(uint)
    SetVolumeAsync(uint)
    In this article
    Back to top FluentCeVIOWrapper