Rate this page:
createRealtimeTTSPlayer
Copy URL
createRealtimeTTSPlayer(text: 

string

,
parameters:

RealtimeTTSPlayerParameters

):

RealtimeTTSPlayer

Creates a new ElevenLabs.RealtimeTTSPlayer instance with the specified text (TTS is used to play the text). You can attach media streams later via the ElevenLabs.RealtimeTTSPlayer.sendMediaTo or VoxEngine.sendMediaBetween methods.
NOTE: this method uses 11labs initializeConnection method internally.

Parameters

Returns

Rate this page: