mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:10:44 +00:00
refactor: trim voice runtime internal exports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { GoogleGenAI } from "@google/genai";
|
||||
|
||||
export type GoogleGenAIClient = InstanceType<typeof GoogleGenAI>;
|
||||
export type GoogleGenAIOptions = ConstructorParameters<typeof GoogleGenAI>[0];
|
||||
type GoogleGenAIOptions = ConstructorParameters<typeof GoogleGenAI>[0];
|
||||
|
||||
export function createGoogleGenAI(options: GoogleGenAIOptions): GoogleGenAIClient {
|
||||
return new GoogleGenAI(options);
|
||||
|
||||
@@ -791,12 +791,3 @@ export function buildGoogleRealtimeVoiceProvider(): RealtimeVoiceProviderPlugin
|
||||
createBrowserSession: createGoogleRealtimeBrowserSession,
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
GOOGLE_REALTIME_DEFAULT_API_VERSION,
|
||||
GOOGLE_REALTIME_DEFAULT_MODEL,
|
||||
GOOGLE_REALTIME_DEFAULT_VOICE,
|
||||
GOOGLE_REALTIME_BROWSER_API_VERSION,
|
||||
GOOGLE_REALTIME_BROWSER_WEBSOCKET_URL,
|
||||
};
|
||||
export type { GoogleRealtimeVoiceProviderConfig };
|
||||
|
||||
@@ -13,14 +13,14 @@ import {
|
||||
ssrfPolicyFromHttpBaseUrlAllowedHostname,
|
||||
} from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
|
||||
export const DEFAULT_XIAOMI_TTS_BASE_URL = "https://api.xiaomimimo.com/v1";
|
||||
export const DEFAULT_XIAOMI_TTS_MODEL = "mimo-v2.5-tts";
|
||||
export const DEFAULT_XIAOMI_TTS_VOICE = "mimo_default";
|
||||
export const DEFAULT_XIAOMI_TTS_FORMAT = "mp3";
|
||||
const DEFAULT_XIAOMI_TTS_BASE_URL = "https://api.xiaomimimo.com/v1";
|
||||
const DEFAULT_XIAOMI_TTS_MODEL = "mimo-v2.5-tts";
|
||||
const DEFAULT_XIAOMI_TTS_VOICE = "mimo_default";
|
||||
const DEFAULT_XIAOMI_TTS_FORMAT = "mp3";
|
||||
|
||||
export const XIAOMI_TTS_MODELS = ["mimo-v2.5-tts", "mimo-v2-tts"] as const;
|
||||
const XIAOMI_TTS_MODELS = ["mimo-v2.5-tts", "mimo-v2-tts"] as const;
|
||||
|
||||
export const XIAOMI_TTS_VOICES = [
|
||||
const XIAOMI_TTS_VOICES = [
|
||||
"mimo_default",
|
||||
"default_zh",
|
||||
"default_en",
|
||||
@@ -194,7 +194,7 @@ function decodeXiaomiAudioData(body: unknown): Buffer {
|
||||
return Buffer.from(audioData, "base64");
|
||||
}
|
||||
|
||||
export async function xiaomiTTS(params: {
|
||||
async function xiaomiTTS(params: {
|
||||
text: string;
|
||||
apiKey: string;
|
||||
baseUrl: string;
|
||||
|
||||
Reference in New Issue
Block a user