Skip to content

Commit f5b6a97

Browse files
committed
docs: document tts helpers
1 parent 85e6940 commit f5b6a97

21 files changed

Lines changed: 22 additions & 1 deletion

src/tts/directive-number.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS directive number tests cover parsing numeric speech directives.
12
import { describe, expect, it } from "vitest";
23
import { parseSpeechDirectiveNumberOverride } from "./directive-number.js";
34

src/tts/directive-number.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS directive number helpers parse strict numeric directive values.
12
import { parseStrictFiniteNumber } from "@openclaw/normalization-core/number-coercion";
23
import type {
34
SpeechDirectiveTokenParseContext,

src/tts/directives.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS directive tests cover parsing and applying speech directives.
12
import { describe, expect, it } from "vitest";
23
import type { SpeechProviderPlugin } from "../plugins/types.js";
34
import { createTtsDirectiveTextStreamCleaner, parseTtsDirectives } from "./directives.js";

src/tts/directives.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS directive helpers parse inline speech directives from text.
12
import { normalizeLowercaseStringOrEmpty } from "@openclaw/normalization-core/string-coerce";
23
import type { OpenClawConfig } from "../config/types.js";
34
import type { SpeechProviderPlugin } from "../plugins/types.js";

src/tts/openai-compatible-speech-provider.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// OpenAI-compatible speech provider tests cover speech request and file output.
12
import { afterEach, describe, expect, it, vi } from "vitest";
23
import { createOpenAiCompatibleSpeechProvider } from "./openai-compatible-speech-provider.js";
34

src/tts/openai-compatible-speech-provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// OpenAI-compatible speech provider sends speech synthesis requests to OpenAI-style APIs.
12
import { normalizeOptionalLowercaseString } from "@openclaw/normalization-core/string-coerce";
23
import {
34
assertOkOrThrowHttpError,

src/tts/prepare-text.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS prepare text tests cover text cleanup before speech synthesis.
12
import { describe, expect, it } from "vitest";
23
import { stripMarkdown } from "../shared/text/strip-markdown.js";
34

src/tts/provider-registry-core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS provider registry core stores provider factories and defaults.
12
import type { OpenClawConfig } from "../config/types.js";
23
import {
34
buildCapabilityProviderMaps,

src/tts/provider-registry.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS provider registry tests cover registration and provider resolution.
12
import { beforeEach, describe, expect, it } from "vitest";
23
import type { OpenClawConfig } from "../config/types.js";
34
import type { SpeechProviderPlugin } from "../plugins/types.js";

src/tts/provider-registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TTS provider registry resolves configured speech providers at runtime.
12
import type { OpenClawConfig } from "../config/types.js";
23
import { getActiveRuntimePluginRegistry } from "../plugins/active-runtime-registry.js";
34
import {

0 commit comments

Comments
 (0)