// // Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // A copy of the License is located at // // http://aws.amazon.com/apache2.0 // // or in the "license" file accompanying this file. This file is distributed // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language governing // permissions and limitations under the License. // #import #import #import NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const AWSPollyErrorDomain; typedef NS_ENUM(NSInteger, AWSPollyErrorType) { AWSPollyErrorUnknown, AWSPollyErrorEngineNotSupported, AWSPollyErrorInvalidLexicon, AWSPollyErrorInvalidNextToken, AWSPollyErrorInvalidS3Bucket, AWSPollyErrorInvalidS3Key, AWSPollyErrorInvalidSampleRate, AWSPollyErrorInvalidSnsTopicArn, AWSPollyErrorInvalidSsml, AWSPollyErrorInvalidTaskId, AWSPollyErrorLanguageNotSupported, AWSPollyErrorLexiconNotFound, AWSPollyErrorLexiconSizeExceeded, AWSPollyErrorMarksNotSupportedForFormat, AWSPollyErrorMaxLexemeLengthExceeded, AWSPollyErrorMaxLexiconsNumberExceeded, AWSPollyErrorServiceFailure, AWSPollyErrorSsmlMarksNotSupportedForTextType, AWSPollyErrorSynthesisTaskNotFound, AWSPollyErrorTextLengthExceeded, AWSPollyErrorUnsupportedPlsAlphabet, AWSPollyErrorUnsupportedPlsLanguage, }; typedef NS_ENUM(NSInteger, AWSPollyEngine) { AWSPollyEngineUnknown, AWSPollyEngineStandard, AWSPollyEngineNeural, }; typedef NS_ENUM(NSInteger, AWSPollyGender) { AWSPollyGenderUnknown, AWSPollyGenderFemale, AWSPollyGenderMale, }; typedef NS_ENUM(NSInteger, AWSPollyLanguageCode) { AWSPollyLanguageCodeUnknown, AWSPollyLanguageCodeArb, AWSPollyLanguageCodeCmnCN, AWSPollyLanguageCodeCyGB, AWSPollyLanguageCodeDaDK, AWSPollyLanguageCodeDeDE, AWSPollyLanguageCodeEnAU, AWSPollyLanguageCodeEnGB, AWSPollyLanguageCodeEnGBWLS, AWSPollyLanguageCodeEnIN, AWSPollyLanguageCodeEnUS, AWSPollyLanguageCodeEsES, AWSPollyLanguageCodeEsMX, AWSPollyLanguageCodeEsUS, AWSPollyLanguageCodeFrCA, AWSPollyLanguageCodeFrFR, AWSPollyLanguageCodeIsIS, AWSPollyLanguageCodeItIT, AWSPollyLanguageCodeJaJP, AWSPollyLanguageCodeHiIN, AWSPollyLanguageCodeKoKR, AWSPollyLanguageCodeNbNO, AWSPollyLanguageCodeNlNL, AWSPollyLanguageCodePlPL, AWSPollyLanguageCodePtBR, AWSPollyLanguageCodePtPT, AWSPollyLanguageCodeRoRO, AWSPollyLanguageCodeRuRU, AWSPollyLanguageCodeSvSE, AWSPollyLanguageCodeTrTR, AWSPollyLanguageCodeEnNZ, AWSPollyLanguageCodeEnZA, AWSPollyLanguageCodeCaES, AWSPollyLanguageCodeDeAT, AWSPollyLanguageCodeYueCN, AWSPollyLanguageCodeArAE, AWSPollyLanguageCodeFiFI, AWSPollyLanguageCodeEnIE, }; typedef NS_ENUM(NSInteger, AWSPollyOutputFormat) { AWSPollyOutputFormatUnknown, AWSPollyOutputFormatJson, AWSPollyOutputFormatMp3, AWSPollyOutputFormatOggVorbis, AWSPollyOutputFormatPcm, }; typedef NS_ENUM(NSInteger, AWSPollySpeechMarkType) { AWSPollySpeechMarkTypeUnknown, AWSPollySpeechMarkTypeSentence, AWSPollySpeechMarkTypeSsml, AWSPollySpeechMarkTypeViseme, AWSPollySpeechMarkTypeWord, }; typedef NS_ENUM(NSInteger, AWSPollyTaskStatus) { AWSPollyTaskStatusUnknown, AWSPollyTaskStatusScheduled, AWSPollyTaskStatusInProgress, AWSPollyTaskStatusCompleted, AWSPollyTaskStatusFailed, }; typedef NS_ENUM(NSInteger, AWSPollyTextType) { AWSPollyTextTypeUnknown, AWSPollyTextTypeSsml, AWSPollyTextTypeText, }; typedef NS_ENUM(NSInteger, AWSPollyVoiceId) { AWSPollyVoiceIdUnknown, AWSPollyVoiceIdAditi, AWSPollyVoiceIdAmy, AWSPollyVoiceIdAstrid, AWSPollyVoiceIdBianca, AWSPollyVoiceIdBrian, AWSPollyVoiceIdCamila, AWSPollyVoiceIdCarla, AWSPollyVoiceIdCarmen, AWSPollyVoiceIdCeline, AWSPollyVoiceIdChantal, AWSPollyVoiceIdConchita, AWSPollyVoiceIdCristiano, AWSPollyVoiceIdDora, AWSPollyVoiceIdEmma, AWSPollyVoiceIdEnrique, AWSPollyVoiceIdEwa, AWSPollyVoiceIdFiliz, AWSPollyVoiceIdGabrielle, AWSPollyVoiceIdGeraint, AWSPollyVoiceIdGiorgio, AWSPollyVoiceIdGwyneth, AWSPollyVoiceIdHans, AWSPollyVoiceIdInes, AWSPollyVoiceIdIvy, AWSPollyVoiceIdJacek, AWSPollyVoiceIdJan, AWSPollyVoiceIdJoanna, AWSPollyVoiceIdJoey, AWSPollyVoiceIdJustin, AWSPollyVoiceIdKarl, AWSPollyVoiceIdKendra, AWSPollyVoiceIdKevin, AWSPollyVoiceIdKimberly, AWSPollyVoiceIdLea, AWSPollyVoiceIdLiv, AWSPollyVoiceIdLotte, AWSPollyVoiceIdLucia, AWSPollyVoiceIdLupe, AWSPollyVoiceIdMads, AWSPollyVoiceIdMaja, AWSPollyVoiceIdMarlene, AWSPollyVoiceIdMathieu, AWSPollyVoiceIdMatthew, AWSPollyVoiceIdMaxim, AWSPollyVoiceIdMia, AWSPollyVoiceIdMiguel, AWSPollyVoiceIdMizuki, AWSPollyVoiceIdNaja, AWSPollyVoiceIdNicole, AWSPollyVoiceIdOlivia, AWSPollyVoiceIdPenelope, AWSPollyVoiceIdRaveena, AWSPollyVoiceIdRicardo, AWSPollyVoiceIdRuben, AWSPollyVoiceIdRussell, AWSPollyVoiceIdSalli, AWSPollyVoiceIdSeoyeon, AWSPollyVoiceIdTakumi, AWSPollyVoiceIdTatyana, AWSPollyVoiceIdVicki, AWSPollyVoiceIdVitoria, AWSPollyVoiceIdZeina, AWSPollyVoiceIdZhiyu, AWSPollyVoiceIdAria, AWSPollyVoiceIdAyanda, AWSPollyVoiceIdArlet, AWSPollyVoiceIdHannah, AWSPollyVoiceIdArthur, AWSPollyVoiceIdDaniel, AWSPollyVoiceIdLiam, AWSPollyVoiceIdPedro, AWSPollyVoiceIdKajal, AWSPollyVoiceIdHiujin, AWSPollyVoiceIdLaura, AWSPollyVoiceIdElin, AWSPollyVoiceIdIda, AWSPollyVoiceIdSuvi, AWSPollyVoiceIdOla, AWSPollyVoiceIdHala, AWSPollyVoiceIdAndres, AWSPollyVoiceIdSergio, AWSPollyVoiceIdRemi, AWSPollyVoiceIdAdriano, AWSPollyVoiceIdThiago, AWSPollyVoiceIdRuth, AWSPollyVoiceIdStephen, AWSPollyVoiceIdKazuha, AWSPollyVoiceIdTomoko, AWSPollyVoiceIdNiamh, AWSPollyVoiceIdSofie, }; @class AWSPollyDeleteLexiconInput; @class AWSPollyDeleteLexiconOutput; @class AWSPollyDescribeVoicesInput; @class AWSPollyDescribeVoicesOutput; @class AWSPollyGetLexiconInput; @class AWSPollyGetLexiconOutput; @class AWSPollyGetSpeechSynthesisTaskInput; @class AWSPollyGetSpeechSynthesisTaskOutput; @class AWSPollyLexicon; @class AWSPollyLexiconAttributes; @class AWSPollyLexiconDescription; @class AWSPollyListLexiconsInput; @class AWSPollyListLexiconsOutput; @class AWSPollyListSpeechSynthesisTasksInput; @class AWSPollyListSpeechSynthesisTasksOutput; @class AWSPollyPutLexiconInput; @class AWSPollyPutLexiconOutput; @class AWSPollyStartSpeechSynthesisTaskInput; @class AWSPollyStartSpeechSynthesisTaskOutput; @class AWSPollySynthesisTask; @class AWSPollySynthesizeSpeechInput; @class AWSPollySynthesizeSpeechOutput; @class AWSPollyVoice; /** */ @interface AWSPollyDeleteLexiconInput : AWSRequest /**

