processreqs

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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 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 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