mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
28 lines
833 B
C#
28 lines
833 B
C#
using System.Runtime.InteropServices;
|
|
using Alphabet = System.IntPtr;
|
|
using Scorer = System.IntPtr;
|
|
using Session = System.IntPtr;
|
|
using MemmappedEnv = System.IntPtr;
|
|
using GraphDef = System.IntPtr;
|
|
|
|
namespace DeepSpeechClient.Structs
|
|
{
|
|
//FIXME: ModelState is an opaque pointer to the API, why is this code reverse
|
|
// engineering its contents?
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public unsafe struct ModelState
|
|
{
|
|
public MemmappedEnv mmap_env;
|
|
public Session session;
|
|
public GraphDef graph_def;
|
|
public uint ncep;
|
|
public uint ncontext;
|
|
public Alphabet alphabet;
|
|
public Scorer scorer;
|
|
public uint beam_width;
|
|
public uint n_steps;
|
|
public uint mfcc_feats_per_timestep;
|
|
public uint n_context;
|
|
}
|
|
}
|