ailia_voice  1.1.0.0
Setup and Build

Compiler setup

Windows

Requirements:

  • VisualStudio 2019 and higher
  • CMake

macOS

Requirements:

  • Xcode 14.2 and higher
  • CMake

Linux

Requirements:

  • clang
  • cmake

License file placement

A license file is required to use the evaluation version. Please place the license file in the folder as described below.

Windows

Place the license file ailia.lic in the same foolder as ailia.dll (or in the cpp folder if this is the sample).

macOS

Place the license file ailia.lic in ~/Library/SHALO/.

Linux

Place the license file ailia.lic in ~/.shalo/.

Building the sample

Move to the cpp folder, then run the command corresponding to your OS as described below.

Windows

cl ailia_voice_sample.cpp wave_writer.cpp wave_reader.cpp ailia_voice.lib ailia.lib ailia_audio.lib

macOS

clang++ -o ailia_voice_sample ailia_voice_sample.cpp wave_writer.cpp wave_reader.cpp libailia_voice.dylib libailia.dylib libailia_audio.dylib -Wl,-rpath,./ -std=c++17

Linux

export LD_LIBRARY_PATH=./
g++ -o ailia_voice_sample ailia_voice_sample.cpp wave_writer.cpp wave_reader.cpp libailia_voice.so libailia.so libailia_audio.so

Running the sample

Run the sample by executing the command below.

./ailia_voice_sample tacotron2
./ailia_voice_sample gpt-sovits

Example of output:

Input text : こんにちは。今日は新しいAIエンジンであるアイリアSDKを紹介します。
Language : ja
Features : ko(Nnichiwa,kyo)owa:a(tarashi)i:e(eaie)NjiNdearu:a)i:ri)a:e)su:di(ike)io:sho(okai:shi(ma)sU.
Wave samples : 121344
Wave channles : 1
Wave sampling rate : 22050

Available options when executing the sample

The sample executable can take the following options.

./ailia_voice_sample [tacotron2/gpt-sovits/gpt-sovits-en] [input_text]

See below for details about each argument:

Contents Details
Model Specify the model to use. For English, specify tacotron2 or gpt-sovits-en, and for Japanese, specify gpt-sovits.
Input text Indicates the text input file.

Platform-specific remarks

Release the 'downloaded' attribute in MacOS

Binaries downloaded from the browser in macOS may have a 'downloaded' attribute and may not be able to be executed. In that case, it is possible to remove the attribute by right-clicking on the .dylib file and executing it. You can also release the 'downloaded' attribute by executing the following command from the command line:

xattr -d com.apple.quarantine libailia_voice.dylib