Fix Intermediate decoding
This commit is contained in:
parent
6f5af8ec2c
commit
17e011c18d
@ -193,7 +193,7 @@ namespace DeepSpeechClient
|
|||||||
/// <returns>The STT intermediate result.</returns>
|
/// <returns>The STT intermediate result.</returns>
|
||||||
public unsafe string IntermediateDecode(DeepSpeechStream stream)
|
public unsafe string IntermediateDecode(DeepSpeechStream stream)
|
||||||
{
|
{
|
||||||
return NativeImp.DS_IntermediateDecode(stream.GetNativePointer());
|
return NativeImp.DS_IntermediateDecode(stream.GetNativePointer()).PtrToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -63,7 +63,7 @@ namespace DeepSpeechClient
|
|||||||
uint aBufferSize);
|
uint aBufferSize);
|
||||||
|
|
||||||
[DllImport("libdeepspeech.so", CallingConvention = CallingConvention.Cdecl)]
|
[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,
|
[DllImport("libdeepspeech.so", CallingConvention = CallingConvention.Cdecl,
|
||||||
CharSet = CharSet.Ansi, SetLastError = true)]
|
CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user