ailiaSpeechPushInputData method

int ailiaSpeechPushInputData(
  1. Pointer<AILIASpeech> net,
  2. Pointer<Float> src,
  3. int channels,
  4. int samples,
  5. int sampling_rate
)

Push PCM data to queue

Parameters:

  • net: A network instance pointer
  • src: The input pcm data (channel interleave, LRLR order for stereo, -1.0 to 1.0 pcm range)
  • channels: The number of pcm channels
  • samples: The number of pcm samples per channel
  • sampling_rate: The sampling rate (Hz)

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaSpeechPushInputData(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.Float> src,
  int channels,
  int samples,
  int sampling_rate,
) {
  return _ailiaSpeechPushInputData(
    net,
    src,
    channels,
    samples,
    sampling_rate,
  );
}