(self, prompt_wav: Optional[str])
| 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, |
no test coverage detected