mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 06:20:42 +00:00
58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
// Public speech helpers for bundled or third-party plugins.
|
|
//
|
|
// Keep this surface provider-facing: types, validation, directive parsing, and
|
|
// registry helpers. Runtime synthesis lives on `api.runtime.tts` or narrower
|
|
// core/runtime seams, not here.
|
|
|
|
export type { SpeechProviderPlugin } from "../plugins/types.js";
|
|
export type {
|
|
SpeechDirectiveTokenParseContext,
|
|
SpeechDirectiveTokenParseResult,
|
|
SpeechListVoicesRequest,
|
|
SpeechModelOverridePolicy,
|
|
SpeechProviderConfig,
|
|
SpeechProviderConfiguredContext,
|
|
SpeechProviderPreparedSynthesis,
|
|
SpeechProviderPrepareSynthesisContext,
|
|
SpeechProviderResolveConfigContext,
|
|
SpeechProviderResolveTalkConfigContext,
|
|
SpeechProviderResolveTalkOverridesContext,
|
|
SpeechProviderOverrides,
|
|
SpeechSynthesisRequest,
|
|
SpeechSynthesisTarget,
|
|
SpeechTelephonySynthesisRequest,
|
|
SpeechVoiceOption,
|
|
TtsDirectiveOverrides,
|
|
TtsDirectiveParseResult,
|
|
} from "../tts/provider-types.js";
|
|
|
|
export { parseTtsDirectives } from "../tts/directives.js";
|
|
export {
|
|
canonicalizeSpeechProviderId,
|
|
getSpeechProvider,
|
|
listSpeechProviders,
|
|
normalizeSpeechProviderId,
|
|
} from "../tts/provider-registry.js";
|
|
export { normalizeTtsAutoMode, TTS_AUTO_MODES } from "../tts/tts-auto-mode.js";
|
|
export {
|
|
asBoolean,
|
|
asFiniteNumber,
|
|
asObject,
|
|
assertOkOrThrowProviderError,
|
|
createProviderHttpError,
|
|
extractProviderErrorDetail,
|
|
extractProviderRequestId,
|
|
formatProviderHttpErrorMessage,
|
|
formatProviderErrorPayload,
|
|
readResponseTextLimited,
|
|
trimToUndefined,
|
|
truncateErrorDetail,
|
|
} from "../agents/provider-http-errors.js";
|
|
export {
|
|
normalizeApplyTextNormalization,
|
|
normalizeLanguageCode,
|
|
normalizeSeed,
|
|
requireInRange,
|
|
scheduleCleanup,
|
|
} from "../tts/tts-provider-helpers.js";
|