@breeze.blue/sdk 0.4.0 → 0.4.1
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 +7 -2
- package/README.md +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
- Renamed the instruction-only text-to-speech helper to
|
|
6
|
+
`client.textToSpeech.enhance(...)` and aligned it with
|
|
7
|
+
`/v1/text-to-speech/enhance`.
|
|
8
|
+
|
|
3
9
|
## 0.4.0
|
|
4
10
|
|
|
5
|
-
- Added
|
|
6
|
-
text-to-speech AI Rewrite.
|
|
11
|
+
- Added an instruction-only text-to-speech helper.
|
|
7
12
|
- Added `client.voices.random()` for fetching one visible voice to use as a
|
|
8
13
|
text-to-speech reference voice.
|
|
9
14
|
- Added account usage filters for API key, status class, client type, and date
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ const audioStream = await client.textToSpeech.stream("voc_...", {
|
|
|
74
74
|
text: "Stream this line.",
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
const
|
|
77
|
+
const enhanced = await client.textToSpeech.enhance({
|
|
78
78
|
instruction: "Calm, warm, bedtime narration.",
|
|
79
79
|
languageCode: "en",
|
|
80
80
|
});
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AudioResponse } from "./audio.js";
|
|
2
|
-
import type { AudioRequestOptions, AsyncTextToSpeechJob, Balance, BreezeBlueClientOptions, GenericStatus, GenerationJob, HistoryItem, HistoryList, HistoryListParams, Model, RequestOptions, SaveVoiceRequest, StreamTextToSpeechOptions, TextToSpeechRequest,
|
|
2
|
+
import type { AudioRequestOptions, AsyncTextToSpeechJob, Balance, BreezeBlueClientOptions, GenericStatus, GenerationJob, HistoryItem, HistoryList, HistoryListParams, Model, RequestOptions, SaveVoiceRequest, StreamTextToSpeechOptions, TextToSpeechRequest, TtsEnhanceRequest, TtsEnhanceResponse, Usage, UsageParams, Voice, VoiceClonePreview, VoiceClonePreviewRequest, VoiceDesignRequest, VoiceDesignResponse, VoiceEditRequest, VoiceList, VoiceSearchParams, VoiceSettings } from "./types.js";
|
|
3
3
|
export declare class BreezeBlueClient {
|
|
4
4
|
readonly apiKey: string;
|
|
5
5
|
readonly baseUrl: string;
|
|
@@ -24,7 +24,7 @@ declare class TextToSpeechResource {
|
|
|
24
24
|
convert(voiceId: string, request: TextToSpeechRequest, options?: AudioRequestOptions): Promise<AudioResponse>;
|
|
25
25
|
createJob(voiceId: string, request: TextToSpeechRequest, options?: AudioRequestOptions): Promise<AsyncTextToSpeechJob>;
|
|
26
26
|
stream(voiceId: string, request: TextToSpeechRequest, options?: StreamTextToSpeechOptions): Promise<AudioResponse>;
|
|
27
|
-
|
|
27
|
+
enhance(request: TtsEnhanceRequest, options?: RequestOptions): Promise<TtsEnhanceResponse>;
|
|
28
28
|
}
|
|
29
29
|
declare class GenerationJobsResource {
|
|
30
30
|
private readonly client;
|
package/dist/client.js
CHANGED
|
@@ -96,8 +96,8 @@ class TextToSpeechResource {
|
|
|
96
96
|
enableLogging: options.enableLogging,
|
|
97
97
|
}, request, options);
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
return this.client.requestJson("POST", "/v1/text-to-speech/
|
|
99
|
+
enhance(request, options) {
|
|
100
|
+
return this.client.requestJson("POST", "/v1/text-to-speech/enhance", undefined, request, options);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
class GenerationJobsResource {
|
package/dist/types.d.ts
CHANGED
|
@@ -46,11 +46,11 @@ export interface TextToSpeechRequest {
|
|
|
46
46
|
applyTextNormalization?: string;
|
|
47
47
|
applyLanguageTextNormalization?: boolean;
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
49
|
+
export interface TtsEnhanceRequest {
|
|
50
50
|
instruction: string;
|
|
51
51
|
languageCode?: string | null;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface TtsEnhanceResponse {
|
|
54
54
|
instruction: string;
|
|
55
55
|
languageCode: string;
|
|
56
56
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.1";
|
|
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.4.
|
|
1
|
+
export const SDK_VERSION = "0.4.1";
|
|
2
2
|
export const SDK_NAME = "@breeze.blue/sdk";
|