From 573dd53a3072cb091c120727fea30958e3534b47 Mon Sep 17 00:00:00 2001 From: awsmobilesdk Date: Thu, 12 Oct 2023 18:20:47 +0000 Subject: [PATCH] feat(AWSTranscribe): update models to latest --- AWSTranscribe/AWSTranscribeModel.h | 1 + AWSTranscribe/AWSTranscribeModel.m | 25 +++++++++++++++++++++++++ AWSTranscribe/AWSTranscribeResources.m | 3 ++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/AWSTranscribe/AWSTranscribeModel.h b/AWSTranscribe/AWSTranscribeModel.h index 4cb8a0c67f6..02d1a2431f2 100644 --- a/AWSTranscribe/AWSTranscribeModel.h +++ b/AWSTranscribe/AWSTranscribeModel.h @@ -113,6 +113,7 @@ typedef NS_ENUM(NSInteger, AWSTranscribeMediaFormat) { AWSTranscribeMediaFormatOgg, AWSTranscribeMediaFormatAmr, AWSTranscribeMediaFormatWebm, + AWSTranscribeMediaFormatM4a, }; typedef NS_ENUM(NSInteger, AWSTranscribeMedicalContentIdentificationType) { diff --git a/AWSTranscribe/AWSTranscribeModel.m b/AWSTranscribe/AWSTranscribeModel.m index eedf6cde306..2419610f101 100644 --- a/AWSTranscribe/AWSTranscribeModel.m +++ b/AWSTranscribe/AWSTranscribeModel.m @@ -345,6 +345,9 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { if ([value caseInsensitiveCompare:@"webm"] == NSOrderedSame) { return @(AWSTranscribeMediaFormatWebm); } + if ([value caseInsensitiveCompare:@"m4a"] == NSOrderedSame) { + return @(AWSTranscribeMediaFormatM4a); + } return @(AWSTranscribeMediaFormatUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -362,6 +365,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { return @"amr"; case AWSTranscribeMediaFormatWebm: return @"webm"; + case AWSTranscribeMediaFormatM4a: + return @"m4a"; default: return nil; } @@ -5060,6 +5065,9 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { if ([value caseInsensitiveCompare:@"webm"] == NSOrderedSame) { return @(AWSTranscribeMediaFormatWebm); } + if ([value caseInsensitiveCompare:@"m4a"] == NSOrderedSame) { + return @(AWSTranscribeMediaFormatM4a); + } return @(AWSTranscribeMediaFormatUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -5077,6 +5085,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { return @"amr"; case AWSTranscribeMediaFormatWebm: return @"webm"; + case AWSTranscribeMediaFormatM4a: + return @"m4a"; default: return nil; } @@ -6058,6 +6068,9 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { if ([value caseInsensitiveCompare:@"webm"] == NSOrderedSame) { return @(AWSTranscribeMediaFormatWebm); } + if ([value caseInsensitiveCompare:@"m4a"] == NSOrderedSame) { + return @(AWSTranscribeMediaFormatM4a); + } return @(AWSTranscribeMediaFormatUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -6075,6 +6088,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { return @"amr"; case AWSTranscribeMediaFormatWebm: return @"webm"; + case AWSTranscribeMediaFormatM4a: + return @"m4a"; default: return nil; } @@ -6426,6 +6441,9 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { if ([value caseInsensitiveCompare:@"webm"] == NSOrderedSame) { return @(AWSTranscribeMediaFormatWebm); } + if ([value caseInsensitiveCompare:@"m4a"] == NSOrderedSame) { + return @(AWSTranscribeMediaFormatM4a); + } return @(AWSTranscribeMediaFormatUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -6443,6 +6461,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { return @"amr"; case AWSTranscribeMediaFormatWebm: return @"webm"; + case AWSTranscribeMediaFormatM4a: + return @"m4a"; default: return nil; } @@ -6959,6 +6979,9 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { if ([value caseInsensitiveCompare:@"webm"] == NSOrderedSame) { return @(AWSTranscribeMediaFormatWebm); } + if ([value caseInsensitiveCompare:@"m4a"] == NSOrderedSame) { + return @(AWSTranscribeMediaFormatM4a); + } return @(AWSTranscribeMediaFormatUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -6976,6 +6999,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer { return @"amr"; case AWSTranscribeMediaFormatWebm: return @"webm"; + case AWSTranscribeMediaFormatM4a: + return @"m4a"; default: return nil; } diff --git a/AWSTranscribe/AWSTranscribeResources.m b/AWSTranscribe/AWSTranscribeResources.m index e3d01cee397..7698cf2d773 100644 --- a/AWSTranscribe/AWSTranscribeResources.m +++ b/AWSTranscribe/AWSTranscribeResources.m @@ -2095,7 +2095,8 @@ - (NSString *)definitionString { \"flac\",\ \"ogg\",\ \"amr\",\ - \"webm\"\ + \"webm\",\ + \"m4a\"\ ]\ },\ \"MediaSampleRateHertz\":{\