wirepod_ttr

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// arg: text to say
	// not a command
	ActionSayText = 0
	// arg: animation name
	ActionPlayAnimation = 1
	// arg: animation name
	ActionPlayAnimationWI = 2
	// arg: sound file
	ActionPlaySound = 3
)

Variables

View Source
var PluginFunctions []func(string, string, string, string) (string, string)
View Source
var PluginList []*plugin.Plugin
View Source
var PluginNames []string
View Source
var PluginUtterances []*[]string
View Source
var ValidLLMCommands []LLMCommand = []LLMCommand{
	{
		Command:      "playAnimation",
		Description:  "Plays an animation on the robot. This will interrupt speech.",
		ParamChoices: "happy, veryHappy, sad, verySad, angry, frustrated, dartingEyes, confused, thinking, celebrate",
		Action:       ActionPlayAnimation,
	},
	{
		Command:      "playAnimationWI",
		Description:  "Plays an animation on the robot without interrupting speech.",
		ParamChoices: "happy, veryHappy, sad, verySad, angry, frustrated, dartingEyes, confused, thinking, celebrate",
		Action:       ActionPlayAnimationWI,
	},
}

Functions

func CreatePrompt added in v1.2.5

func CreatePrompt(origPrompt string) string

func DoPlayAnimation added in v1.2.5

func DoPlayAnimation(animation string, robot *vector.Vector) error

func DoPlayAnimationWI added in v1.2.5

func DoPlayAnimationWI(animation string, robot *vector.Vector) error

func DoPlaySound added in v1.2.5

func DoPlaySound(sound string, robot *vector.Vector) error

func DoSayText added in v1.2.5

func DoSayText(input string, robot *vector.Vector) error

func GetChat added in v1.1.6

func GetChat(esn string) vars.RememberedChat

func IntentPass

func IntentPass(req interface{}, intentThing string, speechText string, intentParams map[string]string, isParam bool) (interface{}, error)

func KGSim added in v1.1.6

func KGSim(esn string, textToSay string) error

func LoadPlugins

func LoadPlugins()

func ParamChecker

func ParamChecker(req interface{}, intent string, speechText string, botSerial string)

stt

func ParamCheckerSlotsEnUS

func ParamCheckerSlotsEnUS(req interface{}, intent string, slots map[string]string, isOpus bool, botSerial string)

stintent

func PerformActions added in v1.2.5

func PerformActions(actions []RobotAction, robot *vector.Vector)

func PlaceChat added in v1.1.6

func PlaceChat(chat vars.RememberedChat)

func ProcessTextAll

func ProcessTextAll(req interface{}, voiceText string, listOfLists [][]string, intentList []string, isOpus bool) bool

func Remember added in v1.1.6

func Remember(user, ai, esn string)

remember last 16 lines of chat

func StreamingKGSim added in v1.1.6

func StreamingKGSim(req interface{}, esn string, transcribedText string) (string, error)

Types

type LLMCommand added in v1.2.5

type LLMCommand struct {
	Command      string
	Description  string
	ParamChoices string
	Action       int
}

type RobotAction added in v1.2.5

type RobotAction struct {
	Action    int
	Parameter string
}

func CmdParamToAction added in v1.2.5

func CmdParamToAction(cmd, param string) RobotAction

func GetActionsFromString added in v1.2.5

func GetActionsFromString(input string) []RobotAction

type WeatherStruct

type WeatherStruct struct {
	Id          int    `json:"id"`
	Main        string `json:"main"`
	Description string `json:"description"`
	Icon        string `json:"icon"`
}

Jump to

Keyboard shortcuts

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