Documentation ¶
Index ¶
- Variables
- func InitKnowledge()
- func Interrupt(esn string)
- func KGSim(esn string, textToSay string) error
- func KgRequest(speechReq sr.SpeechRequest) string
- func ParseSpokenResponse(serverResponseJSON string) (string, error)
- func ReloadVosk()
- func RemoveFromInterrupt(esn string)
- func ShouldBeInterrupted(esn string) bool
- func StreamAudioToHoundify(sreq sr.SpeechRequest, client houndify.Client) string
- type JsonIntent
- type Server
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 KgRequest ¶
func KgRequest(speechReq sr.SpeechRequest) string
Takes a SpeechRequest, figures out knowledgegraph provider, makes request, returns API response
func ParseSpokenResponse ¶
func ReloadVosk ¶
func ReloadVosk()
func RemoveFromInterrupt ¶
func RemoveFromInterrupt(esn string)
func ShouldBeInterrupted ¶
func StreamAudioToHoundify ¶
func StreamAudioToHoundify(sreq sr.SpeechRequest, client houndify.Client) string
Types ¶
type JsonIntent ¶
type Server ¶
type Server struct{}
Server stores the config
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)
Click to show internal directories.
Click to hide internal directories.