|
1 | 1 | """ |
2 | | -Parses the output from an Amazon Transcribe job into turn-by-turn |
3 | | -speech segments with sentiment analysis scores from Amazon Comprehend |
| 2 | +This python function is part of the main processing workflow. Parses the output from an Amazon Transcribe job into |
| 3 | +turn-by-turn speech segments with sentiment analysis scores from Amazon Comprehend |
| 4 | +
|
| 5 | +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 6 | +SPDX-License-Identifier: Apache-2.0 |
4 | 7 | """ |
5 | 8 | from pathlib import Path |
6 | 9 | from datetime import datetime |
@@ -408,7 +411,7 @@ def create_combined_tca_graphic(self): |
408 | 411 |
|
409 | 412 | # Upload the graphic to S3 |
410 | 413 | s3Client = boto3.client('s3') |
411 | | - object_key = cf.appConfig[cf.CONF_PREFIX_PARSED_RESULTS] + "/tcaImagery/" + base_filename |
| 414 | + object_key = "tcaImagery/" + base_filename |
412 | 415 | s3Client.upload_file(chart_filename, cf.appConfig[cf.CONF_S3BUCKET_OUTPUT], object_key) |
413 | 416 |
|
414 | 417 | # Remove the local file and return our S3 URL so that the UI can create signed URLs for browser rendering |
@@ -1544,9 +1547,9 @@ def lambda_handler(event, context): |
1544 | 1547 | # "key": "originalAudio/stereo.mp3", |
1545 | 1548 | # "apiMode": "analytics", |
1546 | 1549 | # "jobName": "stereo.mp3", |
1547 | | - "key": "originalAudio/example-call.wav", |
| 1550 | + "key": "originalAudio/Auto1_GUID_001_AGENT_AndrewK_DT_2021-12-01T07-55-51.wav", |
1548 | 1551 | "apiMode": "analytics", |
1549 | | - "jobName": "example-call.wav", |
| 1552 | + "jobName": "Auto1_GUID_001_AGENT_AndrewK_DT_2021-12-01T07-55-51.wav", |
1550 | 1553 | "langCode": "en-US", |
1551 | 1554 | "transcribeStatus": "COMPLETED" |
1552 | 1555 | } |
|
0 commit comments