Skip to content

Commit

Permalink
feat(AWSTranscribe): update models to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk committed Oct 12, 2023
1 parent a2bf4fa commit 573dd53
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions AWSTranscribe/AWSTranscribeModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ typedef NS_ENUM(NSInteger, AWSTranscribeMediaFormat) {
AWSTranscribeMediaFormatOgg,
AWSTranscribeMediaFormatAmr,
AWSTranscribeMediaFormatWebm,
AWSTranscribeMediaFormatM4a,
};

typedef NS_ENUM(NSInteger, AWSTranscribeMedicalContentIdentificationType) {
Expand Down
25 changes: 25 additions & 0 deletions AWSTranscribe/AWSTranscribeModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand All @@ -362,6 +365,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer {
return @"amr";
case AWSTranscribeMediaFormatWebm:
return @"webm";
case AWSTranscribeMediaFormatM4a:
return @"m4a";
default:
return nil;
}
Expand Down Expand Up @@ -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]) {
Expand All @@ -5077,6 +5085,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer {
return @"amr";
case AWSTranscribeMediaFormatWebm:
return @"webm";
case AWSTranscribeMediaFormatM4a:
return @"m4a";
default:
return nil;
}
Expand Down Expand Up @@ -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]) {
Expand All @@ -6075,6 +6088,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer {
return @"amr";
case AWSTranscribeMediaFormatWebm:
return @"webm";
case AWSTranscribeMediaFormatM4a:
return @"m4a";
default:
return nil;
}
Expand Down Expand Up @@ -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]) {
Expand All @@ -6443,6 +6461,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer {
return @"amr";
case AWSTranscribeMediaFormatWebm:
return @"webm";
case AWSTranscribeMediaFormatM4a:
return @"m4a";
default:
return nil;
}
Expand Down Expand Up @@ -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]) {
Expand All @@ -6976,6 +6999,8 @@ + (NSValueTransformer *)mediaFormatJSONTransformer {
return @"amr";
case AWSTranscribeMediaFormatWebm:
return @"webm";
case AWSTranscribeMediaFormatM4a:
return @"m4a";
default:
return nil;
}
Expand Down
3 changes: 2 additions & 1 deletion AWSTranscribe/AWSTranscribeResources.m
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,8 @@ - (NSString *)definitionString {
\"flac\",\
\"ogg\",\
\"amr\",\
\"webm\"\
\"webm\",\
\"m4a\"\
]\
},\
\"MediaSampleRateHertz\":{\
Expand Down

0 comments on commit 573dd53

Please sign in to comment.