Package io.github.thoroldvix.api
Class TranscriptFormatters
java.lang.Object
io.github.thoroldvix.api.TranscriptFormatters
Responsible for creating
TranscriptFormatter
instances.
Available formatters are:
-
Method Summary
Modifier and TypeMethodDescriptionstatic TranscriptFormatter
Creates aTranscriptFormatter
that formats transcript content as JSON.static TranscriptFormatter
Creates aTranscriptFormatter
that formats transcript content as pretty-printed JSON.static TranscriptFormatter
Creates aTranscriptFormatter
that formats transcript content as SRT (SubRip) subtitles.static TranscriptFormatter
Creates aTranscriptFormatter
that formats transcript content as plain text without timestamps.static TranscriptFormatter
Creates aTranscriptFormatter
that formats transcript content as WebVTT format.
-
Method Details
-
jsonFormatter
Creates aTranscriptFormatter
that formats transcript content as JSON.- Returns:
- A
TranscriptFormatter
for JSON format.
-
prettyJsonFormatter
Creates aTranscriptFormatter
that formats transcript content as pretty-printed JSON.- Returns:
- A
TranscriptFormatter
for pretty-printed JSON format.
-
textFormatter
Creates aTranscriptFormatter
that formats transcript content as plain text without timestamps.- Returns:
- A
TranscriptFormatter
for plain text format.
-
webVTTFormatter
Creates aTranscriptFormatter
that formats transcript content as WebVTT format.See WebVTT specification for more information.
- Returns:
- A
TranscriptFormatter
for WebVTT format.
-
srtFormatter
Creates aTranscriptFormatter
that formats transcript content as SRT (SubRip) subtitles.See SRT file format for more information.
- Returns:
- A
TranscriptFormatter
for SRT format.
-