careervivid 2.1.16 → 2.1.18
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/lib/tts.d.ts +1 -1
- package/dist/lib/tts.d.ts.map +1 -1
- package/dist/lib/tts.js +5 -3
- package/package.json +1 -1
package/dist/lib/tts.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Replay: /speak
|
|
10
10
|
*/
|
|
11
11
|
export declare const AVAILABLE_VOICES: readonly ["Zephyr", "Puck", "Charon", "Kore", "Fenrir", "Aoede", "Orbit", "Stellar", "Leda", "Orus"];
|
|
12
|
-
export declare const AVAILABLE_TTS_MODELS: readonly ["gemini-2.5-flash-preview-tts", "gemini-2.5-pro-preview-tts"];
|
|
12
|
+
export declare const AVAILABLE_TTS_MODELS: readonly ["gemini-3.1-flash-preview-tts", "gemini-3.1-pro-preview-tts", "gemini-2.5-flash-preview-tts", "gemini-2.5-pro-preview-tts"];
|
|
13
13
|
export declare function isVoiceEnabled(): boolean;
|
|
14
14
|
export declare function setVoiceEnabled(on: boolean): void;
|
|
15
15
|
export declare function setLastResponse(text: string): void;
|
package/dist/lib/tts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tts.d.ts","sourceRoot":"","sources":["../../src/lib/tts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,eAAO,MAAM,gBAAgB,sGAWnB,CAAC;AAEX,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"tts.d.ts","sourceRoot":"","sources":["../../src/lib/tts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,eAAO,MAAM,gBAAgB,sGAWnB,CAAC;AAEX,eAAO,MAAM,oBAAoB,uIAKvB,CAAC;AAYX,wBAAgB,cAAc,YAA2B;AACzD,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,QAAwB;AACnE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,QAA0B;AACtE,wBAAgB,eAAe,WAA2B;AAC1D,wBAAgB,eAAe,WAA2B;AAC1D,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,QAAuB;AAChE,wBAAgB,kBAAkB,WAA8B;AAChE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,QAA0B;AA8BtE,wBAAgB,YAAY,SAK3B;AA2DD;;;GAGG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDhF"}
|
package/dist/lib/tts.js
CHANGED
|
@@ -32,15 +32,17 @@ export const AVAILABLE_VOICES = [
|
|
|
32
32
|
"Orus", // Confident, authoritative
|
|
33
33
|
];
|
|
34
34
|
export const AVAILABLE_TTS_MODELS = [
|
|
35
|
-
"gemini-
|
|
36
|
-
"gemini-
|
|
35
|
+
"gemini-3.1-flash-preview-tts", // Latest, fast (default)
|
|
36
|
+
"gemini-3.1-pro-preview-tts", // Latest, highest quality
|
|
37
|
+
"gemini-2.5-flash-preview-tts", // Previous gen, fast
|
|
38
|
+
"gemini-2.5-pro-preview-tts", // Previous gen, high quality
|
|
37
39
|
];
|
|
38
40
|
// ── State ────────────────────────────────────────────────────────────────────
|
|
39
41
|
let voiceEnabled = false;
|
|
40
42
|
let lastResponse = "";
|
|
41
43
|
let playbackProcess = null;
|
|
42
44
|
let currentVoice = "Zephyr";
|
|
43
|
-
let currentTtsModel = "gemini-
|
|
45
|
+
let currentTtsModel = "gemini-3.1-flash-preview-tts";
|
|
44
46
|
// Cache the Gemini key for the session so we don't hit the endpoint every turn
|
|
45
47
|
let cachedGeminiKey = null;
|
|
46
48
|
export function isVoiceEnabled() { return voiceEnabled; }
|
package/package.json
CHANGED