Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elevenlabs

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elevenlabs - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1

dist/version.d.ts

4

api/resources/audioIsolation/client/Client.js

@@ -66,3 +66,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -120,3 +120,3 @@ duplex: _maybeEncodedRequest.duplex,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -123,0 +123,0 @@ duplex: _maybeEncodedRequest.duplex,

@@ -108,3 +108,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -111,0 +111,0 @@ duplex: _maybeEncodedRequest.duplex,

@@ -74,3 +74,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -138,3 +139,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -202,3 +204,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -266,3 +269,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -330,3 +334,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -396,3 +401,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -399,0 +405,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -102,3 +102,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -163,3 +163,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -226,3 +227,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -282,3 +284,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -353,3 +356,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -356,0 +360,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -88,3 +88,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -152,3 +153,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -215,3 +217,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -271,3 +274,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -337,3 +341,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -340,0 +345,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -79,0 +80,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -175,3 +176,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -236,3 +237,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -304,3 +306,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -368,3 +371,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -431,3 +435,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -494,3 +499,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -550,3 +556,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -616,3 +623,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -685,3 +693,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -688,0 +697,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -52,3 +52,8 @@ /**

* await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* })

@@ -55,0 +60,0 @@ */

@@ -84,3 +84,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -133,3 +133,8 @@ duplex: _maybeEncodedRequest.duplex,

* await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* })

@@ -149,3 +154,4 @@ */

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -216,3 +222,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -281,3 +288,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -345,3 +353,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -418,3 +427,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -421,0 +431,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,3 +8,8 @@ /**

* {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* }

@@ -11,0 +16,0 @@ */

@@ -78,3 +78,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -134,3 +135,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -137,0 +139,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -85,3 +85,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -159,3 +159,3 @@ requestType: "file",

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -162,0 +162,0 @@ requestType: "file",

@@ -11,4 +11,4 @@ /**

* audio: fs.createReadStream("/path/to/your/file"),
* enable_logging: ElevenLabs.OptimizeStreamingLatency.Zero,
* optimize_streaming_latency: ElevenLabs.OutputFormat.Mp32205032,
* enable_logging: "0",
* optimize_streaming_latency: "mp3_22050_32",
* output_format: "string"

@@ -15,0 +15,0 @@ * }

@@ -12,4 +12,4 @@ /**

* enable_logging: true,
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32"
* }

@@ -16,0 +16,0 @@ */

