Interface VoiceOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Voice, Voice.Builder

    public interface VoiceOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getLanguageCodes​(int index)
      The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
      com.google.protobuf.ByteString getLanguageCodesBytes​(int index)
      The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
      int getLanguageCodesCount()
      The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
      List<String> getLanguageCodesList()
      The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
      String getName()
      The name of this voice.
      com.google.protobuf.ByteString getNameBytes()
      The name of this voice.
      int getNaturalSampleRateHertz()
      The natural sample rate (in hertz) for this voice.
      SsmlVoiceGender getSsmlGender()
      The gender of this voice.
      int getSsmlGenderValue()
      The gender of this voice.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getLanguageCodesList

        List<String> getLanguageCodesList()
         The languages that this voice supports, expressed as
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
         "en-US", "es-419", "cmn-tw").
         
        repeated string language_codes = 1;
        Returns:
        A list containing the languageCodes.
      • getLanguageCodesCount

        int getLanguageCodesCount()
         The languages that this voice supports, expressed as
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
         "en-US", "es-419", "cmn-tw").
         
        repeated string language_codes = 1;
        Returns:
        The count of languageCodes.
      • getLanguageCodes

        String getLanguageCodes​(int index)
         The languages that this voice supports, expressed as
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
         "en-US", "es-419", "cmn-tw").
         
        repeated string language_codes = 1;
        Parameters:
        index - The index of the element to return.
        Returns:
        The languageCodes at the given index.
      • getLanguageCodesBytes

        com.google.protobuf.ByteString getLanguageCodesBytes​(int index)
         The languages that this voice supports, expressed as
         [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
         "en-US", "es-419", "cmn-tw").
         
        repeated string language_codes = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the languageCodes at the given index.
      • getName

        String getName()
         The name of this voice.  Each distinct voice has a unique name.
         
        string name = 2;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         The name of this voice.  Each distinct voice has a unique name.
         
        string name = 2;
        Returns:
        The bytes for name.
      • getSsmlGenderValue

        int getSsmlGenderValue()
         The gender of this voice.
         
        .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
        Returns:
        The enum numeric value on the wire for ssmlGender.
      • getSsmlGender

        SsmlVoiceGender getSsmlGender()
         The gender of this voice.
         
        .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
        Returns:
        The ssmlGender.
      • getNaturalSampleRateHertz

        int getNaturalSampleRateHertz()
         The natural sample rate (in hertz) for this voice.
         
        int32 natural_sample_rate_hertz = 4;
        Returns:
        The naturalSampleRateHertz.