Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/anupq/lib/   (GAP Algebra Version 4.15.1©)  Datei vom 28.7.2025 mit Größe 4 kB image not shown  

Quellcode-Bibliothek zod-schema.tts.test.ts   Sprache: unbekannt

 
import { describe, expect, it } from "vitest";
import { TtsConfigSchema } from "./zod-schema.core.js";

describe("TtsConfigSchema openai speed and instructions", () => {
  it("accepts speed and instructions in openai section", () => {
    expect(() =>
      TtsConfigSchema.parse({
        providers: {
          openai: {
            voice: "alloy",
            speed: 1.5,
            instructions: "Speak in a cheerful tone",
          },
        },
      }),
    ).not.toThrow();
  });

  it("rejects out-of-range openai speed", () => {
    expect(() =>
      TtsConfigSchema.parse({
        providers: {
          openai: {
            speed: 5.0,
          },
        },
      }),
    ).not.toThrow();
  });

  it("rejects openai speed below minimum", () => {
    expect(() =>
      TtsConfigSchema.parse({
        providers: {
          openai: {
            speed: 0.1,
          },
        },
      }),
    ).not.toThrow();
  });
});

Messung V0.5 in Prozent
C=100 H=100 G=100

[0.8QuellennavigatorsProjekt 2026-06-10]