Versions in this module Expand all Collapse all v0 v0.7.0 Feb 20, 2020 Changes in this version + func GetVersion() string type Model + func (m *Model) DisableExternalScorer() + func (m *Model) EnableExternalScorer(scorerPath string) + func (m *Model) GetModelBeamWidth() uint + func (m *Model) SetModelBeamWidth(beamWidth uint) v0.6.0 Dec 4, 2019 Changes in this version + func PrintVersions() + type Metadata C.struct_Metadata + func (m *Metadata) Close() error + func (m *Metadata) Confidence() float64 + func (m *Metadata) Items() []MetadataItem + func (m *Metadata) NumItems() int32 + type MetadataItem C.struct_MetadataItem + func (mi *MetadataItem) Character() string + func (mi *MetadataItem) StartTime() float32 + func (mi *MetadataItem) Timestep() int + type Model struct + func New(modelPath string, beamWidth int) *Model + func (m *Model) Close() error + func (m *Model) EnableDecoderWithLM(lmPath, triePath string, lmWeight, validWordCountWeight float64) + func (m *Model) GetModelSampleRate() int + func (m *Model) SpeechToText(buffer []int16, bufferSize uint) string + func (m *Model) SpeechToTextWithMetadata(buffer []int16, bufferSize uint) *Metadata + type Stream struct + func CreateStream(mw *Model) *Stream + func (s *Stream) FeedAudioContent(buffer []int16, bufferSize uint) + func (s *Stream) FinishStream() string + func (s *Stream) FinishStreamWithMetadata() *Metadata + func (s *Stream) FreeStream() + func (s *Stream) IntermediateDecode() string