Interface StartSpeechSynthesisStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartSpeechSynthesisStreamRequest.Builder,,StartSpeechSynthesisStreamRequest> PollyRequest.Builder,SdkBuilder<StartSpeechSynthesisStreamRequest.Builder,,StartSpeechSynthesisStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartSpeechSynthesisStreamRequest
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the engine for Amazon Polly to use when processing input text for speech synthesis.Specifies the engine for Amazon Polly to use when processing input text for speech synthesis.languageCode(String languageCode) An optional parameter that sets the language code for the speech synthesis request.languageCode(LanguageCode languageCode) An optional parameter that sets the language code for the speech synthesis request.lexiconNames(String... lexiconNames) The names of one or more pronunciation lexicons for the service to apply during synthesis.lexiconNames(Collection<String> lexiconNames) The names of one or more pronunciation lexicons for the service to apply during synthesis.outputFormat(String outputFormat) The audio format for the synthesized speech.outputFormat(OutputFormat outputFormat) The audio format for the synthesized speech.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sampleRate(String sampleRate) The audio frequency, specified in Hz.The voice to use in synthesis.The voice to use in synthesis.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.polly.model.PollyRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
engine
Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the
generativeengine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.- Parameters:
engine- Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only thegenerativeengine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
engine
Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the
generativeengine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.- Parameters:
engine- Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only thegenerativeengine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.
- Parameters:
languageCode- An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.
- Parameters:
languageCode- An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lexiconNames
The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.
- Parameters:
lexiconNames- The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lexiconNames
The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.
- Parameters:
lexiconNames- The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFormat
The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.
- Parameters:
outputFormat- The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputFormat
The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.
- Parameters:
outputFormat- The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sampleRate
The audio frequency, specified in Hz.
- Parameters:
sampleRate- The audio frequency, specified in Hz.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
voiceId
The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.
- Parameters:
voiceId- The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
voiceId
The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.
- Parameters:
voiceId- The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartSpeechSynthesisStreamRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartSpeechSynthesisStreamRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-