Skip to content

Commit ada93f2

Browse files
committed
feat: add descs for speech to text responses
1 parent 0404386 commit ada93f2

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
export default {
2+
metadata: {
3+
desc: `Metadata about the transcription response, including timing, models, and IDs.`,
4+
},
5+
transaction_key: {
6+
desc: `A unique transaction key; currently always “deprecated”.`,
7+
},
8+
request_id: {
9+
desc: `A UUID identifying this specific transcription request.`,
10+
},
11+
sha256: {
12+
desc: `The SHA-256 hash of the submitted audio file (for pre-recorded requests).`,
13+
},
14+
created: {
15+
desc: `ISO-8601 timestamp.`,
16+
},
17+
duration: {
18+
desc: `Length of the audio in seconds.`,
19+
},
20+
channels: {
21+
desc: `Number of independent audio channels detected/submitted.`,
22+
},
23+
models: {
24+
desc: `List of model UUIDs used for this transcription`,
25+
},
26+
model_info: {
27+
desc: `Mapping from each model UUID (in 'models') to detailed info: its name, version, and architecture.`,
28+
name: {
29+
desc: `The human-readable name of the model — identifies which model was used.`,
30+
},
31+
version: {
32+
desc: `The specific version of the model.`,
33+
},
34+
arch: {
35+
desc: `The architecture of the model — describes the model family / generation.`,
36+
},
37+
},
38+
status: {
39+
desc: `The current status of the generation task.`,
40+
},
41+
};

packages/openapi/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ export { default as videoResponse } from './descriptions/video.response.js';
1616
export { default as chatCompletionResponse } from './descriptions/chat-completion.response.js';
1717
export { default as imageResponse } from './descriptions/image.response.js';
1818
export { default as responsesResponse } from './descriptions/responses.response.js';
19-
export { default as audioResponse } from './descriptions/audio.response.js';
19+
export { default as audioResponse } from './descriptions/audio.response.js';
20+
export { default as speechToTextResponse } from './descriptions/speech-to-text.response.js';

0 commit comments

Comments
 (0)