mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:00:44 +00:00
feat(tts): resolve channel account config generically
This commit is contained in:
@@ -39,6 +39,7 @@ export {
|
||||
normalizeSpeechProviderId,
|
||||
} from "../tts/provider-registry.js";
|
||||
export { resolveEffectiveTtsConfig } from "../tts/tts-config.js";
|
||||
export type { TtsConfigResolutionContext } from "../tts/tts-config.js";
|
||||
export { normalizeTtsAutoMode, TTS_AUTO_MODES } from "../tts/tts-auto-mode.js";
|
||||
export {
|
||||
asBoolean,
|
||||
|
||||
@@ -6,10 +6,12 @@ import type {
|
||||
TtsDirectiveOverrides,
|
||||
TtsDirectiveParseResult,
|
||||
} from "../tts/provider-types.js";
|
||||
import type { TtsConfigResolutionContext } from "../tts/tts-config.js";
|
||||
import type { ResolvedTtsConfig, ResolvedTtsModelOverrides } from "../tts/tts-types.js";
|
||||
import type { ReplyPayload } from "./reply-payload.js";
|
||||
|
||||
export type { ResolvedTtsConfig, ResolvedTtsModelOverrides };
|
||||
export type { TtsConfigResolutionContext };
|
||||
export type { TtsDirectiveOverrides, TtsDirectiveParseResult };
|
||||
|
||||
export type TtsAttemptReasonCode =
|
||||
@@ -66,6 +68,8 @@ export type ResolveExplicitTtsOverridesParams = {
|
||||
modelId?: string;
|
||||
voiceId?: string;
|
||||
agentId?: string;
|
||||
channelId?: string;
|
||||
accountId?: string;
|
||||
};
|
||||
|
||||
export type TtsRequestParams = {
|
||||
@@ -77,6 +81,7 @@ export type TtsRequestParams = {
|
||||
disableFallback?: boolean;
|
||||
timeoutMs?: number;
|
||||
agentId?: string;
|
||||
accountId?: string;
|
||||
};
|
||||
|
||||
export type TtsTelephonyRequestParams = {
|
||||
@@ -101,6 +106,7 @@ export type MaybeApplyTtsToPayloadParams = {
|
||||
inboundAudio?: boolean;
|
||||
ttsAuto?: string;
|
||||
agentId?: string;
|
||||
accountId?: string;
|
||||
};
|
||||
|
||||
export type TtsTestFacade = {
|
||||
@@ -201,7 +207,10 @@ export type TtsRuntimeFacade = {
|
||||
maybeApplyTtsToPayload: (params: MaybeApplyTtsToPayloadParams) => Promise<ReplyPayload>;
|
||||
resolveExplicitTtsOverrides: (params: ResolveExplicitTtsOverridesParams) => TtsDirectiveOverrides;
|
||||
resolveTtsAutoMode: (params: ResolveTtsAutoModeParams) => TtsAutoMode;
|
||||
resolveTtsConfig: (cfg: OpenClawConfig, agentId?: string) => ResolvedTtsConfig;
|
||||
resolveTtsConfig: (
|
||||
cfg: OpenClawConfig,
|
||||
contextOrAgentId?: string | TtsConfigResolutionContext,
|
||||
) => ResolvedTtsConfig;
|
||||
resolveTtsPrefsPath: (config: ResolvedTtsConfig) => string;
|
||||
resolveTtsProviderOrder: (primary: TtsProvider, cfg?: OpenClawConfig) => TtsProvider[];
|
||||
setLastTtsAttempt: (entry: TtsStatusEntry | undefined) => void;
|
||||
|
||||
Reference in New Issue
Block a user