You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -55,22 +55,23 @@ First, create a JSON file named `request_body.json` with the following content:
55
55
"fields": {
56
56
"VendorName": {
57
57
"type": "string",
58
-
"kind": "extract",
58
+
"method": "extract",
59
59
"description": "Vendor issuing the invoice"
60
60
},
61
61
"Items": {
62
62
"type": "array",
63
+
"method": "extract",
63
64
"items": {
64
65
"type": "object",
65
66
"properties": {
66
67
"Description": {
67
68
"type": "string",
68
-
"kind": "extract",
69
+
"method": "extract",
69
70
"description": "Description of the item"
70
71
},
71
72
"Amount": {
72
73
"type": "number",
73
-
"kind": "extract",
74
+
"method": "extract",
74
75
"description": "Amount of the item"
75
76
}
76
77
}
@@ -166,11 +167,7 @@ First, create a JSON file named `request_body.json` with the following content:
166
167
"Sentiment": {
167
168
"type": "string",
168
169
"method": "classify",
169
-
"enum": [
170
-
"Positive",
171
-
"Neutral",
172
-
"Negative"
173
-
]
170
+
"enum": [ "Positive", "Neutral", "Negative" ]
174
171
}
175
172
}
176
173
}
@@ -226,19 +223,19 @@ Before running the cURL command, make the following changes to the HTTP request:
226
223
227
224
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
228
225
2. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
229
-
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `TODO`.
226
+
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS).
230
227
231
228
# [Audio](#tab/audio)
232
229
233
230
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
234
231
2. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
235
-
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `TODO`.
232
+
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS).
236
233
237
234
# [Video](#tab/video)
238
235
239
236
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
240
237
2. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
241
-
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `TODO`.
238
+
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS).
242
239
243
240
---
244
241
@@ -283,41 +280,61 @@ You will receive a 200 (OK) JSON response with a `status` field indicating the s
"valueString": "Maria Smith contacted Contoso to inquire about her current point balance. Agent John Doe confirmed her identity and informed her that she has 599 points. Maria did not require any further information and the call ended on a positive note."
408
+
},
409
+
"People": {
410
+
"type": "array",
411
+
"valueArray": [
402
412
{
403
-
"offset": 7,
404
-
"length": 2
405
-
}
406
-
],
407
-
"confidence": 0.95,
408
-
"source": "D(1,5,1,7,1,7,1.5,5,1.5)"
413
+
"type": "object",
414
+
"valueObject": {
415
+
"Name": {
416
+
"type": "string",
417
+
"valueString": "Maria Smith"
418
+
},
419
+
"Role": {
420
+
"type": "string",
421
+
"valueString": "Customer"
422
+
}
423
+
}
424
+
}, ...
425
+
]
409
426
}
410
-
}
427
+
},
428
+
"transcriptPhrases": [
429
+
{
430
+
"speaker": "Agent 1",
431
+
"startTimeMs": 80,
432
+
"endTimeMs": 640,
433
+
"text": "Good day.",
434
+
"confidence": 0.932,
435
+
"words": [
436
+
{
437
+
"startTimeMs": 80,
438
+
"endTimeMs": 280,
439
+
"text": "Good"
440
+
}, ...
441
+
],
442
+
"locale": "en-US"
443
+
}, ...
444
+
]
411
445
}
412
446
]
413
447
}
@@ -418,46 +452,36 @@ You will receive a 200 (OK) JSON response with a `status` field indicating the s
418
452
419
453
```json
420
454
{
421
-
"id": "3b31320d-8bab-4f88-b19c-2322a7f11034",
455
+
"id": "204fb777-e961-4d6d-a6b1-6e02c773d72c",
422
456
"status": "Succeeded",
423
457
"result": {
424
-
"analyzerId": "myInvoice",
458
+
"analyzerId": "sample_marketing_video_analyzer",
425
459
"apiVersion": "2024-12-01-preview",
426
-
"createdAt": "2024-10-14T18:46:36Z",
427
-
"stringEncoding": "codePoint",
460
+
"createdAt": "2024-11-09T08:57:21Z",
461
+
"warnings": [],
428
462
"contents": [
429
463
{
430
-
"kind": "document",
431
-
"markdown": "# CONTOSO LTD.\n\n...",
432
-
"startPageNumber": 1,
433
-
"endPageNumber": 1,
434
-
"unit": "inch",
435
-
"pages": [
436
-
{
437
-
"pageNumber": 1,
438
-
"width": 8.5,
439
-
"height": 11
440
-
}
441
-
],
464
+
"kind": "audioVisual",
465
+
"startTimeMs": 0,
466
+
"endTimeMs": 2800,
467
+
"width": 540,
468
+
"height": 960,
469
+
"markdown": "# Shot 0:0.0 => 0:2.800\n\n## Transcript\n\n```\n\nWEBVTT\n\n0:0.80 --> 0:10.560\n<v Speaker>When I was planning my trip...",
442
470
"fields": {
443
-
"Company": {
471
+
"sentiment": {
444
472
"type": "string",
445
-
"valueString": "CONTOSO",
446
-
"spans": [
447
-
{
448
-
"offset": 7,
449
-
"length": 2
450
-
}
451
-
],
452
-
"confidence": 0.95,
453
-
"source": "D(1,5,1,7,1,7,1.5,5,1.5)"
473
+
"valueString": "Neutral"
474
+
},
475
+
"description": {
476
+
"type": "string",
477
+
"valueString": "The video begins with a view from a glass floor, showing a person's feet in white sneakers standing on it. The scene captures a downward view of a structure, possibly a tower, with a grid pattern on the floor and a clear view of the ground below. The lighting is bright, suggesting a sunny day, and the colors are dominated by the orange of the structure and the gray of the floor."
0 commit comments