Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeepSpeech ¶
type DeepSpeech struct {
// contains filtered or unexported fields
}
func New ¶
func New(o Options, l astikit.StdLogger) (d *DeepSpeech)
func (*DeepSpeech) Close ¶
func (d *DeepSpeech) Close()
func (*DeepSpeech) Init ¶
func (d *DeepSpeech) Init() (err error)
func (*DeepSpeech) Parse ¶
func (d *DeepSpeech) Parse(samples []int, bitDepth, numChannels, sampleRate int) (t string, err error)
func (*DeepSpeech) Train ¶
func (d *DeepSpeech) Train(ctx context.Context, speeches []speech_to_text.SpeechFile, progressFunc func(speech_to_text.Progress))
type Options ¶
type Options struct { AlphabetPath string `toml:"alphabet_path"` BeamWidth int `toml:"beam_width"` ClientPath string `toml:"client_path"` LMPath string `toml:"lm_path"` LMWeight float64 `toml:"lm_weight"` ModelPath string `toml:"model_path"` PrepareDirPath string `toml:"prepare_dir_path"` PythonBinaryPath string `toml:"python_binary_path"` TrainingArgs map[string]string `toml:"training_args"` TriePath string `toml:"trie_path"` ValidWordCountWeight float64 `toml:"1.85"` }
Click to show internal directories.
Click to hide internal directories.