processreqs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotsToInterrupt struct {
	ESNs []string
}
View Source
var HKGclient houndify.Client
View Source
var HoundEnable bool = true
View Source
var NoResult string = "NoResultCommand"
View Source
var NoResultSpoken string
View Source
var VoiceProcessor = ""

Functions

func InitKnowledge

func InitKnowledge()

func Interrupt

func Interrupt(esn string)

func KGSim

func KGSim(esn string, textToSay string) error

func KgRequest

func KgRequest(speechReq sr.SpeechRequest) string

Takes a SpeechRequest, figures out knowledgegraph provider, makes request, returns API response

func ParseSpokenResponse

func ParseSpokenResponse(serverResponseJSON string) (string, error)

func ReloadVosk

func ReloadVosk()

func RemoveFromInterrupt

func RemoveFromInterrupt(esn string)

func ShouldBeInterrupted

func ShouldBeInterrupted(esn string) bool

func StreamAudioToHoundify

func StreamAudioToHoundify(sreq sr.SpeechRequest, client houndify.Client) string

Types

type JsonIntent

type JsonIntent struct {
	Name       string   `json:"name"`
	Keyphrases []string `json:"keyphrases"`
}

type Server

type Server struct{}

Server stores the config

func New

func New(InitFunc func() error, SttHandler interface{}, voiceProcessor string) (*Server, error)

New returns a new server

func (*Server) ProcessIntent

func (s *Server) ProcessIntent(req *vtt.IntentRequest) (*vtt.IntentResponse, error)

This is here for compatibility with 1.6 and older software

func (*Server) ProcessIntentGraph

func (s *Server) ProcessIntentGraph(req *vtt.IntentGraphRequest) (*vtt.IntentGraphResponse, error)

func (*Server) ProcessKnowledgeGraph

func (s *Server) ProcessKnowledgeGraph(req *vtt.KnowledgeGraphRequest) (*vtt.KnowledgeGraphResponse, error)

Jump to

Keyboard shortcuts

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