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

Method create_stream

runtime/funasr_api/funasr_api.py:49–53  ·  view source on GitHub ↗
(self,msg_callback=None)

Source from the content-addressed store, hash-verified

47 print("Exception:", e)
48 traceback.print_exc()
49 def create_stream(self,msg_callback=None):
50 if self.funasr_core is not None:
51 self.funasr_core.close()
52 funasr_core=self.new_core(msg_callback=msg_callback)
53 return FunasrStream(funasr_core)
54
55
56

Callers 1

Calls 3

new_coreMethod · 0.95
FunasrStreamClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected