|
| 1 | +--- |
| 2 | +author: eric-urban |
| 3 | +ms.service: cognitive-services |
| 4 | +ms.subservice: speech-service |
| 5 | +ms.date: 09/29/2022 |
| 6 | +ms.topic: include |
| 7 | +ms.author: eur |
| 8 | +--- |
| 9 | + |
| 10 | +The console output shows the full conversation and summary. Here's an example of the overall summary, with redactions for brevity: |
| 11 | + |
| 12 | +```output |
| 13 | +Conversation summary: |
| 14 | + issue: Customer wants to sign up for insurance. |
| 15 | + resolution: Customer was advised that customer would be contacted by the insurance company. |
| 16 | +``` |
| 17 | + |
| 18 | +If you specify the `--output FILE` optional [argument](/azure/cognitive-services/speech-service/call-center-quickstart#usage-and-arguments), a JSON version of the results are written to the file. The file output is a combination of the JSON responses from the [batch transcription](/azure/cognitive-services/speech-service/batch-transcription) (Speech), [sentiment](/azure/cognitive-services/language-service/sentiment-opinion-mining/overview) (Language), and [conversation summarization](/azure/cognitive-services/language-service/summarization/overview?tabs=conversation-summarization) (Language) APIs. |
| 19 | + |
| 20 | +The `transcription` property contains a JSON object with the results of sentiment analysis merged with batch transcription. Here's an example, with redactions for brevity: |
| 21 | +```json |
| 22 | +{ |
| 23 | + "source": "https://github.com/Azure-Samples/cognitive-services-speech-sdk/raw/master/scenarios/call-center/sampledata/Call1_separated_16k_health_insurance.wav", |
| 24 | +// Example results redacted for brevity |
| 25 | + "nBest": [ |
| 26 | + { |
| 27 | + "confidence": 0.77464247, |
| 28 | + "lexical": "hello thank you for calling contoso who am i speaking with today", |
| 29 | + "itn": "hello thank you for calling contoso who am i speaking with today", |
| 30 | + "maskedITN": "hello thank you for calling contoso who am i speaking with today", |
| 31 | + "display": "Hello, thank you for calling Contoso. Who am I speaking with today?", |
| 32 | + "sentiment": { |
| 33 | + "positive": 0.78, |
| 34 | + "neutral": 0.21, |
| 35 | + "negative": 0.01 |
| 36 | + } |
| 37 | + }, |
| 38 | + ] |
| 39 | +// Example results redacted for brevity |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +The `conversationAnalyticsResults` property contains a JSON object with the results of the conversation summarization analysis. Here's an example, with redactions for brevity: |
| 44 | +```json |
| 45 | +{ |
| 46 | + "conversationAnalyticsResults": { |
| 47 | + "conversationSummaryResults": { |
| 48 | + "conversations": [ |
| 49 | + { |
| 50 | + "id": "conversation1", |
| 51 | + "summaries": [ |
| 52 | + { |
| 53 | + "aspect": "issue", |
| 54 | + "text": "Customer wants to sign up for insurance" |
| 55 | + }, |
| 56 | + { |
| 57 | + "aspect": "resolution", |
| 58 | + "text": "Customer was advised that customer would be contacted by the insurance company" |
| 59 | + } |
| 60 | + ], |
| 61 | + "warnings": [] |
| 62 | + } |
| 63 | + ], |
| 64 | + "errors": [], |
| 65 | + "modelVersion": "2022-05-15-preview" |
| 66 | + }, |
| 67 | + "conversationPiiResults": { |
| 68 | + "combinedRedactedContent": [ |
| 69 | + { |
| 70 | + "channel": "0", |
| 71 | + "display": "Hello, thank you for calling Contoso. Who am I speaking with today? Hi, ****. Uh, are you calling because you need health insurance?", // Example results redacted for brevity |
| 72 | + "itn": "hello thank you for calling contoso who am i speaking with today hi **** uh are you calling because you need health insurance", // Example results redacted for brevity |
| 73 | + "lexical": "hello thank you for calling contoso who am i speaking with today hi **** uh are you calling because you need health insurance" // Example results redacted for brevity |
| 74 | + }, |
| 75 | + { |
| 76 | + "channel": "1", |
| 77 | + "display": "Hi, my name is **********. I'm trying to enroll myself with Contoso. Yes. Yeah, I'm calling to sign up for insurance.", // Example results redacted for brevity |
| 78 | + "itn": "hi my name is ********** i'm trying to enroll myself with contoso yes yeah i'm calling to sign up for insurance", // Example results redacted for brevity |
| 79 | + "lexical": "hi my name is ********** i'm trying to enroll myself with contoso yes yeah i'm calling to sign up for insurance" // Example results redacted for brevity |
| 80 | + } |
| 81 | + ], |
| 82 | + "conversations": [ |
| 83 | + { |
| 84 | + "id": "conversation1", |
| 85 | + "conversationItems": [ |
| 86 | + { |
| 87 | + "id": "0", |
| 88 | + "redactedContent": { |
| 89 | + "itn": "hello thank you for calling contoso who am i speaking with today", |
| 90 | + "lexical": "hello thank you for calling contoso who am i speaking with today", |
| 91 | + "text": "Hello, thank you for calling Contoso. Who am I speaking with today?" |
| 92 | + }, |
| 93 | + "entities": [], |
| 94 | + "channel": "0", |
| 95 | + "offset": "PT0.77S" |
| 96 | + }, |
| 97 | + { |
| 98 | + "id": "1", |
| 99 | + "redactedContent": { |
| 100 | + "itn": "hi my name is ********** i'm trying to enroll myself with contoso", |
| 101 | + "lexical": "hi my name is ********** i'm trying to enroll myself with contoso", |
| 102 | + "text": "Hi, my name is **********. I'm trying to enroll myself with Contoso." |
| 103 | + }, |
| 104 | + "entities": [ |
| 105 | + { |
| 106 | + "text": "Mary Rondo", |
| 107 | + "category": "Name", |
| 108 | + "offset": 15, |
| 109 | + "length": 10, |
| 110 | + "confidenceScore": 0.97 |
| 111 | + } |
| 112 | + ], |
| 113 | + "channel": "1", |
| 114 | + "offset": "PT4.55S" |
| 115 | + }, |
| 116 | + { |
| 117 | + "id": "2", |
| 118 | + "redactedContent": { |
| 119 | + "itn": "hi **** uh are you calling because you need health insurance", |
| 120 | + "lexical": "hi **** uh are you calling because you need health insurance", |
| 121 | + "text": "Hi, ****. Uh, are you calling because you need health insurance?" |
| 122 | + }, |
| 123 | + "entities": [ |
| 124 | + { |
| 125 | + "text": "Mary", |
| 126 | + "category": "Name", |
| 127 | + "offset": 4, |
| 128 | + "length": 4, |
| 129 | + "confidenceScore": 0.93 |
| 130 | + } |
| 131 | + ], |
| 132 | + "channel": "0", |
| 133 | + "offset": "PT9.55S" |
| 134 | + }, |
| 135 | + { |
| 136 | + "id": "3", |
| 137 | + "redactedContent": { |
| 138 | + "itn": "yes yeah i'm calling to sign up for insurance", |
| 139 | + "lexical": "yes yeah i'm calling to sign up for insurance", |
| 140 | + "text": "Yes. Yeah, I'm calling to sign up for insurance." |
| 141 | + }, |
| 142 | + "entities": [], |
| 143 | + "channel": "1", |
| 144 | + "offset": "PT13.09S" |
| 145 | + }, |
| 146 | +// Example results redacted for brevity |
| 147 | + ], |
| 148 | + "warnings": [] |
| 149 | + } |
| 150 | + ] |
| 151 | + } |
| 152 | + } |
| 153 | +} |
| 154 | +``` |
0 commit comments