(optional, NOT SUPPORTED IN BROWSER) Use a custom http.Agent implementation like https-proxy-agent or socks-proxy-agent.
Close the WebSocket connection.
Fetch the list of voices available in Microsoft Edge. These, however, are not all. The complete list of voices supported by this module can be found here (neural, standard, and preview).
Writes raw audio synthesised from text to a file. Has no SSML template. Basic SSML should be provided in the request.
a valid output path, including a filename and file extension.
the SSML to send. SSML elements required in order to work.
Promise
with the full filepathWrites raw audio synthesised from a request in real-time to a {@link stream.Readable}. Has no SSML template. Basic SSML should be provided in the request.
the SSML to send. SSML elements required in order to work.
stream.Readable
with the audio dataSets the required information for the speech to be synthesised and inits a new WebSocket connection. Must be called at least once before text can be synthesised. Saved in this instance. Can be called at any time times to update the metadata.
any OUTPUT_FORMAT
(optional) any voice locale that is supported by the voice. See the list of all voices for compatibility. If not provided, the locale will be inferred from the voiceName
Writes raw audio synthesised from text to a file. Uses a basic {@link _SSMLTemplate SML template}.
a valid output path, including a filename and file extension.
the input to synthesise
(optional) ProsodyOptions
Promise
with the full filepathWrites raw audio synthesised from text in real-time to a {@link stream.Readable}. Uses a basic {@link _SSMLTemplate SML template}.
the text to synthesise. Can include SSML elements.
(optional) ProsodyOptions
stream.Readable
with the audio dataGenerated using TypeDoc
Create a new
MsEdgeTTS
instance.