Un servidor IPC de biblioteca e integración de la API CEVIO para .NET 7 / .NET Standard 2.0
Esta es una biblioteca de contenedores y un servidor de enlace que permite que la interfaz de enlace externa .NET del software de síntesis de voz " CEVIO " se use incluso de la última .NET 7, etc. estará disponible en aplicaciones .NET que no sean .NET Framework 4.8. También admite métodos de escritura modernos como async / await , ValueTask y nullable .
Una biblioteca de envoltura e integración de un servidor IPC para la interfaz de integración externa .NET del software de síntesis de voz " CEVIO ", que puede usarse a partir de los últimos entornos .NET 7 y otros entornos .NET Framework 4.8. También es compatible con el estilo moderno de escritura C# como async / await , ValueTask , nullable , etc.
async / awaitnullableValueTask<T>.unitypackage está disponible.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 ( "こんにちは!!" ) ;| Clase Cevio | Nombre de Cevio | Clase FCW | Nombre de FCW |
|---|---|---|---|
| - | - | Fluentcevioutil | GetCastIdAsync() |
| Hablador/hablador2 | Alfa | Fluentcevio | GetAlphaAsync() / SetAlphaAsync() |
| Hablador/hablador2 | Alfa | Fluentcevioparam | Alpha() |
| Hablador/hablador2 | DisponibleCasts | Fluentcevio | GetAvailableCastsAsync() |
| Hablador/hablador2 | Elenco | Fluentcevio | GetCastAsync() / SetCastAsync() |
| Hablador/hablador2 | Elenco | Fluentcevioparam | Cast() |
| ServiceControl /ServiceControl2 | CloseHost () | Fluentcevio | CloseAsync() |
| Hablador/hablador2 | Componentes | Fluentcevio | GetComponentsAsync() / SetComponentsAsync() |
| Hablador/hablador2 | Componentes | Fluentcevioparam | Components() |
| Hablador/hablador2 | Componentes | Fluentcevioparam | Emotions() |
| Hablador/hablador2 | GetPhonemes () | Fluentcevio | GetPhonemesAsync() |
| Hablador/hablador2 | GetTextDuration () | Fluentcevio | GetTextDurationAsync() |
| ServiceControl /ServiceControl2 | Hostversión | Fluentcevio | GetHostVersionAsync() |
| ServiceControl /ServiceControl2 | IshostStarted | Fluentcevio | GetIsHostStartedAsync() |
| Hablador/hablador2 | OutputWaveToFile () | Fluentcevio | OutputWaveToFileAsync() |
| Hablador/hablador2 | Hablar() | Fluentcevio | SpeakAsync() |
| Hablador/hablador2 | Hablar() | Fluentcevioparam | SendAndSpeakAsync() |
| Hablador/hablador2 | Velocidad | Fluentcevio | GetSpeedAsync() / SetSpeedAsync() |
| Hablador/hablador2 | Velocidad | Fluentcevioparam | Speed() |
| ServiceControl /ServiceControl2 | Starthost () | Fluentcevio | StartAsync() |
| Hablador/hablador2 | Detener() | Fluentcevio | StopAsync() |
| Hablador/hablador2 | Tono | Fluentcevio | GetToneAsync() / SetToneAsync() |
| Hablador/hablador2 | Tono | Fluentcevioparam | Tone() |
| Hablador/hablador2 | Tonescala | Fluentcevio | GetToneScaleAsync() / SetToneScaleAsync() |
| Hablador/hablador2 | Tonescala | Fluentcevioparam | ToneScale() |
| Hablador/hablador2 | Volumen | Fluentcevio | GetVolumeAsync() / SetVolumeAsync() |
| Hablador/hablador2 | Volumen | Fluentcevioparam | Volume() |
Process.Start() etc.FluentCeVIOWrapper.Common.FluentCeVIO .-help : mostrar ayuda-cevio : CeVIO_AI o CeVIO_CS-pipeName : nombre de tubería con nombre utilizado en IPC. Establecer al comenzar varias veces.-dllPath : especifique la ruta de la carpeta de instalación de CevioSi desea comunicarse con Cevio AI y Cevio Creative Studio al mismo tiempo, inicie dos servidores.
Simplemente descargue UnityPackage de los lanzamientos e importe.
Ver ReadMe
Assets/Init.cs es el script de llamadas real.
さとうささら) al nombre de la biblioteca de voz que ya posee.Licencia de MIT
Copyright (c) 2022 - 2023 INU
Ver Licencia de detalles