DeepSpeech/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs
2019-01-15 09:32:31 -02:00

33 lines
899 B
C#

namespace DeepSpeechClient.Interfaces
{
public interface IDeepSpeech
{
void PrintVersions();
unsafe int CreateModel(string aModelPath, uint aNCep,
uint aNContext,
string aAlphabetConfigPath,
uint aBeamWidth);
unsafe int EnableDecoderWithLM(string aAlphabetConfigPath,
string aLMPath,
string aTriePath,
float aLMAlpha,
float aLMBeta);
unsafe string SpeechToText(short[] aBuffer,
uint aBufferSize,
uint aSampleRate);
unsafe void DiscardStream();
unsafe int SetupStream(uint aPreAllocFrames, uint aSampleRate);
unsafe void FeedAudioContent(short[] aBuffer, uint aBufferSize);
unsafe string IntermediateDecode();
unsafe string FinishStream();
}
}