Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    Function buildSpeakableWebPageLd

    • Build a Schema.org SpeakableSpecification as part of a WebPage node. Returns a full WebPage JSON-LD object with speakable.

      CSS selectors identify the TTS-readable regions of the page for voice-assistant surfacing (Google Assistant / Actions for News).

      Parameters

      • url: string
      • inLanguage: string
      • cssSelectors: readonly string[]

      Returns SpeakableWebPageLd

      if cssSelectors is empty or contains blank entries.