private String getSpeakerLabel()

in src/main/java/com/amazonaws/kvstranscribestreaming/publisher/DynamoDBTranscriptionPublisher.java [158:167]


    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;
    }