@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>
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. `speaker_label` is set if
[SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
is given and only in the top alternative.
</pre>

<code>string speaker_label = 6;</code>

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