asTextEvent
Casts this StartSpeechSynthesisStreamActionStream as a TextEvent and retrieves its aws.sdk.kotlin.services.polly.model.TextEvent value. Throws an exception if the StartSpeechSynthesisStreamActionStream is not a TextEvent.