@@ -67,3 +67,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -70,0 +71,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -89,3 +89,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -169,3 +170,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -238,3 +240,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -318,3 +321,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -321,0 +325,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,4 +8,4 @@ /**

* {
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032,
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32",
* text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -12,0 +12,0 @@ * voice_settings: {

@@ -8,4 +8,4 @@ /**

* {
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032,
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32",
* text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -12,0 +12,0 @@ * voice_settings: {

@@ -87,3 +87,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -90,0 +91,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -73,3 +73,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -135,3 +136,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -138,0 +140,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -71,3 +71,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -122,3 +123,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -191,3 +193,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -194,0 +197,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,5 +8,5 @@ /**

* {
* gender: ElevenLabs.Gender.Female,
* gender: "female",
* accent: "american",
* age: ElevenLabs.Age.MiddleAged,
* age: "middle_aged",
* accent_strength: 2,

@@ -13,0 +13,0 @@ * text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D"

@@ -93,3 +93,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -154,3 +155,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -212,3 +214,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -281,3 +284,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -345,3 +349,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -413,3 +418,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -474,3 +480,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

for (const _file of request.files) {
yield _request.append("files", _file);
yield _request.appendFile("files", _file);
}

@@ -489,3 +495,3 @@ if (request.description != null) {

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -548,3 +554,3 @@ duplex: _maybeEncodedRequest.duplex,

for (const _file of request.files) {
yield _request.append("files", _file);
yield _request.appendFile("files", _file);
}

@@ -564,3 +570,3 @@ }

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -630,3 +636,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -753,3 +760,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -824,3 +832,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -885,3 +893,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -888,0 +897,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -142,3 +143,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -208,3 +210,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -211,0 +214,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -42,3 +42,3 @@ "use strict";

}
else if (runtime_1.RUNTIME.type !== "node" && typeof fetch == "function") {
else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);

@@ -45,0 +45,0 @@ }

@@ -1,3 +0,2 @@

/// <reference types="node" />
import type { Writable } from "stream";
import type { Writable } from "readable-stream";
import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";

@@ -4,0 +3,0 @@ export declare class Node18UniversalStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>, ReadFormat> {

@@ -168,6 +168,8 @@ "use strict";

const { done, value } = yield this.reader.read();
if (done)
if (done) {
break;
if (value)
}
if (value) {
chunks.push(value);
}
}

@@ -174,0 +176,0 @@ const decoder = new TextDecoder(this.encoding || "utf-8");

/// <reference types="node" />
import type { Readable, Writable } from "stream";
import type { Readable, Writable } from "readable-stream";
import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";

@@ -4,0 +4,0 @@ export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {

@@ -15,3 +15,3 @@ import { StreamWrapper } from "./chooseStreamWrapper";

pipeTo(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<any>): void;
unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
destroy(error?: Error): void;

@@ -18,0 +18,0 @@ pause(): void;

@@ -150,6 +150,8 @@ "use strict";

const { done, value } = yield this.reader.read();
if (done)
if (done) {
break;
if (value)
}
if (value) {
chunks.push(value);
}
}

@@ -156,0 +158,0 @@ const decoder = new TextDecoder(this.encoding || "utf-8");

export declare type MaybePromise<T> = Promise<T> | T;
declare type FormDataRequest<Body> = {
interface FormDataRequest<Body> {
body: Body;
headers: Record<string, string>;
duplex?: "half";
};
}
export interface CrossPlatformFormData {

@@ -14,2 +14,48 @@ setup(): Promise<void>;

export declare function newFormData(): Promise<CrossPlatformFormData>;
export declare type Node18FormDataFd = {
append(name: string, value: unknown, fileName?: string): void;
} | undefined;
/**
* Form Data Implementation for Node.js 18+
*/
export declare class Node18FormData implements CrossPlatformFormData {
private fd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
getRequest(): Promise<FormDataRequest<unknown>>;
}
export declare type Node16FormDataFd = {
append(name: string, value: unknown, options?: string | {
header?: string | Headers;
knownLength?: number;
filename?: string;
filepath?: string;
contentType?: string;
}): void;
getHeaders(): Record<string, string>;
} | undefined;
/**
* Form Data Implementation for Node.js 16-18
*/
export declare class Node16FormData implements CrossPlatformFormData {
private fd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
getRequest(): FormDataRequest<Node16FormDataFd>;
}
export declare type WebFormDataFd = {
append(name: string, value: string | Blob, fileName?: string): void;
} | undefined;
/**
* Form Data Implementation for Web
*/
export declare class WebFormData implements CrossPlatformFormData {
protected fd: WebFormDataFd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: any, fileName?: string): Promise<void>;
getRequest(): FormDataRequest<WebFormDataFd>;
}
export {};

@@ -35,4 +35,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.newFormData = void 0;
exports.WebFormData = exports.Node16FormData = exports.Node18FormData = exports.newFormData = void 0;
const runtime_1 = require("../runtime");
function isNamedValue(value) {
return typeof value === "object" && value != null && "name" in value;
}
function newFormData() {

@@ -71,4 +74,10 @@ return __awaiter(this, void 0, void 0, function* () {

return __awaiter(this, void 0, void 0, function* () {
if (value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable) {
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
if (value instanceof Blob) {
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value, fileName);
}
else {
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, {
type: undefined,

@@ -82,5 +91,2 @@ name: fileName,

}
else {
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, value, fileName);
}
});

@@ -92,3 +98,3 @@ }

return {
body: yield (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable.from(encoder),
body: (yield Promise.resolve().then(() => __importStar(require("readable-stream")))).Readable.from(encoder),
headers: encoder.headers,

@@ -100,2 +106,3 @@ duplex: "half",

}
exports.Node18FormData = Node18FormData;
/**

@@ -117,4 +124,7 @@ * Form Data Implementation for Node.js 16-18

return __awaiter(this, void 0, void 0, function* () {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
let bufferedValue;
if (!(value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable)) {
if (value instanceof Blob) {
bufferedValue = Buffer.from(yield value.arrayBuffer());

@@ -140,2 +150,3 @@ }

}
exports.Node16FormData = Node16FormData;
/**

@@ -157,2 +168,5 @@ * Form Data Implementation for Web

return __awaiter(this, void 0, void 0, function* () {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, new Blob([value]), fileName);

@@ -168,1 +182,2 @@ });

}
exports.WebFormData = WebFormData;

@@ -66,3 +66,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -120,3 +120,3 @@ duplex: _maybeEncodedRequest.duplex,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -123,0 +123,0 @@ duplex: _maybeEncodedRequest.duplex,

@@ -108,3 +108,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -111,0 +111,0 @@ duplex: _maybeEncodedRequest.duplex,

@@ -74,3 +74,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -138,3 +139,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -202,3 +204,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -266,3 +269,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -330,3 +334,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -396,3 +401,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -399,0 +405,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -102,3 +102,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -163,3 +163,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -226,3 +227,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -282,3 +284,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -353,3 +356,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -356,0 +360,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -88,3 +88,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -152,3 +153,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -215,3 +217,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -271,3 +274,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -337,3 +341,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -340,0 +345,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -79,0 +80,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -175,3 +176,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -236,3 +237,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -304,3 +306,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -368,3 +371,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -431,3 +435,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -494,3 +499,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -550,3 +556,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -616,3 +623,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -685,3 +693,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -688,0 +697,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -52,3 +52,8 @@ /**

* await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* })

@@ -55,0 +60,0 @@ */

@@ -84,3 +84,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -133,3 +133,8 @@ duplex: _maybeEncodedRequest.duplex,

* await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* })

@@ -149,3 +154,4 @@ */

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -216,3 +222,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -281,3 +288,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -345,3 +353,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -418,3 +427,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -421,0 +431,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,3 +8,8 @@ /**

* {
* rules: []
* rules: [{
* type: "phoneme",
* string_to_replace: "rules",
* phoneme: "rules",
* alphabet: "rules"
* }]
* }

@@ -11,0 +16,0 @@ */

@@ -78,3 +78,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -134,3 +135,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -137,0 +139,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -85,3 +85,3 @@ "use strict";

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -159,3 +159,3 @@ requestType: "file",

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -162,0 +162,0 @@ requestType: "file",

@@ -11,4 +11,4 @@ /**

* audio: fs.createReadStream("/path/to/your/file"),
* enable_logging: ElevenLabs.OptimizeStreamingLatency.Zero,
* optimize_streaming_latency: ElevenLabs.OutputFormat.Mp32205032,
* enable_logging: "0",
* optimize_streaming_latency: "mp3_22050_32",
* output_format: "string"

@@ -15,0 +15,0 @@ * }

@@ -12,4 +12,4 @@ /**

* enable_logging: true,
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32"
* }

@@ -16,0 +16,0 @@ */

@@ -67,3 +67,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -70,0 +71,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -89,3 +89,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -169,3 +170,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -238,3 +240,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -318,3 +321,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -321,0 +325,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,4 +8,4 @@ /**

* {
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032,
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32",
* text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -12,0 +12,0 @@ * voice_settings: {

@@ -8,4 +8,4 @@ /**

* {
* optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
* output_format: ElevenLabs.OutputFormat.Mp32205032,
* optimize_streaming_latency: "0",
* output_format: "mp3_22050_32",
* text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -12,0 +12,0 @@ * voice_settings: {

@@ -87,3 +87,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -90,0 +91,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -73,3 +73,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -135,3 +136,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -138,0 +140,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -71,3 +71,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -122,3 +123,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -191,3 +193,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -194,0 +197,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -8,5 +8,5 @@ /**

* {
* gender: ElevenLabs.Gender.Female,
* gender: "female",
* accent: "american",
* age: ElevenLabs.Age.MiddleAged,
* age: "middle_aged",
* accent_strength: 2,

@@ -13,0 +13,0 @@ * text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D"

@@ -93,3 +93,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -154,3 +155,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -212,3 +214,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -281,3 +284,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -345,3 +349,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -413,3 +418,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -474,3 +480,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

for (const _file of request.files) {
yield _request.append("files", _file);
yield _request.appendFile("files", _file);
}

@@ -489,3 +495,3 @@ if (request.description != null) {

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -548,3 +554,3 @@ duplex: _maybeEncodedRequest.duplex,

for (const _file of request.files) {
yield _request.append("files", _file);
yield _request.appendFile("files", _file);
}

@@ -564,3 +570,3 @@ }

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -630,3 +636,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -753,3 +760,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -824,3 +832,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

? yield core.Supplier.get(this._options.apiKey)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "0.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "v0.16.1", "User-Agent": "elevenlabs/v0.16.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
requestType: "file",

@@ -885,3 +893,4 @@ duplex: _maybeEncodedRequest.duplex,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -888,0 +897,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,4 @@ "use strict";

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -142,3 +143,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -208,3 +210,4 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

"X-Fern-SDK-Name": "elevenlabs",
"X-Fern-SDK-Version": "0.16.0",
"X-Fern-SDK-Version": "v0.16.1",
"User-Agent": "elevenlabs/v0.16.1",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -211,0 +214,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -42,3 +42,3 @@ "use strict";

}
else if (runtime_1.RUNTIME.type !== "node" && typeof fetch == "function") {
else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);

@@ -45,0 +45,0 @@ }

@@ -1,3 +0,2 @@

/// <reference types="node" />
import type { Writable } from "stream";
import type { Writable } from "readable-stream";
import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";

@@ -4,0 +3,0 @@ export declare class Node18UniversalStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>, ReadFormat> {

@@ -168,6 +168,8 @@ "use strict";

const { done, value } = yield this.reader.read();
if (done)
if (done) {
break;
if (value)
}
if (value) {
chunks.push(value);
}
}

@@ -174,0 +176,0 @@ const decoder = new TextDecoder(this.encoding || "utf-8");

/// <reference types="node" />
import type { Readable, Writable } from "stream";
import type { Readable, Writable } from "readable-stream";
import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";

@@ -4,0 +4,0 @@ export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {

@@ -15,3 +15,3 @@ import { StreamWrapper } from "./chooseStreamWrapper";

pipeTo(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<any>): void;
unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
destroy(error?: Error): void;

@@ -18,0 +18,0 @@ pause(): void;

@@ -150,6 +150,8 @@ "use strict";

const { done, value } = yield this.reader.read();
if (done)
if (done) {
break;
if (value)
}
if (value) {
chunks.push(value);
}
}

@@ -156,0 +158,0 @@ const decoder = new TextDecoder(this.encoding || "utf-8");

export declare type MaybePromise<T> = Promise<T> | T;
declare type FormDataRequest<Body> = {
interface FormDataRequest<Body> {
body: Body;
headers: Record<string, string>;
duplex?: "half";
};
}
export interface CrossPlatformFormData {

@@ -14,2 +14,48 @@ setup(): Promise<void>;

export declare function newFormData(): Promise<CrossPlatformFormData>;
export declare type Node18FormDataFd = {
append(name: string, value: unknown, fileName?: string): void;
} | undefined;
/**
* Form Data Implementation for Node.js 18+
*/
export declare class Node18FormData implements CrossPlatformFormData {
private fd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
getRequest(): Promise<FormDataRequest<unknown>>;
}
export declare type Node16FormDataFd = {
append(name: string, value: unknown, options?: string | {
header?: string | Headers;
knownLength?: number;
filename?: string;
filepath?: string;
contentType?: string;
}): void;
getHeaders(): Record<string, string>;
} | undefined;
/**
* Form Data Implementation for Node.js 16-18
*/
export declare class Node16FormData implements CrossPlatformFormData {
private fd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
getRequest(): FormDataRequest<Node16FormDataFd>;
}
export declare type WebFormDataFd = {
append(name: string, value: string | Blob, fileName?: string): void;
} | undefined;
/**
* Form Data Implementation for Web
*/
export declare class WebFormData implements CrossPlatformFormData {
protected fd: WebFormDataFd;
setup(): Promise<void>;
append(key: string, value: any): void;
appendFile(key: string, value: any, fileName?: string): Promise<void>;
getRequest(): FormDataRequest<WebFormDataFd>;
}
export {};

@@ -35,4 +35,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.newFormData = void 0;
exports.WebFormData = exports.Node16FormData = exports.Node18FormData = exports.newFormData = void 0;
const runtime_1 = require("../runtime");
function isNamedValue(value) {
return typeof value === "object" && value != null && "name" in value;
}
function newFormData() {

@@ -71,4 +74,10 @@ return __awaiter(this, void 0, void 0, function* () {

return __awaiter(this, void 0, void 0, function* () {
if (value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable) {
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
if (value instanceof Blob) {
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value, fileName);
}
else {
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, {
type: undefined,

@@ -82,5 +91,2 @@ name: fileName,

}
else {
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, value, fileName);
}
});

@@ -92,3 +98,3 @@ }

return {
body: yield (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable.from(encoder),
body: (yield Promise.resolve().then(() => __importStar(require("readable-stream")))).Readable.from(encoder),
headers: encoder.headers,

@@ -100,2 +106,3 @@ duplex: "half",

}
exports.Node18FormData = Node18FormData;
/**

@@ -117,4 +124,7 @@ * Form Data Implementation for Node.js 16-18

return __awaiter(this, void 0, void 0, function* () {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
let bufferedValue;
if (!(value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable)) {
if (value instanceof Blob) {
bufferedValue = Buffer.from(yield value.arrayBuffer());

@@ -140,2 +150,3 @@ }

}
exports.Node16FormData = Node16FormData;
/**

@@ -157,2 +168,5 @@ * Form Data Implementation for Web

return __awaiter(this, void 0, void 0, function* () {
if (fileName == null && isNamedValue(value)) {
fileName = value.name;
}
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, new Blob([value]), fileName);

@@ -168,1 +182,2 @@ });

}
exports.WebFormData = WebFormData;
{
"name": "elevenlabs",
"version": "0.16.0",
"version": "v0.16.1",
"private": false,

@@ -21,2 +21,3 @@ "repository": "https://github.com/elevenlabs/elevenlabs-js",

"qs": "6.11.2",
"readable-stream": "^4.5.2",
"form-data-encoder": "^4.0.2",

@@ -30,2 +31,6 @@ "command-exists": "^1.2.9",

"@types/node-fetch": "2.6.9",
"@types/readable-stream": "^4.0.15",
"fetch-mock-jest": "^1.5.1",
"webpack": "^5.94.0",
"ts-loader": "^9.3.1",
"jest": "^29.7.0",

@@ -32,0 +37,0 @@ "@types/jest": "^29.5.5",

@@ -701,4 +701,4 @@ # Reference

await client.textToSpeech.convert("pMsXgVXv3BLzUgSXRplE", {
optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
output_format: ElevenLabs.OutputFormat.Mp32205032,
optimize_streaming_latency: "0",
output_format: "mp3_22050_32",
text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -855,4 +855,4 @@ voice_settings: {

await client.textToSpeech.convertAsStream("pMsXgVXv3BLzUgSXRplE", {
optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
output_format: ElevenLabs.OutputFormat.Mp32205032,
optimize_streaming_latency: "0",
output_format: "mp3_22050_32",
text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

@@ -1013,4 +1013,4 @@ voice_settings: {

enable_logging: true,
optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
output_format: ElevenLabs.OutputFormat.Mp32205032,
optimize_streaming_latency: "0",
output_format: "mp3_22050_32",
});

@@ -1089,4 +1089,4 @@ ```

audio: fs.createReadStream("/path/to/your/file"),
enable_logging: ElevenLabs.OptimizeStreamingLatency.Zero,
optimize_streaming_latency: ElevenLabs.OutputFormat.Mp32205032,
enable_logging: "0",
optimize_streaming_latency: "mp3_22050_32",
output_format: "string",

@@ -1222,5 +1222,5 @@ });

await client.voiceGeneration.generate({
gender: ElevenLabs.Gender.Female,
gender: "female",
accent: "american",
age: ElevenLabs.Age.MiddleAged,
age: "middle_aged",
accent_strength: 2,

@@ -4000,3 +4000,10 @@ text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D",

await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", {
rules: [],
rules: [
{
type: "phoneme",
string_to_replace: "rules",
phoneme: "rules",
alphabet: "rules",
},
],
});

@@ -4003,0 +4010,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc