ailiaVoiceGetWave method

int ailiaVoiceGetWave(
  1. Pointer<AILIAVoice> net,
  2. Pointer<Float> buf,
  3. int buf_size
)

~japanese @brief 波形を取得します。 @param net ボイスオブジェクトポインタ @param buf PCM波形 (0 - 1で正規化) @param buf_size バッファサイズ(byte単位) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details ailiaVoiceInference() を一度も実行していない場合は \ref AILIA_STATUS_INVALID_STATE が返ります。

~english @brief Gets the decoded features. @param net A Voice instance pointer @param buf PCM Wave (Normalized by 0 - 1) @param buf_size Buffer size (Byte unit) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details If ailiaVoiceInference() is not run at all, the function returns \ref AILIA_STATUS_INVALID_STATE .

Implementation

int ailiaVoiceGetWave(
  ffi.Pointer<AILIAVoice> net,
  ffi.Pointer<ffi.Float> buf,
  int buf_size,
) {
  return _ailiaVoiceGetWave(
    net,
    buf,
    buf_size,
  );
}