ailiaAudioConvertToMel method

int ailiaAudioConvertToMel(
  1. Pointer<Void> dst,
  2. Pointer<Void> src,
  3. Pointer<Void> fb_mtrx,
  4. int freq_n,
  5. int frame_n,
  6. int mel_n
)

~japanese @brief 実数STFT結果をメル尺度に変換する @param dst 出力データのポインタ、float 型、外側から mel_n, frame_n 順のメモリレイアウト @param src 入力データのポインタ、float 型、外側から freq_n, frame_n 順のメモリレイアウト @param fb_mtrx メルフィルタバンク、float 型、外側から mel_n, freq_n 順のメモリレイアウト @param freq_n 周波数のインデックス数 @param frame_n 入力データの時間フレームの数 @param mel_n メル周波数のインデックス数 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 入力された実数スペクトログラムをメル尺度に変換します fb_mtrxには ailiaAudioGetFBMatrix() で取得した係数を与える事が出来ます

~english @brief Convert the real output of the STFT to the mel scale. @param dst pointer to the output data, of float format, of length (mel_n * frame_n), and of memory layout (in row-major convention) (mel_n, frame_n). @param src pointer to the input data, of float format, of length (freq_n * frame_n), and of memory layout (in row-major convention) (freq_n, frame_n). @param fb_mtrx the mel filter-bank, of float format, of length (mel_n * freq_n), and of memory layout (in row-major convention) (mel_n, freq_n). @param freq_n number of frequency indices @param frame_n number of time frames in the input data @param mel_n number of mel frequency indices @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned. @details Converts the real spectrogram given in input to the mel scale. The argument fb_mtrx can take the coefficients outputted by ailiaAudioGetFBMatrix() .

Implementation

int ailiaAudioConvertToMel(
  ffi.Pointer<ffi.Void> dst,
  ffi.Pointer<ffi.Void> src,
  ffi.Pointer<ffi.Void> fb_mtrx,
  int freq_n,
  int frame_n,
  int mel_n,
) {
  return _ailiaAudioConvertToMel(
    dst,
    src,
    fb_mtrx,
    freq_n,
    frame_n,
    mel_n,
  );
}