config

package
v0.0.0-...-fd181a3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server         ServerConfig
	WakeWordServer WakeWordServerConfig
	Recording      audio.Config
	Playback       audio.Config
}

Config contains the application configuration

func ReadConfigFile

func ReadConfigFile(filename string) (Config, error)

ReadConfigFile attempts to load the given config file

type ServerConfig

type ServerConfig struct {
	Address  string
	Insecure bool
	ModelID  string
}

ServerConfig contains the Diatheke server settings

type WakeWordServerConfig

type WakeWordServerConfig struct {
	Address                 string
	Insecure                bool
	ModelID                 string
	AudioBufferSec          float32
	WakePhrases             []string
	MinWakePhraseConfidence float64
}

Jump to

Keyboard shortcuts

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