FluentCeVIOWrapper
1.0.0
.NET 7 / .NET標準2.0的Cevio API的包裝庫和集成IPC服務器
這是一個包裝庫和鏈接服務器,允許語音合成軟件“ CEVIO ”的.NET外部鏈接接口即使是最新的.NET 7等都可以使用。它可以從.NET框架4.8以外的.NET應用程序中獲得。它還支持現代寫作方法,例如async / await , ValueTask和nullable 。
語音合成軟件“ CEVIO ”的.NET外部集成接口的包裝庫和集成IPC服務器,可從最新的.NET 7和其他.NET Framework 4.8環境中使用。它還支持現代的C#寫作風格,例如async / await , ValueTask , nullable等等。
async / awaitnullableValueTask<T>.unitypackage可用.nupkg.unitypackage dotnet add package FluentCeVIOWrapper.Common //ファクトリメソッドで非同期生成
//IDisposableを継承しているためusingが使えます
using var fcw = await FluentCeVIO . FactoryAsync ( ) ;
//非同期でCeVIO外部連携インターフェイス起動
await fcw . StartAsync ( ) ;
//利用可能なキャスト(ボイス)を非同期で取得
var casts = await fcw . GetAvailableCastsAsync ( ) ;
//感情一覧を非同期で取得
var emotes = await fcw . GetComponentsAsync ( ) ;
var newEmo = emotes
. Select ( v => {
v . Value = ( v . Name == "哀しみ" ) ?
( uint ) 100 :
( uint ) 0 ;
return v ;
} )
. ToList ( ) ;
//メソッドチェーンでまとめてパラメータ指定
await fcw . CreateParam ( )
. Cast ( casts [ 0 ] )
. Alpha ( 30 )
. Speed ( 50 )
. ToneScale ( 75 )
. Components ( newEmo )
. SendAsync ( ) ;
//非同期で音声合成
await fcw . SpeakAsync ( "こんにちは。" ) ;
//感情設定は Emotions() で簡単にできる
await fcw . CreateParam ( )
//キャスト名の直接指定でも実はOK
. Cast ( "さとうささら" )
//感情一覧を取得しなくても使える便利関数
//感情名が一致すれば設定します。存在しない場合は無視
. Emotions ( new ( )
{
[ "元気" ] = 0 ,
[ "哀しみ" ] = 0 ,
[ "怒り" ] = 75 ,
[ "普通" ] = 50
} )
. SendAsync ( ) ;
await fcw . SpeakAsync ( "こんにちは!!" ) ;| Cevio類 | Cevio名稱 | FCW課程 | FCW名稱 |
|---|---|---|---|
| - | - | fluentcevioutil | GetCastIdAsync() |
| Talker/Talker2 | 阿爾法 | Fluentcevio | GetAlphaAsync() / SetAlphaAsync() |
| Talker/Talker2 | 阿爾法 | fluentcevioparam | Alpha() |
| Talker/Talker2 | 可用記錄 | Fluentcevio | GetAvailableCastsAsync() |
| Talker/Talker2 | 投擲 | Fluentcevio | GetCastAsync() / SetCastAsync() |
| Talker/Talker2 | 投擲 | fluentcevioparam | Cast() |
| ServiceContol /ServiceControl2 | CloseHost() | Fluentcevio | CloseAsync() |
| Talker/Talker2 | 成分 | Fluentcevio | GetComponentsAsync() / SetComponentsAsync() |
| Talker/Talker2 | 成分 | fluentcevioparam | Components() |
| Talker/Talker2 | 成分 | fluentcevioparam | Emotions() |
| Talker/Talker2 | getphonemes() | Fluentcevio | GetPhonemesAsync() |
| Talker/Talker2 | getTextDuration() | Fluentcevio | GetTextDurationAsync() |
| ServiceContol /ServiceControl2 | 傳票 | Fluentcevio | GetHostVersionAsync() |
| ServiceContol /ServiceControl2 | iShostStarted | Fluentcevio | GetIsHostStartedAsync() |
| Talker/Talker2 | outputwavetofile() | Fluentcevio | OutputWaveToFileAsync() |
| Talker/Talker2 | 說話() | Fluentcevio | SpeakAsync() |
| Talker/Talker2 | 說話() | fluentcevioparam | SendAndSpeakAsync() |
| Talker/Talker2 | 速度 | Fluentcevio | GetSpeedAsync() / SetSpeedAsync() |
| Talker/Talker2 | 速度 | fluentcevioparam | Speed() |
| ServiceContol /ServiceControl2 | 星際斯托斯特() | Fluentcevio | StartAsync() |
| Talker/Talker2 | 停止() | Fluentcevio | StopAsync() |
| Talker/Talker2 | 語氣 | Fluentcevio | GetToneAsync() / SetToneAsync() |
| Talker/Talker2 | 語氣 | fluentcevioparam | Tone() |
| Talker/Talker2 | 色調 | Fluentcevio | GetToneScaleAsync() / SetToneScaleAsync() |
| Talker/Talker2 | 色調 | fluentcevioparam | ToneScale() |
| Talker/Talker2 | 體積 | Fluentcevio | GetVolumeAsync() / SetVolumeAsync() |
| Talker/Talker2 | 體積 | fluentcevioparam | Volume() |
Process.Start()等調用外部進程。FluentCeVIOWrapper.Common.FluentCeVIO類執行通信。-help :顯示幫助-cevio : CeVIO_AI或CeVIO_CS-pipeName :IPC中使用的命名管名。啟動多次時設置。-dllPath :指定CEVIO安裝文件夾路徑如果您想同時與Cevio AI和Cevio Creative Studio進行通信,請啟動兩個服務器。
只需從發行版中下載UnityPackage並導入它。
請參閱Readme
Assets/Init.cs是實際的調用腳本。
さとうささら)更改為您已經擁有的語音庫名稱。麻省理工學院許可證
版權(C)2022-2023 INU
請參閱詳細信息許可證