MCPcopy Create free account
hub / github.com/modelscope/FunASR / feed_chunk

Method feed_chunk

runtime/funasr_api/funasr_core.py:149–155  ·  view source on GitHub ↗
(self, chunk)

Source from the content-addressed store, hash-verified

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()

Callers 2

rec_bufMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected