MCPcopy
hub / github.com/OpenBMB/VoxCPM / prompt_wav_recognition

Method prompt_wav_recognition

app.py:246–250  ·  view source on GitHub ↗
(self, prompt_wav: Optional[str])

Source from the content-addressed store, hash-verified

244 return self.voxcpm_model
245
246 def prompt_wav_recognition(self, prompt_wav: Optional[str]) -> str:
247 if prompt_wav is None:
248 return ""
249 res = self.asr_model.generate(input=prompt_wav, language="auto", use_itn=True)
250 return res[0]["text"].split("|>")[-1]
251
252 def _build_generate_kwargs(
253 self,

Callers 1

_run_asr_if_neededFunction · 0.45

Calls 1

generateMethod · 0.45

Tested by

no test coverage detected