TsgcTextToSpeechAmazon › Properties › AudioPlayer
Optional TsgcAudioPlayer used to play back the audio file returned by Amazon Polly.
__property TsgcAudioPlayer * AudioPlayer;
—
Assign a TsgcAudioPlayer instance to automatically play the synthesized audio once Amazon Polly returns the response. If no player is assigned, the file written to AmazonOptions.FileName is still produced but not played. The component forwards the player's start and stop notifications to OnStart and OnStop.