You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: separate strings out of primary SynthesizeStream pipe (#957)
This prevents strings from being written to the file, which corrupted files of some formats. Additionally, a number of events have been added to listen for these strings returned from the service: `binary_streams`, `marks`, `words`, `warnings`
@@ -68,7 +69,7 @@ class SynthesizeStream extends Readable {
68
69
* Note that the WebSocket connection is not established until the first chunk of data is recieved. This allows for IAM token request management by the SDK.
69
70
*
70
71
* @param {Object} options
71
-
* @param {String} options.text - The text that us to be synthesized. Provide plain text or text that is annotated with SSML. SSML input can include the SSML <mark> element. Pass a maximum of 5 KB of text.
72
+
* @param {String} options.text - The text that us to be synthesized. Provide plain text or text that is annotated with SSML. SSML input can include the SSML <mark> element. Pass a maximum of 5 KB of text.
72
73
* @param {String} options.accept - The requested audio format (MIME type) of the audio.
73
74
* @param {String[]} [options.timings] - An array that specifies whether the service is to return word timing information for all strings of the input text
74
75
* @param {String} [options.voice='en-US_MichaelVoice'] - The voice that is to be used for the synthesis.
@@ -98,7 +99,7 @@ class SynthesizeStream extends Readable {
0 commit comments