Interface StartSpeechSynthesisStreamRequest.Builder

  • Method Details

    • engine

      Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the generative engine 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 the generative engine 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 generative engine 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 the generative engine 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

      StartSpeechSynthesisStreamRequest.Builder lexiconNames(String... 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.