@acedatacloud/sdk 2026.1012.0 → 2026.1018.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/README.md +32 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/audio.ts +1 -0
- package/src/resources/providers/fish.ts +1 -1
package/README.md
CHANGED
|
@@ -181,6 +181,38 @@ with integer billed seconds capped at the requested duration (falling back to
|
|
|
181
181
|
that duration if it cannot be read). All scenarios, actions, and languages have
|
|
182
182
|
the same rate; failed tasks and `/maestro/tasks` polling are free.
|
|
183
183
|
|
|
184
|
+
## Fish voice models
|
|
185
|
+
|
|
186
|
+
`client.fish.model({ title, voices: audioUrl })` creates a reusable voice from a
|
|
187
|
+
single publicly downloadable audio URL string, not an array or a multipart
|
|
188
|
+
upload. Prefer a direct URL ending in `.mp3` or `.wav`. Successful creation
|
|
189
|
+
returns the model object directly (HTTP 201); its `_id` can be used as
|
|
190
|
+
`referenceId` in `client.fish.generate`.
|
|
191
|
+
|
|
192
|
+
Created voices are stored publicly long-term and may be searched and used by
|
|
193
|
+
other users. Omit `visibility`: passing `private` or `unlist` does not make the
|
|
194
|
+
voice private. For temporary reference audio without creating a saved model,
|
|
195
|
+
use `client.fish.generate({ text, references: [{ audio: audioUrl, text: transcript }] })`.
|
|
196
|
+
|
|
197
|
+
`client.audio.listFishModels({ selfOnly: true, pageSize: 20, pageNumber: 1 })`
|
|
198
|
+
lists voices created and saved through this platform by the calling account,
|
|
199
|
+
including voices created with its other API tokens. This only filters the list;
|
|
200
|
+
it does not restrict public use. Results are paginated in reverse creation order;
|
|
201
|
+
`sortBy` supports `created_at` and `task_count`, and `authorId` can further filter
|
|
202
|
+
them. Do not combine `selfOnly: true` with `titleLanguage`; that filter is for
|
|
203
|
+
the public library. Responses contain `total`, `items`, and `has_more`;
|
|
204
|
+
`has_more` is boolean for self queries and may be `null` for public-library queries.
|
|
205
|
+
|
|
206
|
+
## File uploads
|
|
207
|
+
|
|
208
|
+
`client.files.upload(fileBytes, { filename: 'photo.jpg' })` uses the
|
|
209
|
+
management-plane account token, not a generation API key. Use a separate client
|
|
210
|
+
configured with that token. Uploads return `file_url` and `mime`; use the returned
|
|
211
|
+
URL rather than constructing one. The platform assigns an `uploads/<uuid>` path
|
|
212
|
+
and preserves a safe filename extension. Supply a filename matching the actual
|
|
213
|
+
content: MIME inference from the filename does not convert the file. The default
|
|
214
|
+
single-file limit is 100 MB.
|
|
215
|
+
|
|
184
216
|
## Multi-Provider Support
|
|
185
217
|
|
|
186
218
|
Image, video, and audio resources support a `provider` parameter to switch between services:
|
package/dist/index.d.mts
CHANGED
|
@@ -288,6 +288,7 @@ type AudioProvider = 'suno' | 'producer' | 'fish' | (string & {});
|
|
|
288
288
|
declare class Audio {
|
|
289
289
|
private transport;
|
|
290
290
|
constructor(transport: Transport);
|
|
291
|
+
/** selfOnly filters this account's platform-created voices; it does not make them private. */
|
|
291
292
|
listFishModels(opts?: {
|
|
292
293
|
pageSize?: number;
|
|
293
294
|
pageNumber?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -288,6 +288,7 @@ type AudioProvider = 'suno' | 'producer' | 'fish' | (string & {});
|
|
|
288
288
|
declare class Audio {
|
|
289
289
|
private transport;
|
|
290
290
|
constructor(transport: Transport);
|
|
291
|
+
/** selfOnly filters this account's platform-created voices; it does not make them private. */
|
|
291
292
|
listFishModels(opts?: {
|
|
292
293
|
pageSize?: number;
|
|
293
294
|
pageNumber?: number;
|
package/dist/index.js
CHANGED
|
@@ -730,6 +730,7 @@ var Audio = class {
|
|
|
730
730
|
this.transport = transport;
|
|
731
731
|
}
|
|
732
732
|
transport;
|
|
733
|
+
/** selfOnly filters this account's platform-created voices; it does not make them private. */
|
|
733
734
|
async listFishModels(opts = {}) {
|
|
734
735
|
const { pageSize, pageNumber, title, tag, selfOnly, authorId, language, titleLanguage, sortBy } = opts;
|
|
735
736
|
const params = {};
|