System Voice Command Lens Studio: Repeating Live Transcription Text on Display

Daniel Garcia
Daniel Garcia Posts: 3
edited August 13 in Programming #1

Hello. I am using System Voice Command and want to have it set for Live Transcription. The text when displayed is repeating words at the beginning and end of a spoken sentence. The duplication goes away when "Transcription" is selected in the inspector instead of "Live Transcription". I have included line breaks and additive text lines in the script on the lines for Transcription, but I can't find a place where this would change if in Live Transcription. Any idea of the cause of the repeating text in Live Transcription?

Answers

  • Daniel Garcia
    Daniel Garcia Posts: 3
    edited August 13 #2

    if (script.transcripitonText && (eventArgs.isFinalTranscription || eventArgs.transcription.trim())) {
    script.screenTextTranscription.text =
    script.screenTextTranscription.text ===""?
    eventArgs.transcription:
    script.screenTextTranscription.text + ". "+eventArgs.transcription;