@java.lang.Override
  public java.lang.String getSpeakerLabel() {
    java.lang.Object ref = speakerLabel_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      speakerLabel_ = s;
      return s;
    }
  }
<pre>
Output only. A label value assigned for every unique speaker within the
audio. This field specifies which speaker was detected to have spoken this
word. For some models, like medical_conversation this can be actual speaker
role, for example "patient" or "provider", but generally this would be a
number identifying a speaker. This field is only set if
enable_speaker_diarization = 'true' and only for the top alternative.
</pre>

<code>string speaker_label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The speakerLabel.
java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java