Skip to content

ayutaz/koeiromap-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koeiromap Unity

Library for Unity to use Koeiromap

日本語ドキュメント(Japanese Documents Available).

Since it is very difficult to find the ideal voice by changing each parameter in Koeiromap, we are developing the following tool "KoeiromapIndex" to support finding the ideal voice.

koeiromap-index

Demo

You can change the parameters and play any voice on the following screen from the demo page.

Table of Contents

Installation

UPM

  1. Open the Package Manager
  2. Click the + button in the top left corner
  3. Select Add package from git URL...
  4. Add URL for https://github.com/ayutaz/koeiromap-unity.git?path=Assets/KoeiromapUnity/Scripts
  5. Click Add

Unity Package

  1. Download the latest release from the releases page
  2. Import the package into your project

requirements

how to use

Sample Code

var voiceParam = new VoiceParam
{
    text = "Hello",
    speaker_x = 2.0f,
    speaker_y = 2.0f,
    style = "talk",
    seed = "1234567890",
};
var voice = await Koeiromap.GetVoice(voiceParam, _cancellationTokenSource.Token);
_audioSource.clip = voice.audioClip;
_audioStringData = voice.audioBase64;
_audioSource.Play();

3rd Party Notices

See NOTICE.

License

MIT License

Font License