Skip to content

Use , character instead of . for SRT output.#197

Merged
jongwook merged 1 commit intoopenai:mainfrom
codebycaleb:fix-srt-separator
Sep 30, 2022
Merged

Use , character instead of . for SRT output.#197
jongwook merged 1 commit intoopenai:mainfrom
codebycaleb:fix-srt-separator

Conversation

@codebycaleb
Copy link
Copy Markdown
Contributor

The SRT format uses the decimal comma character as the fractional separator rather than the decimal point character. Adjust format_timestamp and write_srt to specify the separator character.

See https://en.wikipedia.org/wiki/SubRip#:~:text=the%20fractional%20separator%20used%20is%20the%20comma%2C%20since%20the%20program%20was%20written%20in%20france.

The SRT format uses the decimal comma character as the fractional separator rather than the decimal point character. Adjust format_timestamp and write_srt to specify the separator character.

See https://en.wikipedia.org/wiki/SubRip#:~:text=the%20fractional%20separator%20used%20is%20the%20comma%2C%20since%20the%20program%20was%20written%20in%20france.
@jongwook jongwook merged commit 60132ad into openai:main Sep 30, 2022
@codebycaleb codebycaleb deleted the fix-srt-separator branch October 1, 2022 19:34
heejipark23 pushed a commit to heejipark23/whisper that referenced this pull request Sep 21, 2025
The SRT format uses the decimal comma character as the fractional separator rather than the decimal point character. Adjust format_timestamp and write_srt to specify the separator character.

See https://en.wikipedia.org/wiki/SubRip#:~:text=the%20fractional%20separator%20used%20is%20the%20comma%2C%20since%20the%20program%20was%20written%20in%20france.
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