asTextEventOrNull
Casts this StartSpeechSynthesisStreamActionStream as a TextEvent and retrieves its aws.sdk.kotlin.services.polly.model.TextEvent value. Returns null if the StartSpeechSynthesisStreamActionStream is not a TextEvent.