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

Downloading the file, it gets html extension #192

Open
resuarez opened this issue Feb 4, 2024 · 2 comments
Open

Downloading the file, it gets html extension #192

resuarez opened this issue Feb 4, 2024 · 2 comments

Comments

@resuarez
Copy link

resuarez commented Feb 4, 2024

I am using unraid, Whisper Asr Webservice 1.2.4 OAS 3.1
I use srt as output format. When, I tried to download the file, I always get response_###.html format, instead of srt file. I've just do manually and I get the file. But, I am wondering why it is not working if the
content-disposition: attachment; filename="sample-0.mp3.srt"
seem to be ok.

image

@resuarez
Copy link
Author

resuarez commented Feb 4, 2024

I've tried in Edge and Chrome with same results.

@blundercode
Copy link

blundercode commented Feb 13, 2024

Tested and confirmed the same bug using that button.

A quick workaround is to temporarily use the Curl command to put it into and SRT file.

Example:

curl -o filename.srt \
  -X 'POST' \
  'http://localhost:9000/asr?encode=true&task=transcribe&language=en&vad_filter=true&word_timestamps=false&output=srt' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected];type=audio/mpeg'

Hopefully this helps.

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