()
| 130 | |
| 131 | // send json at end of wav |
| 132 | public void sendEof() { |
| 133 | try { |
| 134 | JSONObject obj = new JSONObject(); |
| 135 | |
| 136 | obj.put("is_speaking", new Boolean(false)); |
| 137 | |
| 138 | logger.info("sendEof: " + obj); |
| 139 | // return; |
| 140 | |
| 141 | send(obj.toString()); |
| 142 | iseof = true; |
| 143 | return; |
| 144 | } catch (Exception e) { |
| 145 | e.printStackTrace(); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // function for rec wav file |
| 150 | public void recWav() { |