Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May I ask how C # can use this project #774

Open
dfengpo opened this issue Apr 10, 2024 · 1 comment
Open

May I ask how C # can use this project #774

dfengpo opened this issue Apr 10, 2024 · 1 comment

Comments

@dfengpo
Copy link

dfengpo commented Apr 10, 2024

I want to integrate your project into my project,
But I developed using C #.
May I ask how I can request your project? It can also be done through an API format

@maciejbielecki
Copy link

I did something like this:

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = true;
startInfo.FileName = "whisperx";
startInfo.Arguments = $"\"{request.FileName}\" {(request.IsCpu ? "--compute_type int8" : "")} --model {request.Model} --language {request.Language}  --output_dir \"{Path.GetFullPath(Path.Combine(outputPath, request.Id.ToString(), "output"))}\" {(request.ShouldTranslate == false ? string.Empty : "--task translate")}";

Process prc = Process.Start(startInfo);
prc.EnableRaisingEvents = true;
await prc.WaitForExitAsync();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants