ailiaVoiceSetReference method

int ailiaVoiceSetReference(
  1. Pointer<AILIAVoice> net,
  2. Pointer<Float> buf,
  3. int buf_size,
  4. int channels,
  5. int sampling_rate,
  6. Pointer<Char> features
)

~japanese @brief 0ショット音声合成のリファレンスとなる波形とテキストを設定します。 @param net ボイスオブジェクトポインタ @param buf PCM波形 (0 - 1で正規化) @param buf_size バッファサイズ(byte単位) @param channels チャンネル数 @param sampling_rate サンプリングレート @param features フィーチャー(UTF8)

@return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。

~english @brief Set the waveform and text as references for zero-shot voice synthesis. @param net A Voice instance pointer @param buf PCM Wave (Normalized by 0 - 1) @param buf_size buffer size (byte unit) @param channels num channels @param sampling_rate sampling rate @param features Feature (UTF8) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaVoiceSetReference(
  ffi.Pointer<AILIAVoice> net,
  ffi.Pointer<ffi.Float> buf,
  int buf_size,
  int channels,
  int sampling_rate,
  ffi.Pointer<ffi.Char> features,
) {
  return _ailiaVoiceSetReference(
    net,
    buf,
    buf_size,
    channels,
    sampling_rate,
    features,
  );
}