-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
generated.json
2807 lines (2807 loc) · 108 KB
/
generated.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"info": {
"title": "Azure OpenAI API",
"version": "2023-09-01-preview",
"description": "Azure OpenAI APIs for completions and search",
"x-typespec-generated": [
{
"emitter": "@azure-tools/typespec-autorest"
}
]
},
"schemes": [
"https"
],
"x-ms-parameterized-host": {
"hostTemplate": "{endpoint}/openai",
"useSchemePrefix": false,
"parameters": [
{
"name": "endpoint",
"in": "path",
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).",
"required": true,
"type": "string"
}
]
},
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"security": [
{
"ApiKeyAuth": []
},
{
"OAuth2Auth": [
"https://cognitiveservices.azure.com/.default"
]
}
],
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "api-key",
"in": "header"
},
"OAuth2Auth": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
"scopes": {
"https://cognitiveservices.azure.com/.default": ""
}
}
},
"tags": [],
"paths": {
"/deployments/{deploymentId}/audio/transcriptions": {
"post": {
"operationId": "GetAudioTranscriptionAsPlainText",
"description": "Gets transcribed text and associated metadata from provided spoken audio data. Audio will be transcribed in the\nwritten language corresponding to the language it was spoken in.",
"produces": [
"text/plain",
"application/json"
],
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.file"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.filename"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.language"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"type": "string"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_transcription_text.json"
}
}
}
},
"/deployments/{deploymentId}/audio/translations": {
"post": {
"operationId": "GetAudioTranslationAsPlainText",
"description": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"produces": [
"text/plain",
"application/json"
],
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranslationOptions.file"
},
{
"$ref": "#/parameters/AudioTranslationOptions.filename"
},
{
"$ref": "#/parameters/AudioTranslationOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranslationOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranslationOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranslationOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"type": "string"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets English language transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_translation_text.json"
}
}
}
},
"/deployments/{deploymentId}/chat/completions": {
"post": {
"operationId": "GetChatCompletions",
"description": "Gets chat completions for the provided chat messages.\nCompletions support a wide variety of tasks and generate text that continues from or \"completes\"\nprovided prompt data.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ChatCompletionsOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/ChatCompletions"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Creates a completion for the provided prompt, parameters and chosen model.": {
"$ref": "./examples/chat_completions.json"
}
}
}
},
"/deployments/{deploymentId}/completions": {
"post": {
"operationId": "GetCompletions",
"description": "Gets completions for the provided input prompts.\nCompletions support a wide variety of tasks and generate text that continues from or \"completes\"\nprovided prompt data.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CompletionsOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/Completions"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Creates a completion for the provided prompt, parameters and chosen model.": {
"$ref": "./examples/completions.json"
}
}
}
},
"/deployments/{deploymentId}/embeddings": {
"post": {
"operationId": "GetEmbeddings",
"description": "Return the embeddings for a given prompt.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/EmbeddingsOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/Embeddings"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Return the embeddings for a given prompt.": {
"$ref": "./examples/embeddings.json"
}
}
}
},
"/deployments/{deploymentId}/extensions/chat/completions": {
"post": {
"operationId": "GetChatCompletionsWithAzureExtensions",
"description": "Gets chat completions for the provided chat messages.\nThis is an Azure-specific version of chat completions that supports integration with configured data sources and\nother augmentations to the base chat completions capabilities.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ChatCompletionsOptions"
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/ChatCompletions"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Creates a completion for the provided prompt, parameters and chosen model. Uses Azure OpenAI chat extensions.": {
"$ref": "./examples/extensions_chat_completions.json"
}
}
}
},
"/images/generations:submit": {
"post": {
"operationId": "BeginAzureBatchImageGeneration",
"description": "Starts the generation of a batch of images from a text caption",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ImageGenerationOptions"
}
}
],
"responses": {
"202": {
"description": "The request has been accepted for processing, but processing has not yet completed.",
"schema": {
"$ref": "#/definitions/BatchImageGenerationOperationResponse"
},
"headers": {
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
}
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Starts the generation of a batch of images from a text caption": {
"$ref": "./examples/start_generate_image.json"
}
},
"x-ms-long-running-operation": true
}
},
"/operations/images/{operationId}": {
"get": {
"operationId": "GetAzureBatchImageGenerationOperationStatus",
"description": "Returns the status of the images operation",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "operationId",
"in": "path",
"description": ".",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/BatchImageGenerationOperationResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Returns the status of the images operation": {
"$ref": "./examples/get_image_operation_status.json"
}
}
}
}
},
"x-ms-paths": {
"/deployments/{deploymentId}/audio/transcriptions?_overload=getAudioTranscriptionAsResponseObject": {
"post": {
"operationId": "GetAudioTranscriptionAsResponseObject",
"description": "Gets transcribed text and associated metadata from provided spoken audio data. Audio will be transcribed in the\nwritten language corresponding to the language it was spoken in.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.file"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.filename"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.language"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranscriptionOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranscription"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_transcription_object.json"
}
}
}
},
"/deployments/{deploymentId}/audio/translations?_overload=getAudioTranslationAsResponseObject": {
"post": {
"operationId": "GetAudioTranslationAsResponseObject",
"description": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "deploymentId",
"in": "path",
"description": "Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/AudioTranslationOptions.file"
},
{
"$ref": "#/parameters/AudioTranslationOptions.filename"
},
{
"$ref": "#/parameters/AudioTranslationOptions.responseFormat"
},
{
"$ref": "#/parameters/AudioTranslationOptions.prompt"
},
{
"$ref": "#/parameters/AudioTranslationOptions.temperature"
},
{
"$ref": "#/parameters/AudioTranslationOptions.model"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/AudioTranslation"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Gets English language transcribed text and associated metadata from provided spoken audio data.": {
"$ref": "./examples/audio_translation_object.json"
}
}
}
}
},
"definitions": {
"AudioTaskLabel": {
"type": "string",
"description": "Defines the possible descriptors for available audio operation responses.",
"enum": [
"transcribe",
"translate"
],
"x-ms-enum": {
"name": "AudioTaskLabel",
"modelAsString": true,
"values": [
{
"name": "transcribe",
"value": "transcribe",
"description": "Accompanying response data resulted from an audio transcription task."
},
{
"name": "translate",
"value": "translate",
"description": "Accompanying response data resulted from an audio translation task."
}
]
}
},
"AudioTranscription": {
"type": "object",
"description": "Result information for an operation that transcribed spoken audio into written text.",
"properties": {
"text": {
"type": "string",
"description": "The transcribed text for the provided audio data."
},
"task": {
"$ref": "#/definitions/AudioTaskLabel",
"description": "The label that describes which operation type generated the accompanying response data."
},
"language": {
"type": "string",
"description": "The spoken language that was detected in the transcribed audio data.\nThis is expressed as a two-letter ISO-639-1 language code like 'en' or 'fr'."
},
"duration": {
"type": "number",
"format": "float",
"description": "The total duration of the audio processed to produce accompanying transcription information."
},
"segments": {
"type": "array",
"description": "A collection of information about the timing, probabilities, and other detail of each processed audio segment.",
"items": {
"$ref": "#/definitions/AudioTranscriptionSegment"
}
}
},
"required": [
"text"
]
},
"AudioTranscriptionFormat": {
"type": "string",
"description": "Defines available options for the underlying response format of output transcription information.",
"enum": [
"json",
"verbose_json",
"text",
"srt",
"vtt"
],
"x-ms-enum": {
"name": "AudioTranscriptionFormat",
"modelAsString": true,
"values": [
{
"name": "json",
"value": "json",
"description": "Use a response body that is a JSON object containing a single 'text' field for the transcription."
},
{
"name": "verbose_json",
"value": "verbose_json",
"description": "Use a response body that is a JSON object containing transcription text along with timing, segments, and other\nmetadata."
},
{
"name": "text",
"value": "text",
"description": "Use a response body that is plain text containing the raw, unannotated transcription."
},
{
"name": "srt",
"value": "srt",
"description": "Use a response body that is plain text in SubRip (SRT) format that also includes timing information."
},
{
"name": "vtt",
"value": "vtt",
"description": "Use a response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information."
}
]
}
},
"AudioTranscriptionOptions": {
"type": "object",
"description": "The configuration information for an audio transcription request.",
"properties": {
"file": {
"type": "string",
"format": "byte",
"description": "The audio data to transcribe. This must be the binary content of a file in one of the supported media formats:\n flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm."
},
"filename": {
"type": "string",
"description": "The optional filename or descriptive identifier to associate with with the audio data."
},
"response_format": {
"$ref": "#/definitions/AudioTranscriptionFormat",
"description": "The requested format of the transcription response data, which will influence the content and detail of the result.",
"x-ms-client-name": "responseFormat"
},
"language": {
"type": "string",
"description": "The primary spoken language of the audio data to be transcribed, supplied as a two-letter ISO-639-1 language code\nsuch as 'en' or 'fr'.\nProviding this known input language is optional but may improve the accuracy and/or latency of transcription."
},
"prompt": {
"type": "string",
"description": "An optional hint to guide the model's style or continue from a prior audio segment. The written language of the\nprompt should match the primary spoken language of the audio data."
},
"temperature": {
"type": "number",
"format": "float",
"description": "The sampling temperature, between 0 and 1.\nHigher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nIf set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit."
},
"model": {
"type": "string",
"description": "The model to use for this transcription request."
}
},
"required": [
"file"
]
},
"AudioTranscriptionSegment": {
"type": "object",
"description": "Extended information about a single segment of transcribed audio data.\nSegments generally represent roughly 5-10 seconds of speech. Segment boundaries typically occur between words but not\nnecessarily sentences.",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "The 0-based index of this segment within a transcription."
},
"start": {
"type": "number",
"format": "float",
"description": "The time at which this segment started relative to the beginning of the transcribed audio."
},
"end": {
"type": "number",
"format": "float",
"description": "The time at which this segment ended relative to the beginning of the transcribed audio."
},
"text": {
"type": "string",
"description": "The transcribed text that was part of this audio segment."
},
"temperature": {
"type": "number",
"format": "float",
"description": "The temperature score associated with this audio segment."
},
"avg_logprob": {
"type": "number",
"format": "float",
"description": "The average log probability associated with this audio segment.",
"x-ms-client-name": "avgLogprob"
},
"compression_ratio": {
"type": "number",
"format": "float",
"description": "The compression ratio of this audio segment.",
"x-ms-client-name": "compressionRatio"
},
"no_speech_prob": {
"type": "number",
"format": "float",
"description": "The probability of no speech detection within this audio segment.",
"x-ms-client-name": "noSpeechProb"
},
"tokens": {
"type": "array",
"description": "The token IDs matching the transcribed text in this audio segment.",
"items": {
"type": "integer",
"format": "int32"
}
},
"seek": {
"type": "integer",
"format": "int32",
"description": "The seek position associated with the processing of this audio segment.\nSeek positions are expressed as hundredths of seconds.\nThe model may process several segments from a single seek position, so while the seek position will never represent\na later time than the segment's start, the segment's start may represent a significantly later time than the\nsegment's associated seek position."
}
},
"required": [
"id",
"start",
"end",
"text",
"temperature",
"avg_logprob",
"compression_ratio",
"no_speech_prob",
"tokens",
"seek"
]
},
"AudioTranslation": {
"type": "object",
"description": "Result information for an operation that translated spoken audio into written text.",
"properties": {
"text": {
"type": "string",
"description": "The translated text for the provided audio data."
},
"task": {
"$ref": "#/definitions/AudioTaskLabel",
"description": "The label that describes which operation type generated the accompanying response data."
},
"language": {
"type": "string",
"description": "The spoken language that was detected in the translated audio data.\nThis is expressed as a two-letter ISO-639-1 language code like 'en' or 'fr'."
},
"duration": {
"type": "number",
"format": "float",
"description": "The total duration of the audio processed to produce accompanying translation information."
},
"segments": {
"type": "array",
"description": "A collection of information about the timing, probabilities, and other detail of each processed audio segment.",
"items": {
"$ref": "#/definitions/AudioTranslationSegment"
}
}
},
"required": [
"text"
]
},
"AudioTranslationFormat": {
"type": "string",
"description": "Defines available options for the underlying response format of output translation information.",
"enum": [
"json",
"verbose_json",
"text",
"srt",
"vtt"
],
"x-ms-enum": {
"name": "AudioTranslationFormat",
"modelAsString": true,
"values": [
{
"name": "json",
"value": "json",
"description": "Use a response body that is a JSON object containing a single 'text' field for the translation."
},
{
"name": "verbose_json",
"value": "verbose_json",
"description": "Use a response body that is a JSON object containing translation text along with timing, segments, and other\nmetadata."
},
{
"name": "text",
"value": "text",
"description": "Use a response body that is plain text containing the raw, unannotated translation."
},
{
"name": "srt",
"value": "srt",
"description": "Use a response body that is plain text in SubRip (SRT) format that also includes timing information."
},
{
"name": "vtt",
"value": "vtt",
"description": "Use a response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information."
}
]
}
},
"AudioTranslationOptions": {
"type": "object",
"description": "The configuration information for an audio translation request.",
"properties": {
"file": {
"type": "string",
"format": "byte",
"description": "The audio data to translate. This must be the binary content of a file in one of the supported media formats:\n flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm."
},
"filename": {
"type": "string",
"description": "The optional filename or descriptive identifier to associate with with the audio data."
},
"response_format": {
"$ref": "#/definitions/AudioTranslationFormat",
"description": "The requested format of the translation response data, which will influence the content and detail of the result.",
"x-ms-client-name": "responseFormat"
},
"prompt": {
"type": "string",
"description": "An optional hint to guide the model's style or continue from a prior audio segment. The written language of the\nprompt should match the primary spoken language of the audio data."
},
"temperature": {
"type": "number",
"format": "float",
"description": "The sampling temperature, between 0 and 1.\nHigher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nIf set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit."
},
"model": {
"type": "string",
"description": "The model to use for this translation request."
}
},
"required": [
"file"
]
},
"AudioTranslationSegment": {
"type": "object",
"description": "Extended information about a single segment of translated audio data.\nSegments generally represent roughly 5-10 seconds of speech. Segment boundaries typically occur between words but not\nnecessarily sentences.",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "The 0-based index of this segment within a translation."
},
"start": {
"type": "number",
"format": "float",
"description": "The time at which this segment started relative to the beginning of the translated audio."
},
"end": {
"type": "number",
"format": "float",
"description": "The time at which this segment ended relative to the beginning of the translated audio."
},
"text": {
"type": "string",
"description": "The translated text that was part of this audio segment."
},
"temperature": {
"type": "number",
"format": "float",
"description": "The temperature score associated with this audio segment."
},
"avg_logprob": {
"type": "number",
"format": "float",
"description": "The average log probability associated with this audio segment.",
"x-ms-client-name": "avgLogprob"
},
"compression_ratio": {
"type": "number",
"format": "float",
"description": "The compression ratio of this audio segment.",
"x-ms-client-name": "compressionRatio"
},
"no_speech_prob": {
"type": "number",
"format": "float",