Class SynthesizeSpeechResponse

    • Method Detail

      • contentType

        public final String contentType()

        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.

        Returns:
        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.

      • requestCharacters

        public final Integer requestCharacters()

        Number of characters synthesized.

        Returns:
        Number of characters synthesized.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object