?say=XYZ to TTS

This commit is contained in:
bel
2023-03-26 09:12:05 -06:00
parent 340ca1d2f5
commit cb8b254cbb
7 changed files with 133 additions and 6 deletions

View File

@@ -79,10 +79,11 @@ func (v01 *V01) globalQueries(r *http.Request) {
}
func (v01 *V01) globalQuerySay(r *http.Request) {
if _, ok := r.URL.Query()["say"]; !ok {
text := r.URL.Query().Get("say")
if text == "" {
return
}
// todo larynx
go v01.tts(text)
}
func (v01 *V01) globalQueryRefresh(r *http.Request) {