Constructs a new TextToSpeech instance.
Components to initialize the TextToSpeech instance.
API token for authentication with the text-to-speech services
Flag to enable or disable logging
Session ID for TikTok text-to-speech API
Generates speech audio from the provided text using the specified API.
Arguments for generating the speech.
A Promise that resolves to the file path of the generated audio file or undefined if an error occurs.
The TextToSpeech class provides functionalities for converting text to speech using the TikTok and Deepgram APIs.