OpenAI
OpenAI provides speech-to-text models through its audio transcription API. OSTT supports GPT Transcribe, the GPT-4o transcription models, GPT-4o diarization, and the legacy hosted Whisper model.
API documentation: OpenAI create transcription
Models
| Model ID | Notes |
|---|---|
openai/gpt-transcribe | OpenAI's recommended file-transcription model. Native keyword and multi-language hints for multilingual and code-switched audio. |
openai/gpt-4o-transcribe | Higher-quality GPT-4o transcription model. |
openai/gpt-4o-mini-transcribe | Faster, lighter GPT-4o transcription model. Good for high-volume use. |
openai/gpt-4o-transcribe-diarize | GPT-4o transcription with diarized JSON output and speaker-segment annotations. |
openai/whisper-1 | Legacy hosted Whisper model. Broad compatibility. |
Select A Model
ostt model select openai/gpt-transcribePer command:
ostt transcribe meeting.mp3 -m openai/gpt-transcribeParams
Configure persistent params in ~/.config/ostt/ostt.toml:
[openai.gpt-transcribe.params]
languages = ["en", "sv"]
keywords = ["OSTT", "Whisper", "Rust"]
prompt = "Technical meeting about OSTT."
[openai.gpt-4o-transcribe.params]
language = "sv"
prompt = "Technical meeting about OSTT, Whisper, and Rust."
temperature = 0.0
include = ["logprobs"]
[openai.whisper-1.params]
response_format = "verbose_json"
timestamp_granularities = ["word"]
[openai.gpt-4o-transcribe-diarize.params]
response_format = "diarized_json"
chunking_strategy = "auto"
known_speaker_names = ["agent"]Override for one invocation with --param key=value:
ostt transcribe meeting.mp3 -m openai/gpt-transcribe --param languages=en,sv --param keywords=OSTT,Whisper
ostt transcribe meeting.mp3 -m openai/gpt-4o-transcribe --param language=sv --param temperature=0
ostt transcribe meeting.wav -m openai/gpt-4o-transcribe-diarize --param chunking_strategy=autoList supported params for any model:
ostt model params openai/gpt-transcribe --format jsonOSTT always returns plain transcript text. Params that require a JSON response are supported only when the response still contains a top-level text field. OSTT does not expose stream=true.
GPT Transcribe Params
gpt-transcribe uses plural languages, not language, and does not support temperature or include. Put its params under [openai.gpt-transcribe.params] rather than shared [openai.params].
| Param | Type | Description |
|---|---|---|
languages | string list | Optional language hints, such as ["en", "sv"], for multilingual or code-switched audio. |
keywords | string list | Terms to recognize, sent as repeated keywords[] form fields. Saved ostt keyword terms are used when keywords is not set; an explicit keywords list replaces them. Keywords cannot contain <, >, or line breaks. |
prompt | string | Context text that guides spelling, terminology, and style. Saved keywords are not folded into the prompt. |
GPT-4o Params
| Param | Type | Description |
|---|---|---|
language | string | Optional language hint, such as en or sv. Use when you know the source language. |
prompt | string | Context text that guides spelling, terminology, names, and writing style. Saved ostt keyword terms are used as fallback only when prompt is not set. |
temperature | number | Sampling temperature, 0.0 to 1.0. Lower values are more deterministic. |
include | string list | logprobs returns token log probabilities from gpt-4o-transcribe and gpt-4o-mini-transcribe. OSTT still outputs only transcript text. |
Diarization Params
Use openai/gpt-4o-transcribe-diarize for diarization. OSTT sends response_format = "diarized_json" and chunking_strategy = "auto" by default for this model and returns the combined text field. This model does not support prompt, and OSTT does not send saved ostt keyword terms to it.
| Param | Type | Description |
|---|---|---|
language | string | Optional language hint. |
temperature | number | Sampling temperature, 0.0 to 1.0. |
response_format | string | Supported values in OSTT: json, diarized_json. Defaults to diarized_json. |
chunking_strategy | string | Supported value: auto. Defaults to auto; OpenAI requires chunking for recordings longer than 30 seconds. |
known_speaker_names | string list | Optional known speaker labels, sent as repeated known_speaker_names[] form fields. |
known_speaker_references | string list | Optional data URL audio references, sent as repeated known_speaker_references[] form fields. |
Whisper Params
whisper-1 supports timestamp metadata through verbose_json. OSTT parses the text field and does not expose word or segment metadata in command output.
| Param | Type | Description |
|---|---|---|
language | string | Optional language hint. |
prompt | string | Context text for names and vocabulary. Saved ostt keyword terms are used as fallback only when prompt is not set. |
temperature | number | Sampling temperature, 0.0 to 1.0. |
response_format | string | Supported values in OSTT: json, verbose_json. text, srt, and vtt are not exposed because OSTT's OpenAI path parses JSON. |
timestamp_granularities | string list | Supported values: word, segment. Requires response_format = "verbose_json"; OSTT sets verbose_json automatically if timestamps are set without an explicit response format. |