mulmocast 2.1.3 → 2.1.5
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.
|
@@ -5,7 +5,7 @@ import { agentIncorrectAPIKeyError, apiKeyMissingError, agentGenerationError, au
|
|
|
5
5
|
import { pcmToMp3 } from "../utils/ffmpeg_utils.js";
|
|
6
6
|
export const ttsGeminiAgent = async ({ namedInputs, params, config, }) => {
|
|
7
7
|
const { text } = namedInputs;
|
|
8
|
-
const { voice, suppressError } = params;
|
|
8
|
+
const { model, voice, suppressError } = params;
|
|
9
9
|
const apiKey = config?.apiKey;
|
|
10
10
|
if (!apiKey) {
|
|
11
11
|
throw new Error("Google GenAI API key is required (GEMINI_API_KEY)", {
|
|
@@ -15,7 +15,7 @@ export const ttsGeminiAgent = async ({ namedInputs, params, config, }) => {
|
|
|
15
15
|
try {
|
|
16
16
|
const ai = new GoogleGenAI({ apiKey });
|
|
17
17
|
const response = await ai.models.generateContent({
|
|
18
|
-
model:
|
|
18
|
+
model: model ?? provider2TTSAgent.gemini.defaultModel,
|
|
19
19
|
contents: [{ parts: [{ text }] }],
|
|
20
20
|
config: {
|
|
21
21
|
responseModalities: ["AUDIO"],
|
package/lib/data/bgmAssets.js
CHANGED
|
@@ -93,9 +93,33 @@ export const bgmAssets = {
|
|
|
93
93
|
date: "2025-07-17",
|
|
94
94
|
duration: "03:52",
|
|
95
95
|
account: "@snakajima",
|
|
96
|
-
original_license: "
|
|
96
|
+
original_license: "Generated by Suno with commercial use rights (PRO Plan)",
|
|
97
97
|
prompt: "morning, piano solo, Japanese name, sexy",
|
|
98
98
|
model: "v4.5+",
|
|
99
99
|
},
|
|
100
|
+
{
|
|
101
|
+
name: "classical001.mp3",
|
|
102
|
+
title: "Whisper of the Bow",
|
|
103
|
+
url: "https://github.com/receptron/mulmocast-media/raw/refs/heads/main/bgms/classical001.mp3",
|
|
104
|
+
suno_url: "https://suno.com/s/q1CvybIhEpliJLdF",
|
|
105
|
+
date: "2025-10-1",
|
|
106
|
+
duration: "04:32",
|
|
107
|
+
account: "@snakajima",
|
|
108
|
+
original_license: "Generated by Suno with commercial use rights (PRO Plan)",
|
|
109
|
+
prompt: "classical, ballad, dramatic",
|
|
110
|
+
model: "v4.5+",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "classical002.mp3",
|
|
114
|
+
title: "Falling Through Time",
|
|
115
|
+
url: "https://github.com/receptron/mulmocast-media/raw/refs/heads/main/bgms/classical002.mp3",
|
|
116
|
+
suno_url: "https://suno.com/s/FTFd3XBYTGavoO1i",
|
|
117
|
+
date: "2025-10-01",
|
|
118
|
+
duration: "03:11",
|
|
119
|
+
account: "@snakajima",
|
|
120
|
+
original_license: "Generated by Suno with commercial use rights (PRO Plan)",
|
|
121
|
+
prompt: "classical, dramatic, piano-driven",
|
|
122
|
+
model: "v4.5+",
|
|
123
|
+
},
|
|
100
124
|
],
|
|
101
125
|
};
|
package/lib/types/agent.d.ts
CHANGED
|
@@ -21,7 +21,9 @@ export const provider2TTSAgent = {
|
|
|
21
21
|
gemini: {
|
|
22
22
|
agentName: "ttsGeminiAgent",
|
|
23
23
|
hasLimitedConcurrency: false,
|
|
24
|
+
defaultModel: "gemini-2.5-flash-preview-tts",
|
|
24
25
|
defaultVoice: "Kore",
|
|
26
|
+
models: ["gemini-2.5-flash-preview-tts", "gemini-2.5-pro-preview-tts"],
|
|
25
27
|
keyName: "GEMINI_API_KEY",
|
|
26
28
|
},
|
|
27
29
|
elevenlabs: {
|
package/package.json
CHANGED