|
@@ -50,7 +50,6 @@ func (ip *IpCast) Speak(txt string) {
|
|
|
Queue: false,
|
|
|
}
|
|
|
data.Loop.Times = 1
|
|
|
- logrus.Debugf("IpCast Speak txt : %s", txt)
|
|
|
body, err := json.Marshal(data)
|
|
|
if err != nil {
|
|
|
logrus.Errorf("IpCast Marshal err : %s", err.Error())
|
|
@@ -59,7 +58,6 @@ func (ip *IpCast) Speak(txt string) {
|
|
|
|
|
|
req, _ := http.NewRequest("POST", fmt.Sprintf("http://%s/v1/speech", ip.Ip), bytes.NewReader(body))
|
|
|
req.Header.Set("Content-Type", "application/json")
|
|
|
- logrus.Debugf("IpCast Speak req : %+v", req)
|
|
|
rsp, err := http.DefaultClient.Do(req)
|
|
|
if err != nil {
|
|
|
logrus.Errorf("IpCast Speak Do err : %s", err.Error())
|