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

Added support for .vtt format to Whisper server #1578

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

aleksanderandrzejewski
Copy link
Contributor

  • The code comes from examples/main
  • The output mimetype is set to text/vtt

Test:

aa@Aleksanders-MacBook-Air whisper.cpp_aa % curl 127.0.0.1:8080/inference \
-H "Content-Type: multipart/form-data" \
-F file="@samples/jfk.wav" \
-F temperature="0.2" \
-F response-format="vtt"
WEBVTT

00:00:00.000 --> 00:00:07.600
 And so my fellow Americans, ask not what your country can do for you,

00:00:07.600 --> 00:00:10.600
 ask what you can do for your country.

- The code comes from examples/main
- The output mimetype is set to text/vtt

Example usage:
```shell
curl 127.0.0.1:8080/inference \
-H "Content-Type: multipart/form-data" \
-F file="@samples/jfk.wav" \
-F temperature="0.2" \
-F response-format="vtt"
```
@bobqianic bobqianic merged commit a0ec3fa into ggerganov:master Nov 30, 2023
37 checks passed
@aleksanderandrzejewski aleksanderandrzejewski deleted the server-vtt branch December 1, 2023 07:42
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
- The code comes from examples/main
- The output mimetype is set to text/vtt

Example usage:
```shell
curl 127.0.0.1:8080/inference \
-H "Content-Type: multipart/form-data" \
-F file="@samples/jfk.wav" \
-F temperature="0.2" \
-F response-format="vtt"
```
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
- The code comes from examples/main
- The output mimetype is set to text/vtt

Example usage:
```shell
curl 127.0.0.1:8080/inference \
-H "Content-Type: multipart/form-data" \
-F file="@samples/jfk.wav" \
-F temperature="0.2" \
-F response-format="vtt"
```
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

Successfully merging this pull request may close these issues.

2 participants