?say=XYZ to TTS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user