@breeze.blue/sdk 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +1 -2
- package/dist/client.js +5 -4
- package/dist/types.d.ts +0 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
- Clone previews use an automatically generated script in the reference audio language. Custom text, instructions, and language hints are not accepted.
|
|
6
|
+
- Breaking: remove `text`, `instructions`, `languageCode`, and `previewLanguageCode` from `voices.createClonePreview(...)` calls. Use Text to Speech with a saved voice for custom scripts and performance instructions.
|
|
7
|
+
|
|
3
8
|
## 0.15.0
|
|
4
9
|
|
|
5
10
|
- Added `previewLanguageCode` to Voice Clone previews independently of the reference audio language hint.
|
package/README.md
CHANGED
|
@@ -454,7 +454,6 @@ const clonePreview = await client.voices.createClonePreview({
|
|
|
454
454
|
filename: "sample.wav",
|
|
455
455
|
contentType: "audio/wav",
|
|
456
456
|
},
|
|
457
|
-
text: "This is a short preview script.",
|
|
458
457
|
});
|
|
459
458
|
let generatedVoiceId = clonePreview.generatedVoiceId;
|
|
460
459
|
|
|
@@ -574,7 +573,7 @@ try {
|
|
|
574
573
|
|
|
575
574
|
Each API error exposes `status`, `code`, `detail`, `meta`, and `headers`.
|
|
576
575
|
|
|
577
|
-
Clone previews
|
|
576
|
+
Clone previews automatically generate a short script in the detected reference audio language. They accept a reference sample, name, and optional description. Save the preview as a voice, then use Text to Speech for custom scripts, instructions, or target languages.
|
|
578
577
|
|
|
579
578
|
### HTTP TTS speed
|
|
580
579
|
|
package/dist/client.js
CHANGED
|
@@ -1727,13 +1727,14 @@ function clonePreviewForm(request) {
|
|
|
1727
1727
|
if (request.removeBackgroundNoise) {
|
|
1728
1728
|
throw new BreezeBlueConfigurationError("removeBackgroundNoise is not supported by the Breeze Developer API.");
|
|
1729
1729
|
}
|
|
1730
|
+
for (const field of ["text", "instructions", "languageCode", "previewLanguageCode"]) {
|
|
1731
|
+
if (field in request) {
|
|
1732
|
+
throw new BreezeBlueConfigurationError(`Clone previews do not accept ${field}; the script and language are generated automatically.`);
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1730
1735
|
const form = new FormData();
|
|
1731
1736
|
form.set("name", request.name);
|
|
1732
1737
|
appendOptional(form, "description", request.description);
|
|
1733
|
-
appendOptional(form, "language_code", request.languageCode);
|
|
1734
|
-
appendOptional(form, "preview_language_code", request.previewLanguageCode);
|
|
1735
|
-
appendOptional(form, "text", request.text);
|
|
1736
|
-
appendOptional(form, "instructions", request.instructions);
|
|
1737
1738
|
for (const file of normalizeFiles(request.file, request.files, { required: true })) {
|
|
1738
1739
|
appendFile(form, "files", file);
|
|
1739
1740
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -392,12 +392,6 @@ export interface VoiceClonePreviewRequest {
|
|
|
392
392
|
files?: Array<UploadData | UploadFile>;
|
|
393
393
|
description?: string;
|
|
394
394
|
removeBackgroundNoise?: boolean;
|
|
395
|
-
/** Reference language hint; audio recognition remains authoritative. */
|
|
396
|
-
languageCode?: VoiceLanguageCode;
|
|
397
|
-
/** Target hint used when preview text language is uncertain. */
|
|
398
|
-
previewLanguageCode?: VoiceLanguageCode;
|
|
399
|
-
text?: string;
|
|
400
|
-
instructions?: string;
|
|
401
395
|
}
|
|
402
396
|
export interface VoiceClonePreview {
|
|
403
397
|
generatedVoiceId: string;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.16.0";
|
|
2
2
|
export declare const SDK_NAME = "@breeze.blue/sdk";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.16.0";
|
|
2
2
|
export const SDK_NAME = "@breeze.blue/sdk";
|