def _run_alignment()

in ultravox/tools/ds_tool/ds_tool.py [0:0]


    def _run_alignment(self, temp_dir: str, num_proc: int = 16) -> None:
        subprocess.run(
            [
                "conda",
                "run",
                "--no-capture-output",
                "-n",
                MFA_ENV_NAME,
                "mfa",
                "align",
                "--clean",
                "--single_speaker",
                "--use_mp",
                "-j",
                str(num_proc),
                temp_dir,
                self.mfa_acoustic_model,
                str(self.mfa_dictionary),
                temp_dir,
            ],
            check=True,
        )