@breeze.blue/sdk 0.8.0 → 0.9.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
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.9.0
6
+
7
+ - Added language-aware voice search and language metadata for voice results,
8
+ preview saves, and saved-voice edits.
9
+
5
10
  ## 0.8.0
6
11
 
7
12
  - Realtime TTS sessions prefer the optional query-free direct WebSocket URL
package/README.md CHANGED
@@ -449,13 +449,14 @@ await save(audio, "preview.mp3");
449
449
  const saved = await client.voices.savePreview({
450
450
  generatedVoiceId,
451
451
  voiceName: "Documentary narrator",
452
+ languageCode: "en",
452
453
  });
453
454
  ```
454
455
 
455
456
  Edit, tune settings, or delete a saved voice:
456
457
 
457
458
  ```ts
458
- await client.voices.edit(saved.voiceId, { name: "Renamed narrator" });
459
+ await client.voices.edit(saved.voiceId, { name: "Renamed narrator", languageCode: "en" });
459
460
  await client.voices.editSettings(saved.voiceId, { guidanceScale: 1.2 });
460
461
  await client.voices.delete(saved.voiceId);
461
462
  ```
package/dist/client.js CHANGED
@@ -1546,6 +1546,7 @@ class VoicesResource {
1546
1546
  primaryCategoryCode: request.primaryCategoryCode,
1547
1547
  visibility: request.visibility,
1548
1548
  playedNotSelectedVoiceIds: request.playedNotSelectedVoiceIds,
1549
+ languageCode: request.languageCode,
1549
1550
  }, options);
1550
1551
  }
1551
1552
  }
@@ -1694,6 +1695,7 @@ function voiceEditForm(request) {
1694
1695
  appendOptional(form, "labels", request.labels ? JSON.stringify(request.labels) : undefined);
1695
1696
  appendOptional(form, "primary_category_code", request.primaryCategoryCode);
1696
1697
  appendOptional(form, "visibility", request.visibility);
1698
+ appendOptional(form, "language_code", request.languageCode);
1697
1699
  for (const file of normalizeFiles(request.file, request.files, { required: false })) {
1698
1700
  appendFile(form, "files", file);
1699
1701
  }
package/dist/types.d.ts CHANGED
@@ -309,6 +309,7 @@ export interface Voice {
309
309
  createdAtUnix?: number | null;
310
310
  primaryCategoryCode?: string | null;
311
311
  visibility?: string | null;
312
+ languageCode: string;
312
313
  [key: string]: unknown;
313
314
  }
314
315
  export interface SavedVoice {
@@ -320,6 +321,7 @@ export interface SavedVoice {
320
321
  createdAtUnix?: number | null;
321
322
  primaryCategoryCode?: string | null;
322
323
  visibility?: string | null;
324
+ languageCode: string;
323
325
  }
324
326
  export interface VoiceList {
325
327
  voices: Voice[];
@@ -331,6 +333,7 @@ export interface VoiceList {
331
333
  }
332
334
  export interface VoiceSearchParams {
333
335
  search?: string;
336
+ languageCode?: string;
334
337
  origin?: "designed" | "cloned" | string;
335
338
  voiceType?: "all" | "default" | "personal" | string;
336
339
  sort?: "created_at_unix" | "name" | string;
@@ -368,6 +371,7 @@ export interface VoiceEditRequest {
368
371
  labels?: Record<string, string>;
369
372
  primaryCategoryCode?: string;
370
373
  visibility?: "private" | "public" | string;
374
+ languageCode?: string;
371
375
  file?: UploadData | UploadFile;
372
376
  files?: Array<UploadData | UploadFile>;
373
377
  }
@@ -401,6 +405,7 @@ export interface SaveVoiceRequest {
401
405
  primaryCategoryCode?: string;
402
406
  visibility?: "private" | "public" | string;
403
407
  playedNotSelectedVoiceIds?: string[];
408
+ languageCode?: string;
404
409
  }
405
410
  export interface HistoryItem {
406
411
  historyItemId: string;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "0.8.0";
1
+ export declare const SDK_VERSION = "0.9.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.8.0";
1
+ export const SDK_VERSION = "0.9.0";
2
2
  export const SDK_NAME = "@breeze.blue/sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeze.blue/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "ESM-first TypeScript SDK for the Breeze Blue Developer API.",
5
5
  "license": "MIT",
6
6
  "author": "Breeze Blue <support@breeze.blue>",