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

func CreateCubicConfig

func CreateCubicConfig(cfg Config) (*cubicpb.RecognitionConfig, error)

CreateCubicConfig checks the value of cfg.Extension and populates the RecognitionConfig struct if there was no error. Note: there are many more options available to control the Cubic output. This example illustrates a simple case. Please see https://cobaltspeech.github.io/sdk-cubic/protobuf/autogen-doc-cubic-proto/#message-recognitionconfig for description of other available options.

Types

type Config

type Config struct {
	Channels    []uint32
	NumWorkers  int
	Prefix      bool
	Server      ServerConfig
	LogFilePath string
	Verbose     bool
	Extension   string
	CubicConfig *cubicpb.RecognitionConfig
}

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
	IdleTimeout int64
	GRPCTimeout int
}

ServerConfig contains the Diatheke server settings

Jump to

Keyboard shortcuts

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