public int getVoicesCount() {
      if (voicesBuilder_ == null) {
        return voices_.size();
      } else {
        return voicesBuilder_.getCount();
      }
    }
<pre>
The list of voices.
</pre>

<code>repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1;</code>
java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java