The name of the lexicon to delete. Must be an existing lexicon in the region.

*/ @property (nonatomic, strong) NSString * _Nullable name; @end /** */ @interface AWSPollyDeleteLexiconOutput : AWSModel @end /** */ @interface AWSPollyDescribeVoicesInput : AWSRequest /**

Specifies the engine (standard or neural) used by Amazon Polly when processing input text for speech synthesis.

*/ @property (nonatomic, assign) AWSPollyEngine engine; /**

Boolean value indicating whether to return any bilingual voices that use the specified language as an additional language. For instance, if you request all languages that use US English (es-US), and there is an Italian voice that speaks both Italian (it-IT) and US English, that voice will be included if you specify yes but not if you specify no.

*/ @property (nonatomic, strong) NSNumber * _Nullable includeAdditionalLanguageCodes; /**

The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

An opaque pagination token returned from the previous DescribeVoices operation. If present, this indicates where to continue the listing.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSPollyDescribeVoicesOutput : AWSModel /**

The pagination token to use in the next request to continue the listing of voices. NextToken is returned only if the response is truncated.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

A list of voices with their properties.

*/ @property (nonatomic, strong) NSArray * _Nullable voices; @end /** */ @interface AWSPollyGetLexiconInput : AWSRequest /**

Name of the lexicon.

*/ @property (nonatomic, strong) NSString * _Nullable name; @end /** */ @interface AWSPollyGetLexiconOutput : AWSModel /**

Lexicon object that provides name and the string content of the lexicon.

*/ @property (nonatomic, strong) AWSPollyLexicon * _Nullable lexicon; /**

Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.

*/ @property (nonatomic, strong) AWSPollyLexiconAttributes * _Nullable lexiconAttributes; @end /** */ @interface AWSPollyGetSpeechSynthesisTaskInput : AWSRequest /**

The Amazon Polly generated identifier for a speech synthesis task.

*/ @property (nonatomic, strong) NSString * _Nullable taskId; @end /** */ @interface AWSPollyGetSpeechSynthesisTaskOutput : AWSModel /**

SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.

*/ @property (nonatomic, strong) AWSPollySynthesisTask * _Nullable synthesisTask; @end /**

Provides lexicon name and lexicon content in string format. For more information, see Pronunciation Lexicon Specification (PLS) Version 1.0.

*/ @interface AWSPollyLexicon : AWSModel /**

Lexicon content in string format. The content of a lexicon must be in PLS format.

*/ @property (nonatomic, strong) NSString * _Nullable content; /**

Name of the lexicon.

*/ @property (nonatomic, strong) NSString * _Nullable name; @end /**

Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons.

*/ @interface AWSPollyLexiconAttributes : AWSModel /**

Phonetic alphabet used in the lexicon. Valid values are ipa and x-sampa.

*/ @property (nonatomic, strong) NSString * _Nullable alphabet; /**

Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

Date lexicon was last modified (a timestamp value).

*/ @property (nonatomic, strong) NSDate * _Nullable lastModified; /**

Number of lexemes in the lexicon.

*/ @property (nonatomic, strong) NSNumber * _Nullable lexemesCount; /**

Amazon Resource Name (ARN) of the lexicon.

*/ @property (nonatomic, strong) NSString * _Nullable lexiconArn; /**

Total size of the lexicon, in characters.

*/ @property (nonatomic, strong) NSNumber * _Nullable size; @end /**

Describes the content of the lexicon.

*/ @interface AWSPollyLexiconDescription : AWSModel /**

Provides lexicon metadata.

*/ @property (nonatomic, strong) AWSPollyLexiconAttributes * _Nullable attributes; /**

Name of the lexicon.

*/ @property (nonatomic, strong) NSString * _Nullable name; @end /** */ @interface AWSPollyListLexiconsInput : AWSRequest /**

An opaque pagination token returned from previous ListLexicons operation. If present, indicates where to continue the list of lexicons.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSPollyListLexiconsOutput : AWSModel /**

A list of lexicon names and attributes.

*/ @property (nonatomic, strong) NSArray * _Nullable lexicons; /**

The pagination token to use in the next request to continue the listing of lexicons. NextToken is returned only if the response is truncated.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; @end /** */ @interface AWSPollyListSpeechSynthesisTasksInput : AWSRequest /**

Maximum number of speech synthesis tasks returned in a List operation.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /**

The pagination token to use in the next request to continue the listing of speech synthesis tasks.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

Status of the speech synthesis tasks returned in a List operation

*/ @property (nonatomic, assign) AWSPollyTaskStatus status; @end /** */ @interface AWSPollyListSpeechSynthesisTasksOutput : AWSModel /**

An opaque pagination token returned from the previous List operation in this request. If present, this indicates where to continue the listing.

*/ @property (nonatomic, strong) NSString * _Nullable nextToken; /**

List of SynthesisTask objects that provides information from the specified task in the list request, including output format, creation time, task status, and so on.

*/ @property (nonatomic, strong) NSArray * _Nullable synthesisTasks; @end /** */ @interface AWSPollyPutLexiconInput : AWSRequest /**

Content of the PLS lexicon as string data.

*/ @property (nonatomic, strong) NSString * _Nullable content; /**

Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.

*/ @property (nonatomic, strong) NSString * _Nullable name; @end /** */ @interface AWSPollyPutLexiconOutput : AWSModel @end /** */ @interface AWSPollyStartSpeechSynthesisTaskInput : AWSRequest /**

Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.

*/ @property (nonatomic, assign) AWSPollyEngine engine; /**

Optional language code for the Speech Synthesis request. This is only necessary if using a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).

If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation for the LanguageCode parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice.

*/ @property (nonatomic, strong) NSArray * _Nullable lexiconNames; /**

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

*/ @property (nonatomic, assign) AWSPollyOutputFormat outputFormat; /**

Amazon S3 bucket name to which the output file will be saved.

*/ @property (nonatomic, strong) NSString * _Nullable outputS3BucketName; /**

The Amazon S3 key prefix for the output speech file.

*/ @property (nonatomic, strong) NSString * _Nullable outputS3KeyPrefix; /**

The audio frequency specified in Hz.

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The default value for standard voices is "22050". The default value for neural voices is "24000".

Valid values for pcm are "8000" and "16000" The default value is "16000".

*/ @property (nonatomic, strong) NSString * _Nullable sampleRate; /**

ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.

*/ @property (nonatomic, strong) NSString * _Nullable snsTopicArn; /**

The type of speech marks returned for the input text.

*/ @property (nonatomic, strong) NSArray * _Nullable speechMarkTypes; /**

The input text to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text.

*/ @property (nonatomic, strong) NSString * _Nullable text; /**

Specifies whether the input text is plain text or SSML. The default value is plain text.

*/ @property (nonatomic, assign) AWSPollyTextType textType; /**

Voice ID to use for the synthesis.

*/ @property (nonatomic, assign) AWSPollyVoiceId voiceId; @end /** */ @interface AWSPollyStartSpeechSynthesisTaskOutput : AWSModel /**

SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.

*/ @property (nonatomic, strong) AWSPollySynthesisTask * _Nullable synthesisTask; @end /**

SynthesisTask object that provides information about a speech synthesis task.

*/ @interface AWSPollySynthesisTask : AWSModel /**

Timestamp for the time the synthesis task was started.

*/ @property (nonatomic, strong) NSDate * _Nullable creationTime; /**

Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.

*/ @property (nonatomic, assign) AWSPollyEngine engine; /**

Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).

If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation for the LanguageCode parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice.

*/ @property (nonatomic, strong) NSArray * _Nullable lexiconNames; /**

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

*/ @property (nonatomic, assign) AWSPollyOutputFormat outputFormat; /**

Pathway for the output speech file.

*/ @property (nonatomic, strong) NSString * _Nullable outputUri; /**

Number of billable characters synthesized.

*/ @property (nonatomic, strong) NSNumber * _Nullable requestCharacters; /**

The audio frequency specified in Hz.

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The default value for standard voices is "22050". The default value for neural voices is "24000".

Valid values for pcm are "8000" and "16000" The default value is "16000".

*/ @property (nonatomic, strong) NSString * _Nullable sampleRate; /**

ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.

*/ @property (nonatomic, strong) NSString * _Nullable snsTopicArn; /**

The type of speech marks returned for the input text.

*/ @property (nonatomic, strong) NSArray * _Nullable speechMarkTypes; /**

The Amazon Polly generated identifier for a speech synthesis task.

*/ @property (nonatomic, strong) NSString * _Nullable taskId; /**

Current status of the individual speech synthesis task.

*/ @property (nonatomic, assign) AWSPollyTaskStatus taskStatus; /**

Reason for the current status of a specific speech synthesis task, including errors if the task has failed.

*/ @property (nonatomic, strong) NSString * _Nullable taskStatusReason; /**

Specifies whether the input text is plain text or SSML. The default value is plain text.

*/ @property (nonatomic, assign) AWSPollyTextType textType; /**

Voice ID to use for the synthesis.

*/ @property (nonatomic, assign) AWSPollyVoiceId voiceId; @end /** */ @interface AWSPollySynthesizeSpeechInput : AWSRequest /**

Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. For information on Amazon Polly voices and which voices are available in standard-only, NTTS-only, and both standard and NTTS formats, see Available Voices.

NTTS-only voices

When using NTTS-only voices such as Kevin (en-US), this parameter is required and must be set to neural. If the engine is not specified, or is set to standard, this will result in an error.

Type: String

Valid Values: standard | neural

Required: Yes

Standard voices

For standard voices, this is not required; the engine parameter defaults to standard. If the engine is not specified, or is set to standard and an NTTS-only voice is selected, this will result in an error.

*/ @property (nonatomic, assign) AWSPollyEngine engine; /**

Optional language code for the Synthesize Speech request. This is only necessary if using a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).

If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation for the LanguageCode parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice. For information about storing lexicons, see PutLexicon.

*/ @property (nonatomic, strong) NSArray * _Nullable lexiconNames; /**

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.

*/ @property (nonatomic, assign) AWSPollyOutputFormat outputFormat; /**

The audio frequency specified in Hz.

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and "24000". The default value for standard voices is "22050". The default value for neural voices is "24000".

Valid values for pcm are "8000" and "16000" The default value is "16000".

*/ @property (nonatomic, strong) NSString * _Nullable sampleRate; /**

The type of speech marks returned for the input text.

*/ @property (nonatomic, strong) NSArray * _Nullable speechMarkTypes; /**

Input text to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text.

*/ @property (nonatomic, strong) NSString * _Nullable text; /**

Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.

*/ @property (nonatomic, assign) AWSPollyTextType textType; /**

Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.

*/ @property (nonatomic, assign) AWSPollyVoiceId voiceId; @end /** */ @interface AWSPollySynthesizeSpeechOutput : AWSModel /**

Stream containing the synthesized speech.

*/ @property (nonatomic, strong) NSData * _Nullable audioStream; /**

Specifies the type audio stream. This should reflect the OutputFormat parameter in your request.

  • If you request mp3 as the OutputFormat, the ContentType returned is audio/mpeg.

  • If you request ogg_vorbis as the OutputFormat, the ContentType returned is audio/ogg.

  • If you request pcm as the OutputFormat, the ContentType returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.

  • If you request json as the OutputFormat, the ContentType returned is application/x-json-stream.

*/ @property (nonatomic, strong) NSString * _Nullable contentType; /**

Number of characters synthesized.

*/ @property (nonatomic, strong) NSNumber * _Nullable requestCharacters; @end /**

Description of the voice.

*/ @interface AWSPollyVoice : AWSModel /**

Additional codes for languages available for the specified voice in addition to its default language.

For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

*/ @property (nonatomic, strong) NSArray * _Nullable additionalLanguageCodes; /**

Gender of the voice.

*/ @property (nonatomic, assign) AWSPollyGender gender; /**

Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.

*/ @property (nonatomic, assign) AWSPollyVoiceId identifier; /**

Language code of the voice.

*/ @property (nonatomic, assign) AWSPollyLanguageCode languageCode; /**

Human readable name of the language in English.

*/ @property (nonatomic, strong) NSString * _Nullable languageName; /**

Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.

*/ @property (nonatomic, strong) NSString * _Nullable name; /**

Specifies which engines (standard or neural) that are supported by a given voice.

*/ @property (nonatomic, strong) NSArray * _Nullable supportedEngines; @end NS_ASSUME_NONNULL_END