Beispiel #1
0
 internal static unsafe extern void DS_DestroyModel(ModelState **aCtx);
Beispiel #2
0
 internal static unsafe extern int DS_SetupStream(ModelState **aCtx,
                                                  uint aPreAllocFrames,
                                                  uint aSampleRate, ref StreamingState **retval);
Beispiel #3
0
 internal static unsafe extern int DS_EnableDecoderWithLM(ModelState **aCtx,
                                                          string aAlphabetConfigPath,
                                                          string aLMPath,
                                                          string aTriePath,
                                                          float aLMAlpha,
                                                          float aLMBeta);
Beispiel #4
0
 internal static unsafe extern IntPtr DS_SpeechToTextWithMetadata(ModelState **aCtx,
                                                                  short[] aBuffer,
                                                                  uint aBufferSize,
                                                                  uint aSampleRate);
Beispiel #5
0
 internal static unsafe extern ErrorCodes DS_CreateStream(ModelState **aCtx,
                                                          uint aSampleRate, ref StreamingState **retval);
Beispiel #6
0
 internal unsafe static extern int DS_CreateModel(string aModelPath,
                                                  uint aNCep,
                                                  uint aNContext,
                                                  string aAlphabetConfigPath,
                                                  uint aBeamWidth,
                                                  ref ModelState **pint);
Beispiel #7
0
 internal static unsafe extern void DS_FreeModel(ModelState **aCtx);
Beispiel #8
0
 internal static unsafe extern ErrorCodes DS_EnableDecoderWithLM(ModelState **aCtx,
                                                                 string aLMPath,
                                                                 string aTriePath,
                                                                 float aLMAlpha,
                                                                 float aLMBeta);
Beispiel #9
0
 internal unsafe static extern ErrorCodes DS_CreateModel(string aModelPath,
                                                         string aAlphabetConfigPath,
                                                         uint aBeamWidth,
                                                         ref ModelState **pint);
Beispiel #10
0
 internal static unsafe extern string DS_SpeechToText(ModelState **aCtx,
                                                      short[] aBuffer,
                                                      uint aBufferSize,
                                                      uint aSampleRate);
Beispiel #11
0
 internal static unsafe extern int DS_EnableDecoderWithLM(ModelState **aCtx,
                                                          string aAlphabetConfigPath,
                                                          string aLMPath,
                                                          string aTriePath,
                                                          float aLMWeight,
                                                          float aValidWordCountWeight);