コード例 #1
0
ファイル: route.go プロジェクト: keimoon/draft-voice
func speak(c *web.Context) {
	w := web.GetWriter(c)
	w.Render("speak.html", goru.Data{
		"Sentences": []string{
			"Hello",
			"Goodbye",
			"Help",
			"Help me",
			"List",
			"Yes",
			"No",
			"Start",
			"Next",
			"Back",
			"Stop",
			"Start",
			"Open photography",
			"Add photography",
			"Remove photography",
			"Show me cute kittens",
			"Show me Arches National Park!",
			"This specification defines a JavaScript API to enable web developers to incorporate speech recognition and synthesis into their web pages.",
		},
	})
}
コード例 #2
0
ファイル: route.go プロジェクト: keimoon/draft-voice
func gesture(c *web.Context) {
	w := web.GetWriter(c)
	w.Render("gesture.html", &goru.Data{})
}
コード例 #3
0
ファイル: route.go プロジェクト: keimoon/draft-voice
func recognition(c *web.Context) {
	w := web.GetWriter(c)
	w.Render("recognition.html", &goru.Data{})
}