config

package
v0.0.0-...-22acef4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName    = "Homo Webview"
	AppVersion = "0.0.1"
)

Variables

View Source
var (
	//App settings
	AppPath string
	LogPath string

	// Mode
	DebugMode      bool
	SilenceMode    bool
	OfflineMode    bool
	InterruptMode  bool
	AnalyticalMode bool // display intent and entities

	// Global config
	Cfg      *ini.File
	ConfFile string

	// PortAudio
	RawDir   string
	InputRaw string
	InputWav string

	//sphinx
	HMMDirEn        string
	DictFileEn      string
	LMFileEn        string
	SphinxLogFile   string
	RecordThreshold int

	// Nlu
	ConversationAPI string
	ParseAPI        string
	NluProject      string
	NluModel        string

	// baidu
	BaiduASRAPI         string
	BaiduTTSAPI         string
	BaiduVoiceAuthUrl   string
	BaiduVoiceAPIKey    string
	BaiduVoiceAPISecret string

	// TTS
	TTSDir     string
	TTSOutFile string

	// Flag
	IsPlayingVoice bool
	WakeUpd        bool
	WakeUpDisabled bool

	// Lock
	VoicePlayMutex sync.Mutex
	SphinxLoop     sync.WaitGroup // Make sphinx keep capturing audio input
	WakeUpWait     sync.WaitGroup

	//Auto convert raw pcm buffer to wav
	RawToWav bool
)

Functions

func LoadConfig

func LoadConfig()

func Terminal

func Terminal(c *cli.Context) error

func UpdateConfigFile

func UpdateConfigFile()

func WorkDir

func WorkDir() (string, error)

WorkDir returns absolute path of work directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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