asTranscriptEvent
Casts this MedicalScribeResultStream as a TranscriptEvent and retrieves its aws.sdk.kotlin.services.transcribestreaming.model.MedicalScribeTranscriptEvent value. Throws an exception if the MedicalScribeResultStream is not a TranscriptEvent.