(self, chunk)
| 147 | |
| 148 | # feed data to asr engine in stream way |
| 149 | def feed_chunk(self, chunk): |
| 150 | try: |
| 151 | self.websocket.send(chunk, ABNF.OPCODE_BINARY) |
| 152 | return |
| 153 | except: |
| 154 | print("feed chunk error") |
| 155 | return |
| 156 | def close(self): |
| 157 | self.connect_state==2 |
| 158 | self.websocket.close() |
no outgoing calls
no test coverage detected