Une bibliothèque wrapper et un serveur IPC d'intégration de l'API Cevio pour .NET 7 / .NET Standard 2.0
Il s'agit d'une bibliothèque de wrapper et d'un serveur de liaison qui permet à l'interface de liaison externe .NET du logiciel de synthèse de la parole " Cevio " à utiliser même à partir du dernier .NET 7 etc. Il sera disponible à partir d'applications .NET autres que .NET Framework 4.8. Il prend également en charge des méthodes d'écriture modernes telles que async / await , ValueTask et nullable .
Une bibliothèque wrapper et un serveur IPC d'intégration pour l'interface d'intégration externe .NET du logiciel de synthèse de la parole " Cevio ", qui peut être utilisé à partir des derniers environnements .NET 7 et d'autres environnements .NET Framework 4.8. Il prend également en charge le style d'écriture C # moderne tel que 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 ( "こんにちは!!" ) ;| Classe Cevio | Nom Cevio | Classe FCW | Nom FCW |
|---|---|---|---|
| - | - | Cluentcevioutil | GetCastIdAsync() |
| Talker / Talker2 | Alpha | Cluentcevio | GetAlphaAsync() / SetAlphaAsync() |
| Talker / Talker2 | Alpha | Cluentcevioparam | Alpha() |
| Talker / Talker2 | Accessibles | Cluentcevio | GetAvailableCastsAsync() |
| Talker / Talker2 | Casting | Cluentcevio | GetCastAsync() / SetCastAsync() |
| Talker / Talker2 | Casting | Cluentcevioparam | Cast() |
| ServiceControl / ServiceControl2 | CloseHost () | Cluentcevio | CloseAsync() |
| Talker / Talker2 | Composants | Cluentcevio | GetComponentsAsync() / SetComponentsAsync() |
| Talker / Talker2 | Composants | Cluentcevioparam | Components() |
| Talker / Talker2 | Composants | Cluentcevioparam | Emotions() |
| Talker / Talker2 | Getphonemmes () | Cluentcevio | GetPhonemesAsync() |
| Talker / Talker2 | GetTextDuration () | Cluentcevio | GetTextDurationAsync() |
| ServiceControl / ServiceControl2 | Hostversion | Cluentcevio | GetHostVersionAsync() |
| ServiceControl / ServiceControl2 | Ishoststarted | Cluentcevio | GetIsHostStartedAsync() |
| Talker / Talker2 | Outputwavetofile () | Cluentcevio | OutputWaveToFileAsync() |
| Talker / Talker2 | Parler() | Cluentcevio | SpeakAsync() |
| Talker / Talker2 | Parler() | Cluentcevioparam | SendAndSpeakAsync() |
| Talker / Talker2 | Vitesse | Cluentcevio | GetSpeedAsync() / SetSpeedAsync() |
| Talker / Talker2 | Vitesse | Cluentcevioparam | Speed() |
| ServiceControl / ServiceControl2 | Starthost () | Cluentcevio | StartAsync() |
| Talker / Talker2 | Arrêt() | Cluentcevio | StopAsync() |
| Talker / Talker2 | Tonifier | Cluentcevio | GetToneAsync() / SetToneAsync() |
| Talker / Talker2 | Tonifier | Cluentcevioparam | Tone() |
| Talker / Talker2 | En tascale | Cluentcevio | GetToneScaleAsync() / SetToneScaleAsync() |
| Talker / Talker2 | En tascale | Cluentcevioparam | ToneScale() |
| Talker / Talker2 | Volume | Cluentcevio | GetVolumeAsync() / SetVolumeAsync() |
| Talker / Talker2 | Volume | Cluentcevioparam | Volume() |
Process.Start() etc.FluentCeVIOWrapper.Common.FluentCeVIO .-help : montrez l'aide-cevio : CeVIO_AI ou CeVIO_CS-pipeName : nom nommé nom de tuyau utilisé dans IPC. Définir au démarrage de plusieurs fois.-dllPath : Spécifiez le chemin du dossier d'installation CevioSi vous souhaitez communiquer avec Cevio AI et Cevio Creative Studio en même temps, démarrez deux serveurs.
Téléchargez simplement UnityPackage à partir des versions et importez-la.
Voir Readme
Assets/Init.cs est le script d'appel réel.
さとうささら) au nom de la bibliothèque vocale que vous possédez déjà.Licence MIT
Copyright (C) 2022 - 2023 INU
Voir les détails Licence