Works cleanly with response caching
Because the embed is plain HTML and a static script tag, Spatie ResponseCache, Varnish, and Cloudflare page caching work with zero cache-busting logic.
For publishers · Add an audio player to a Laravel blog or site
Drop two lines into your Blade post template—no Composer packages, no database tables, and no cookies added to your responses.
Works with plain Laravel Blade, Livewire, Statamic, Filament blogs, and Jigsaw static sites. Requires the Publisher plan.
Step 1
Open Settings → Sites, add your site’s domain, and copy your verification token and ws_ site key.
Step 2
Paste the verification meta tag into your app layout <head> (or add a DNS TXT record), deploy, and click Verify in WebtoSpeech.
resources/views/layouts/app.blade.php
<meta name="webtospeech-verification" content="your_verification_code">
Step 3
Place the player div where you want it to render and wrap the async script tag in @once so it is only emitted once per page.
resources/views/posts/show.blade.php
<div data-webtospeech></div>
@once
<script src="https://webtospeech.app/embed.js" data-site="ws_your_site_key" async></script>
@endonce
Step 4
Include <link rel="canonical"> and article:modified_time in your post <head> so WebtoSpeech automatically re-reads a post the next time someone plays it after an edit.
resources/views/posts/show.blade.php (<head>)
<meta property="article:modified_time" content="{{ $post->updated_at->toIso8601String() }}">
Because the embed is plain HTML and a static script tag, Spatie ResponseCache, Varnish, and Cloudflare page caching work with zero cache-busting logic.
If your public blog uses Livewire SPA navigation, avoid wire:navigate on links into long-form article pages—or let the article route perform a normal load so embed.js mounts cleanly.
WebtoSpeech runs inside a stateless iframe on our domain and never touches your Laravel session cookies or CSRF tokens.
Serve an RSS or Atom feed (for example with spatie/laravel-feed) and connect it in Settings → Sites → Feed and podcast to auto-generate podcast episodes.
Platform guide
Use next/script and metadata.other in Next.js App Router to add a cookie-free audio player to every MDX or CMS post.
Platform guide
Drop two lines with is:inline into your Astro BlogPost layout—zero hydration overhead and full dark mode support.
Podcast workflow
Connect any verified blog’s RSS or Atom feed to auto-generate episodes for Apple Podcasts, Spotify, and Overcast.
Publisher plan
200 hours of audio a month, every Studio and standard voice, cookie-free embeds, RSS-to-podcast feeds, and play counts.