in functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/publisher/DynamoDBTranscriptionPublisher.java [195:204]
private String getSpeakerLabel() {
// If isCaller is not avaiable, fall back to initial speaker label by querying DynamoDB.
if (this.isCaller == null && this.speakerLabel == null) {
this.speakerLabel = initSpeakerLabel();
} else if (this.isCaller != null) {
this.speakerLabel = this.isCaller == Boolean.TRUE ? "spk_0" : "spk_1";
}
return this.speakerLabel;
}