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 ¶
ReadConfigFile attempts to load the given config file
Click to show internal directories.
Click to hide internal directories.