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

Method generate

funasr/auto/auto_model_vllm.py:289–299  ·  view source on GitHub ↗

Run ASR inference. Args: inputs: Audio file path(s), numpy arrays, or tensors. **kwargs: Model-specific parameters (language, hotwords, etc.) Returns: List of result dicts with "key" and "text" fields.

(self, inputs, **kwargs)

Source from the content-addressed store, hash-verified

287 )
288
289 def generate(self, inputs, **kwargs):
290 """Run ASR inference.
291
292 Args:
293 inputs: Audio file path(s), numpy arrays, or tensors.
294 **kwargs: Model-specific parameters (language, hotwords, etc.)
295
296 Returns:
297 List of result dicts with "key" and "text" fields.
298 """
299 return self._engine.generate(inputs, **kwargs)
300
301 @classmethod
302 def supported_models(cls):

Callers 1

run_vllmFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected