Skip to content

Commit 5121f94

Browse files
committed
Merge branch 'develop' v0.2.3
2 parents 385f9b5 + 77d6280 commit 5121f94

13 files changed

+123
-332
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.3] - 2022-06-09
8+
### Fixed
9+
- Simplifies workflow by using new Transcribe API to specify Custom Vocabulary and Vocabulary Filter at the same time as using Language ID.
10+
711
## [0.2.2] - 2022-06-01
812
### Fixed
913
- Replaces ':' with '-' when constructing Transcribe job name. Note, use '-' instead of ':' in any custom regex patterns specified in CF parameter, as regex is applied to the generated job name after replacement.
@@ -45,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4549
### Added
4650
- Initial release
4751

48-
[Unreleased]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/compare/v0.2.2...develop
52+
[Unreleased]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/compare/v0.2.3...develop
53+
[0.2.3]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.2.3
4954
[0.2.2]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.2.2
5055
[0.2.1]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.2.1
5156
[0.2.0]: https://github.com/aws-samples/amazon-transcribe-post-call-analytics/releases/tag/v0.2.0

System Documentation.pdf

-1.29 MB
Binary file not shown.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.2
1+
0.2.3

pca-main-nokendra.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.2.2) (uksb-1sn29lk73)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.2.3) (uksb-1sn29lk73)
44

55
Parameters:
66

pca-main.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22

3-
Description: Amazon Transcribe Post Call Analytics - PCA (v0.2.2) (uksb-1sn29lk73)
3+
Description: Amazon Transcribe Post Call Analytics - PCA (v0.2.3) (uksb-1sn29lk73)
44

55
Parameters:
66

pca-server/cfn/lib/boto3.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Resources:
9090
os.mkdir(root_path)
9191
# Write out the requirements.txt file, which is the boto3 version we need
9292
with open(reqs_file, 'w') as f:
93-
f.write("boto3==1.18.51")
93+
f.write("boto3==1.24.2")
9494
f.close()
9595
# Install this version of boto3 locally and copy out Transcribe model
9696
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", reqs_file, "-t", pip_folder])

pca-server/cfn/lib/pca-definition.json

