Fix Intermediate decoding

This commit is contained in:
Carlos Fonseca M 2020-02-05 22:47:09 -06:00
parent 6f5af8ec2c
commit 17e011c18d
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ namespace DeepSpeechClient
/// <returns>The STT intermediate result.</returns>
public unsafe string IntermediateDecode(DeepSpeechStream stream)
{
return NativeImp.DS_IntermediateDecode(stream.GetNativePointer());
return NativeImp.DS_IntermediateDecode(stream.GetNativePointer()).PtrToString();
}
/// <summary>

View File

@ -63,7 +63,7 @@ namespace DeepSpeechClient
uint aBufferSize);
[DllImport("libdeepspeech.so", CallingConvention = CallingConvention.Cdecl)]
internal static unsafe extern string DS_IntermediateDecode(IntPtr** aSctx);
internal static unsafe extern IntPtr DS_IntermediateDecode(IntPtr** aSctx);
[DllImport("libdeepspeech.so", CallingConvention = CallingConvention.Cdecl,
CharSet = CharSet.Ansi, SetLastError = true)]