@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.cjs
CHANGED
|
@@ -342,6 +342,15 @@ var BaseLLMProvider = class {
|
|
|
342
342
|
async imageGeneration(prompt, systemPrompt, options = {}) {
|
|
343
343
|
throw new Error("Image generation not supported by this provider");
|
|
344
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* Text-to-Speech synthesis
|
|
347
|
+
* @param {string} text - Text to synthesize
|
|
348
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
349
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
350
|
+
*/
|
|
351
|
+
async textToSpeech(text, options = {}) {
|
|
352
|
+
throw new Error("Text-to-speech not supported by this provider");
|
|
353
|
+
}
|
|
345
354
|
/**
|
|
346
355
|
* Start video generation (returns operation name for polling)
|
|
347
356
|
* @param {string} prompt
|
|
@@ -1738,6 +1747,17 @@ var LLMService = class {
|
|
|
1738
1747
|
const provider = await this._getProvider(tenantId);
|
|
1739
1748
|
return provider.imageGeneration(prompt, systemPrompt, options);
|
|
1740
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Text-to-Speech synthesis
|
|
1752
|
+
* @param {string} text - Text to synthesize
|
|
1753
|
+
* @param {string} tenantId - Tenant identifier
|
|
1754
|
+
* @param {Object} options - TTS options (voice, model, etc.)
|
|
1755
|
+
* @returns {Promise<Buffer>} Audio data as Buffer
|
|
1756
|
+
*/
|
|
1757
|
+
async textToSpeech(text, tenantId, options = {}) {
|
|
1758
|
+
const provider = await this._getProvider(tenantId);
|
|
1759
|
+
return provider.textToSpeech(text, options);
|
|
1760
|
+
}
|
|
1741
1761
|
/**
|
|
1742
1762
|
* Start a Deep Research task
|
|
1743
1763
|
* @param {string} prompt - Research prompt/query
|