Create a new instance of Speechify TTS.
apiKey must be set to your Speechify API key, either using the argument or by setting the
SPEECHIFY_API_KEY environment variable.
TTS.stream splits its input into sentences and synthesizes them one after another, each as one streamed request, and TTS.synthesize streams its whole text in one request. Requests share keep-alive connections, which TTS.prewarm opens ahead of the first one. Word timestamps come with the audio.
Returns this TTS's capabilities
Get the model name/identifier for this TTS instance.
The model name if available, "unknown" otherwise.
Plugins should override this property to provide their model information.
Returns the channel count of audio frames returned by this TTS
Get the provider name for this TTS instance.
The provider name if available, "unknown" otherwise.
Plugins should override this property to provide their provider information.
Returns the sample rate of audio frames returned by this TTS
Returns a SynthesizeStream that can be used to push text and receive audio data
Optional options: { Optional configuration including connection options
Optional connReceives text and returns synthesis in the form of a ChunkedStream
Optional connOptions: APIConnectOptionsOptional abortSignal: AbortSignalUpdate the synthesis options used by streams created from now on.
Speechify text-to-speech over
POST /v1/audio/stream/with-timestamps, which streams 24 kHz mono PCM together with word-level speech marks.