Skip to content

Commit

Permalink
Improve help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
azhuge233 committed Jun 22, 2023
1 parent 7b4296d commit 7f811a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ConsoleWhisper/Model/Argument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public class Argument {
[Value(2, Required = false)]
public string Language { get; set; }

[Option("only-extract", Required = false, Hidden = false, Default = false, HelpText = "Extract audio stream, without transcribing.")]
[Option("only-extract", Required = false, Hidden = false, Default = false, HelpText = "Extract audio stream only.")]
[Value(3, Required = false)]
public bool OnlyExtract { get; set; }

[Option("multithread", Required = false, Hidden = false, Default = false, HelpText = "Use multithreading when extracting soundtrack.")]
[Option("multithread", Required = false, Hidden = false, Default = false, HelpText = "Use multithread, only works for audio extraction.")]
[Value(4, Required = false)]
public bool Multithread { get; set; }

Expand Down
6 changes: 6 additions & 0 deletions ConsoleWhisper/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ internal static class Runner {

private static async Task DoTranscribeMultithread(KeyValuePair<string, string>[] mediaWavMap, Argument arg) {
try {
/// Stress test mode
//var tasks = Enumerable.Range(0, mediaWavMap.Length)
// .Select(i => Task.Run(() => DoTranscribe(mediaWavMap[i].Value, mediaWavMap[i].Key, i + 1, arg)));

//await Task.WhenAll(tasks);

int cnt = 1;
foreach (var pair in mediaWavMap) {
var wavFilename = pair.Value;
Expand Down

0 comments on commit 7f811a7

Please sign in to comment.