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

No file output if output folder/type not selected #20

Closed
rsmith02ct opened this issue Apr 16, 2023 · 9 comments
Closed

No file output if output folder/type not selected #20

rsmith02ct opened this issue Apr 16, 2023 · 9 comments

Comments

@rsmith02ct
Copy link

Using whisper-ctranslate2 0.1.8 (Windows 11 Pro 64 bit build 22621) I am not getting any transcription output if I don't select a type/location for it.
image

Text is generated but nothing is output at C:\Users\rsmit\Dropbox\Videos

Using this command line: whisper-ctranslate2.exe --language en --model "base" --device CPU --output_dir "C:\Users\rsmit\Dropbox\Videos" --output_format "srt" "C:\Users\rsmit\Dropbox\Videos\080109-002.wav"

I get a SRT file in that folder with the contents:
1
00:00:00,000 --> 00:00:07,280
Hi, this is Roger Smith with the U.S. Base Conservation Group, my dearth.

@zhengliuer
Copy link

I used

whisper-ctranslate2.exe --language en --model "base" --device CPU --output_dir "D:\" --output_format "srt" ".\Day01.wav"

And I got nothing. The terminal warned me, but no error showed up!
image

@Purfview
Copy link

Try whisper-ctranslate2 0.1.9 from that post: https://github.com/jordimas/whisper-ctranslate2/issues/15#issuecomment-1510109193

@jordimas
Copy link
Collaborator

@ZhengLiu97 If you can please open a seperate issue specifying which operating system version, whisper-ctranslate2 version, etc.

@jordimas
Copy link
Collaborator

@rsmith02ct I cannot reproduce the problem. I spin off a Windows Box with the same versions and I just cannot reproduce.

If you can please run:

  • whisper-ctranslate2.exe file.wav
  • whisper-ctranslate2.exe file.wav --output_dir directory
  • whisper-ctranslate2.exe file.wav --output_dir --output_format "srt"

I'm trying to understand if what makes this work for you is a) specifying only --output_dir, b) specifying only --output_format or c) specifying both --output_dir and --output_format

@rsmith02ct
Copy link
Author

rsmith02ct commented Apr 16, 2023

Sure, happy to report what's going on specifically.

Here are three command lines.

whisper-ctranslate2.exe file.wav "C:\Users\rsmit\Dropbox\Videos\080109-002.wav"

whisper-ctranslate2.exe "C:\Users\rsmit\Dropbox\Videos\080109-002.wav" --output_dir "C:\Users\rsmit\Dropbox\Videos"

whisper-ctranslate2.exe "C:\Users\rsmit\Dropbox\Videos\080109-002.wav" --output_dir "C:\Users\rsmit\Dropbox\Videos" --output_format "srt"

All three of them don't work. No text appears in the command prompt window and no files are output:

Second try
whisper-ctranslate2.exe --device CPU "C:\Users\rsmit\Dropbox\Videos\080109-002.wav"

Shows text in the command line window but no files are output into the folder with the source video (I assume that's where it would go?)

whisper-ctranslate2.exe --device CPU "C:\Users\rsmit\Dropbox\Videos\080109-002.wav" --output_dir "C:\Users\rsmit\Dropbox\Videos"

Outputs a .json, srt, tsv, txt and vtt in C:\Users\rsmit\Dropbox\Videos

whisper-ctranslate2.exe --device CPU "C:\Users\rsmit\Dropbox\Videos\080109-002.wav" --output_dir "C:\Users\rsmit\Dropbox\Videos" --output_format "srt"

Outputs a srt in C:\Users\rsmit\Dropbox\Videos

@Purfview
Copy link

whisper-ctranslate2.exe --device CPU "C:\Users\rsmit\Dropbox\Videos\080109-002.wav"

Shows text in the command line window but no files are output into the folder with the source video (I assume that's where it would go?)

You should look in a folder where is your executable located.

@rsmith02ct
Copy link
Author

Really, it defaults there? I didn't have that folder open.

Okay, so:

whisper-ctranslate2.exe --device CPU "C:\Users\rsmit\Dropbox\Videos\080109-002.wav"

Output json, srt, tsv, txt, vtt in C:\Users\rsmit\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts

So this issue's resolved, my remaining problem is just CUDA. Thank you.

@jordimas
Copy link
Collaborator

Thanks. This has been a good discussion. Now when in verbose mode the tool displays the output directory to make sure that everybody is clear were the files are:

jordimas@bcea4cd

@Purfview
Copy link

Really, it defaults there?

Don't you remember? A ~month ago you asked me same thing about whisper-OpenAI. :)

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

4 participants