@contentgrowth/llm-service 1.3.1 → 1.3.2
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/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -61,6 +61,13 @@ declare class BaseLLMProvider {
|
|
|
61
61
|
imageData: string;
|
|
62
62
|
mimeType: string;
|
|
63
63
|
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Text-to-Speech synthesis
|
|
66
|
+
* @param {string} text - Text to synthesize
|
|
67
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
68
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
69
|
+
*/
|
|
70
|
+
textToSpeech(text: string, options?: any): Promise<Buffer>;
|
|
64
71
|
/**
|
|
65
72
|
* Start video generation (returns operation name for polling)
|
|
66
73
|
* @param {string} prompt
|
|
@@ -344,6 +351,14 @@ declare class LLMService {
|
|
|
344
351
|
* @param {Object} options - Generation options (aspectRatio, images, etc.)
|
|
345
352
|
*/
|
|
346
353
|
imageGeneration(prompt: string, tenantId: string, systemPrompt: string, options?: any): Promise<any>;
|
|
354
|
+
/**
|
|
355
|
+
* Text-to-Speech synthesis
|
|
356
|
+
* @param {string} text - Text to synthesize
|
|
357
|
+
* @param {string} tenantId - Tenant identifier
|
|
358
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
359
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
360
|
+
*/
|
|
361
|
+
textToSpeech(text: string, tenantId: string, options?: any): Promise<Buffer>;
|
|
347
362
|
/**
|
|
348
363
|
* Start a Deep Research task
|
|
349
364
|
* @param {string} prompt - Research prompt/query
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ declare class BaseLLMProvider {
|
|
|
61
61
|
imageData: string;
|
|
62
62
|
mimeType: string;
|
|
63
63
|
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Text-to-Speech synthesis
|
|
66
|
+
* @param {string} text - Text to synthesize
|
|
67
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
68
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
69
|
+
*/
|
|
70
|
+
textToSpeech(text: string, options?: any): Promise<Buffer>;
|
|
64
71
|
/**
|
|
65
72
|
* Start video generation (returns operation name for polling)
|
|
66
73
|
* @param {string} prompt
|
|
@@ -344,6 +351,14 @@ declare class LLMService {
|
|
|
344
351
|
* @param {Object} options - Generation options (aspectRatio, images, etc.)
|
|
345
352
|
*/
|
|
346
353
|
imageGeneration(prompt: string, tenantId: string, systemPrompt: string, options?: any): Promise<any>;
|
|
354
|
+
/**
|
|
355
|
+
* Text-to-Speech synthesis
|
|
356
|
+
* @param {string} text - Text to synthesize
|
|
357
|
+
* @param {string} tenantId - Tenant identifier
|
|
358
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
359
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
360
|
+
*/
|
|
361
|
+
textToSpeech(text: string, tenantId: string, options?: any): Promise<Buffer>;
|
|
347
362
|
/**
|
|
348
363
|
* Start a Deep Research task
|
|
349
364
|
* @param {string} prompt - Research prompt/query
|
package/dist/index.js
CHANGED
|
@@ -291,6 +291,15 @@ var BaseLLMProvider = class {
|
|
|
291
291
|
async imageGeneration(prompt, systemPrompt, options = {}) {
|
|
292
292
|
throw new Error("Image generation not supported by this provider");
|
|
293
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Text-to-Speech synthesis
|
|
296
|
+
* @param {string} text - Text to synthesize
|
|
297
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
298
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
299
|
+
*/
|
|
300
|
+
async textToSpeech(text, options = {}) {
|
|
301
|
+
throw new Error("Text-to-speech not supported by this provider");
|
|
302
|
+
}
|
|
294
303
|
/**
|
|
295
304
|
* Start video generation (returns operation name for polling)
|
|
296
305
|
* @param {string} prompt
|
|
@@ -1687,6 +1696,17 @@ var LLMService = class {
|
|
|
1687
1696
|
const provider = await this._getProvider(tenantId);
|
|
1688
1697
|
return provider.imageGeneration(prompt, systemPrompt, options);
|
|
1689
1698
|
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Text-to-Speech synthesis
|
|
1701
|
+
* @param {string} text - Text to synthesize
|
|
1702
|
+
* @param {string} tenantId - Tenant identifier
|
|
1703
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
1704
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
1705
|
+
*/
|
|
1706
|
+
async textToSpeech(text, tenantId, options = {}) {
|
|
1707
|
+
const provider = await this._getProvider(tenantId);
|
|
1708
|
+
return provider.textToSpeech(text, options);
|
|
1709
|
+
}
|
|
1690
1710
|
/**
|
|
1691
1711
|
* Start a Deep Research task
|
|
1692
1712
|
* @param {string} prompt - Research prompt/query
|