PageSourceSearch

https://skrivsikkert.dk/assets/js/shared/tts-module.js?v=20260525-…tts-arrow-silencer-3768-tts-normalizer-3717

js skrivsikkert.dk collected 2026-09-24 12:57:46 UTC 719 bytes, 23 lines download raw bytes

1/**
2 * tts-module.js — Backwards-compatible shim
3 *
4 * Delegates to TTSEngine (tts-engine.js), which is the single source of truth.
5 * Existing code that uses TtsModule.fetchAudio / TtsModule.createPlayer
6 * continues to work without changes.
7 */
8(function() {
9  'use strict';
10
11  if (typeof TTSEngine === 'undefined') {
12    console.error('[tts-module] TTSEngine not loaded — tts-engine.js must be included first');
13    return;
14  }
15
16  window.TtsModule = {
17    fetchAudio: TTSEngine.fetchAudio,
18    createPlayer: TTSEngine.createPlayer,
19    normalizeSpeechText: TTSEngine.normalizeSpeechText,
20    QUALITY_MAP: TTSEngine.QUALITY_MAP,
21    DEFAULT_TTS_FETCH_TIMEOUT_MS: TTSEngine.DEFAULT_TTS_FETCH_TIMEOUT_MS
22  };
23})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.