@breeze.blue/sdk 0.14.0 → 0.15.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.0
4
+
5
+ - Added `previewLanguageCode` to Voice Clone previews independently of the reference audio language hint.
6
+ - Expanded voice language metadata for the Multilingual-51 model.
7
+
3
8
  ## 0.14.0
4
9
 
5
10
  - Added `account.currentApiKey()` for checking the authenticating key's status
package/README.md CHANGED
@@ -573,3 +573,9 @@ try {
573
573
  ```
574
574
 
575
575
  Each API error exposes `status`, `code`, `detail`, `meta`, and `headers`.
576
+
577
+ Clone previews identify the reference audio language and preview text language independently. Use `previewLanguageCode` for an explicit target hint when the text is ambiguous. Reference language hints do not override audio recognition; save cross-language previews with the original reference language.
578
+
579
+ ### HTTP TTS speed
580
+
581
+ Pass `voiceSettings: { speed: 1.25 }` to control speech speed without changing pitch, from 0.5 to 2.0. Omission always means 1.0; saved voice speed is not inherited. Sync, async and HTTP streaming support this parameter; Realtime does not.
package/dist/client.js CHANGED
@@ -1731,6 +1731,7 @@ function clonePreviewForm(request) {
1731
1731
  form.set("name", request.name);
1732
1732
  appendOptional(form, "description", request.description);
1733
1733
  appendOptional(form, "language_code", request.languageCode);
1734
+ appendOptional(form, "preview_language_code", request.previewLanguageCode);
1734
1735
  appendOptional(form, "text", request.text);
1735
1736
  appendOptional(form, "instructions", request.instructions);
1736
1737
  for (const file of normalizeFiles(request.file, request.files, { required: true })) {
package/dist/types.d.ts CHANGED
@@ -230,6 +230,7 @@ export interface VoiceSettings {
230
230
  similarityBoost?: number;
231
231
  style?: number;
232
232
  useSpeakerBoost?: boolean;
233
+ /** Request-only, pitch-preserving HTTP TTS speed (0.5–2.0). Omitted means 1.0. */
233
234
  speed?: number;
234
235
  guidanceScale?: number | null;
235
236
  }
@@ -300,6 +301,7 @@ export interface Model {
300
301
  }
301
302
  export interface Voice {
302
303
  voiceId: string;
304
+ /** Account display name, including a personal alias for a saved public voice. */
303
305
  name: string;
304
306
  origin: string;
305
307
  voiceType: string;
@@ -390,7 +392,10 @@ export interface VoiceClonePreviewRequest {
390
392
  files?: Array<UploadData | UploadFile>;
391
393
  description?: string;
392
394
  removeBackgroundNoise?: boolean;
395
+ /** Reference language hint; audio recognition remains authoritative. */
393
396
  languageCode?: VoiceLanguageCode;
397
+ /** Target hint used when preview text language is uncertain. */
398
+ previewLanguageCode?: VoiceLanguageCode;
394
399
  text?: string;
395
400
  instructions?: string;
396
401
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "0.14.0";
1
+ export declare const SDK_VERSION = "0.15.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.14.0";
1
+ export const SDK_VERSION = "0.15.0";
2
2
  export const SDK_NAME = "@breeze.blue/sdk";
@@ -1,7 +1,7 @@
1
1
  export declare const VOICE_GENDER_CODES: readonly ["male", "female", "neutral"];
2
2
  export declare const VOICE_AGE_CODES: readonly ["child", "young", "middle_aged", "old"];
3
3
  export declare const VOICE_TONE_CODES: readonly ["warm", "calm", "bright", "gentle", "energetic", "authoritative", "sincere", "weary", "precise", "refined", "urgent", "friendly", "articulate", "steady", "playful", "compassionate", "reflective", "measured", "rhythmic", "passionate"];
4
- export declare const VOICE_LANGUAGE_CODES: readonly ["ar", "cs", "de", "el", "en", "es", "fi", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt", "ro", "ru", "th", "tr", "uk", "vi", "zh"];
4
+ export declare const VOICE_LANGUAGE_CODES: readonly ["af", "ar", "bg", "bn", "bs", "ca", "cs", "da", "de", "el", "en", "es", "et", "eu", "fa", "fi", "fr", "gl", "he", "hi", "hu", "id", "is", "it", "ja", "kn", "ko", "lt", "mr", "ms", "ne", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sq", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "ur", "vi", "zh"];
5
5
  export declare const VOICE_TONE_MAX_ITEMS: 3;
6
6
  export declare const VOICE_ACCENT_CODES_BY_LANGUAGE: {
7
7
  readonly en: readonly ["american", "british", "scottish", "irish", "australian", "canadian", "us_southern", "us_new_york", "indian", "south_african", "russian", "japanese", "korean", "chinese"];
@@ -2,7 +2,7 @@
2
2
  export const VOICE_GENDER_CODES = ["male", "female", "neutral"];
3
3
  export const VOICE_AGE_CODES = ["child", "young", "middle_aged", "old"];
4
4
  export const VOICE_TONE_CODES = ["warm", "calm", "bright", "gentle", "energetic", "authoritative", "sincere", "weary", "precise", "refined", "urgent", "friendly", "articulate", "steady", "playful", "compassionate", "reflective", "measured", "rhythmic", "passionate"];
5
- export const VOICE_LANGUAGE_CODES = ["ar", "cs", "de", "el", "en", "es", "fi", "fr", "hi", "id", "it", "ja", "ko", "nl", "pl", "pt", "ro", "ru", "th", "tr", "uk", "vi", "zh"];
5
+ export const VOICE_LANGUAGE_CODES = ["af", "ar", "bg", "bn", "bs", "ca", "cs", "da", "de", "el", "en", "es", "et", "eu", "fa", "fi", "fr", "gl", "he", "hi", "hu", "id", "is", "it", "ja", "kn", "ko", "lt", "mr", "ms", "ne", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sq", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "ur", "vi", "zh"];
6
6
  export const VOICE_TONE_MAX_ITEMS = 3;
7
7
  export const VOICE_ACCENT_CODES_BY_LANGUAGE = {
8
8
  en: ["american", "british", "scottish", "irish", "australian", "canadian", "us_southern", "us_new_york", "indian", "south_african", "russian", "japanese", "korean", "chinese"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeze.blue/sdk",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "ESM-first TypeScript SDK for the Breeze Blue Developer API.",
5
5
  "license": "MIT",
6
6
  "author": "Breeze Blue <support@breezeblue.ai>",