Exemplo n.º 1
0
 /// <summary>
 /// Feeds audio samples to an ongoing streaming inference.
 /// </summary>
 /// <param name="stream">Instance of the stream to feed the data.</param>
 /// <param name="aBuffer">An array of 16-bit, mono raw audio samples at the appropriate sample rate (matching what the model was trained on).</param>
 public unsafe void FeedAudioContent(DeepSpeechStream stream, short[] aBuffer, uint aBufferSize)
 {
     NativeImp.DS_FeedAudioContent(stream.GetNativePointer(), aBuffer, aBufferSize);
 }
 /// <summary>
 /// Feeds audio samples to an ongoing streaming inference.
 /// </summary>
 /// <param name="aBuffer">An array of 16-bit, mono raw audio samples at the appropriate sample rate.</param>
 public unsafe void FeedAudioContent(short[] aBuffer, uint aBufferSize)
 {
     NativeImp.DS_FeedAudioContent(_streamingStatePP, aBuffer, aBufferSize);
 }