Esempio n. 1
0
 /// <summary>
 /// Closes the ongoing streaming inference, returns the STT result over the whole audio signal.
 /// </summary>
 /// <param name="stream">Instance of the stream to finish.</param>
 /// <returns>The STT result.</returns>
 public unsafe string FinishStream(DeepSpeechStream stream)
 {
     return(NativeImp.DS_FinishStream(stream.GetNativePointer()).PtrToString());
 }
 /// <summary>
 /// Closes the ongoing streaming inference, returns the STT result over the whole audio signal.
 /// </summary>
 /// <returns>The STT result. The user is responsible for freeing the string.</returns>
 public unsafe string FinishStream()
 {
     return(NativeImp.DS_FinishStream(_streamingStatePP).PtrToString());
 }