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: "gemini-2.5-flash-preview-tts",
18
+ model: model ?? provider2TTSAgent.gemini.defaultModel,
19
19
  contents: [{ parts: [{ text }] }],
20
20
  config: {
21
21
  responseModalities: ["AUDIO"],
@@ -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: "morning, piano solo, Japanese name, sexy",
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
  };
@@ -121,6 +121,7 @@ export type KotodamaTTSAgentParams = TTSAgentParams & {
121
121
  };
122
122
  export type GoogleTTSAgentParams = TTSAgentParams & {
123
123
  speed: number;
124
+ model: string;
124
125
  };
125
126
  export type ElevenlabsTTSAgentParams = TTSAgentParams & {
126
127
  model: string;
@@ -20,7 +20,9 @@ export declare const provider2TTSAgent: {
20
20
  gemini: {
21
21
  agentName: string;
22
22
  hasLimitedConcurrency: boolean;
23
+ defaultModel: string;
23
24
  defaultVoice: string;
25
+ models: string[];
24
26
  keyName: string;
25
27
  };
26
28
  elevenlabs: {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mulmocast",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.node.js",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "Presenter2": {
14
14
  "provider": "gemini",
15
+ "model": "gemini-2.5-pro-preview-tts",
15
16
  "voiceId": "Puck"
16
17
  }
17
18
  }