Lines changed: 1 addition & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
{
22
"Comment": "Post-Call Analytics Workflow with Transcribe and Comprehend",
3-
"StartAt": "LanguageDetection?",
3+
"StartAt": "TranscribeAudio",
44
"States": {
5-
"LanguageDetection?": {
6-
"Type": "Choice",
7-
"Comment": "Triggers Language Detection is required",
8-
"Choices": [
9-
{
10-
"Variable": "$.langCode",
11-
"StringEquals": "",
12-
"Next": "TranscribeLangDetectClip"
13-
}
14-
],
15-
"Default": "TranscribeAudio"
16-
},
175
"TranscribeAudio": {
186
"Comment": "Sends the file in S3 for Transcription",
197
"Type": "Task",
@@ -24,77 +12,6 @@
2412
}],
2513
"Next": "TranscribeStarted?"
2614
},
27-
"TranscribeLangDetectClip": {
28-
"Type": "Task",
29-
"Resource": "${SFLanguageDetectionArn}",
30-
"Retry": [{
31-
"IntervalSeconds": 5,
32-
"ErrorEquals": ["Lambda.Unknown"]
33-
}],
34-
"Next": "LanguageDetectPossible?"
35-
},
36-
"LanguageDetectPossible?": {
37-
"Type": "Choice",
38-
"Comment": "Checks if we created our language detection job or now",
39-
"Choices": [
40-
{
41-
"Not": {
42-
"Variable": "$.langCode",
43-
"StringEquals": ""
44-
},
45-
"Next": "TranscribeAudio"
46-
}
47-
],
48-
"Default": "WaitForLangDetectTranscribe"
49-
},
50-
"WaitForLangDetectTranscribe": {
51-
"Type": "Task",
52-
"Resource": "arn:aws:states:::lambda:invoke.waitForTaskToken",
53-
"Parameters": {
54-
"FunctionName":"${SFAwaitNotificationArn}",
55-
"Payload":{
56-
"Input.$": "$",
57-
"TaskToken.$":"$$.Task.Token"
58-
}
59-
},
60-
"Retry": [{
61-
"IntervalSeconds": 5,
62-
"ErrorEquals": ["Lambda.Unknown"]
63-
}],
64-
"Next": "LangDetectionComplete?",
65-
"Catch": [
66-
{
67-
"ErrorEquals": [ "States.ALL" ],
68-
"Next": "TranscriptionFailed"
69-
}
70-
]
71-
},
72-
"LangDetectionComplete?": {
73-
"Type": "Choice",
74-
"Choices": [
75-
{
76-
"Variable": "$.transcribeStatus",
77-
"StringEquals": "COMPLETED",
78-
"Next": "ParseDetectedLanguage"
79-
},
80-
{
81-
"Variable": "$.transcribeStatus",
82-
"StringEquals": "RETRY",
83-
"Next": "TranscribeLangDetectClip"
84-
}
85-
],
86-
"Default": "TranscriptionFailed"
87-
},
88-
"ParseDetectedLanguage": {
89-
"Comment": "Extracts the detected language code from the Transcribe job",
90-
"Type": "Task",
91-
"Resource": "${SFGetDetectedLanguageArn}",
92-
"Retry": [{
93-
"IntervalSeconds": 5,
94-
"ErrorEquals": ["Lambda.Unknown"]
95-
}],
96-
"Next": "TranscribeAudio"
97-
},
9815
"TranscribeStarted?": {
9916
"Type": "Choice",
10017
"Comment": "If a job was not started then we need to quit this workflow",

pca-server/cfn/lib/pca.template

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,6 @@ Resources:
118118
Resource: !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/*
119119

120120

121-
SFLanguageDetection:
122-
Type: "AWS::Serverless::Function"
123-
Properties:
124-
CodeUri: ../../src/pca
125-
Handler: pca-aws-sf-language-detection.lambda_handler
126-
MemorySize: 192
127-
Timeout: 15
128-
Layers:
129-
- !Ref FFMPEGLayer
130-
Environment:
131-
Variables:
132-
RoleArn: !GetAtt TranscribeRole.Arn
133-
Role: !GetAtt TranscribeLambdaRole.Arn
134-
135121
SFStartTranscribeJob:
136122
Type: "AWS::Serverless::Function"
137123
Properties:
@@ -147,15 +133,6 @@ Resources:
147133
AWS_DATA_PATH: "/opt/models"
148134
Role: !GetAtt TranscribeLambdaRole.Arn
149135

150-
SFGetDetectedLanguage:
151-
Type: "AWS::Serverless::Function"
152-
Properties:
153-
CodeUri: ../../src/pca
154-
Handler: pca-aws-sf-get-detected-language.lambda_handler
155-
Policies:
156-
- arn:aws:iam::aws:policy/AmazonS3FullAccess
157-
- arn:aws:iam::aws:policy/AmazonTranscribeFullAccess
158-
159136
SFProcessTurn:
160137
Type: "AWS::Serverless::Function"
161138
Properties:
@@ -225,10 +202,8 @@ Resources:
225202
Resource:
226203
- !GetAtt SFProcessTurn.Arn
227204
- !GetAtt SFStartTranscribeJob.Arn
228-
- !GetAtt SFLanguageDetection.Arn
229205
- !GetAtt SFAwaitNotification.Arn
230206
- !GetAtt SFTranscribeFailed.Arn
231-
- !GetAtt SFGetDetectedLanguage.Arn
232207
- PolicyName: CloudWatchLogs
233208
PolicyDocument:
234209
Statement:
@@ -252,10 +227,8 @@ Resources:
252227
DefinitionSubstitutions:
253228
SFProcessTurnArn: !GetAtt SFProcessTurn.Arn
254229
SFStartTranscribeJobArn: !GetAtt SFStartTranscribeJob.Arn
255-
SFLanguageDetectionArn: !GetAtt SFLanguageDetection.Arn
256230
SFAwaitNotificationArn: !GetAtt SFAwaitNotification.Arn
257231
SFTranscribeFailedArn: !GetAtt SFTranscribeFailed.Arn
258-
SFGetDetectedLanguageArn: !GetAtt SFGetDetectedLanguage.Arn
259232
LoggingConfiguration:
260233
Level: ERROR
261234
IncludeExecutionData: true

pca-server/src/pca/pca-aws-sf-get-detected-language.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

pca-server/src/pca/pca-aws-sf-language-detection.py

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)