lib

package
v0.0.0-...-acb66b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileWord

type ProfileWord struct {
	Notation string `yaml:"notation"`
	Sound    string `yaml:"sound"`
}

type RecognitionSetting

type RecognitionSetting struct {
	AppKey           string               `yaml:"app_key"`
	AudioFormat      amivoice.AudioFormat `yaml:"audio_format"`
	GrammarFileNames amivoice.GrammarFile `yaml:"grammar_file"`
	ProfileID        string               `yaml:"profile_id,omitempty"`
	ProfileWords     []ProfileWord        `yaml:"profile_words,omitempty"`
	NoLog            bool                 `yaml:"no_log,omitempty"`
}

func ReadSetting

func ReadSetting() (*RecognitionSetting, error)

func (*RecognitionSetting) GenerateRecognitionConfig

func (r *RecognitionSetting) GenerateRecognitionConfig(data io.Reader) *amivoice.RecognitionConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL