mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
33 lines
914 B
C#
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();
|
|
}
|
|
}
|