DeepSpeech/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs
2018-12-14 14:44:46 -06:00

33 lines
914 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 aLMWeight,
float aValidWordCountWeight);
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();
}
}