WebToSpeech

For publishers · Add an audio player to a Laravel blog or site

Add an audio player to your Laravel 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.

  1. Step 1

    Register your domain in WebtoSpeech

    Open Settings → Sites, add your site’s domain, and copy your verification token and ws_ site key.

  2. Step 2

    Verify via Blade layout or DNS

    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">
  3. Step 3

    Add the player to your post Blade view

    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
  4. Step 4

    Expose canonical and updated timestamps

    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() }}">

Good to know on Laravel

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.

Livewire wire:navigate

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.

Zero session or CSRF interaction

WebtoSpeech runs inside a stateless iframe on our domain and never touches your Laravel session cookies or CSRF tokens.

Connect your Laravel RSS feed for a podcast

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.

See everything else the player does

Questions

Do I need to install a Composer package?
No. Two lines of Blade markup are all you need for the embedded player, and your existing RSS route powers the automatic podcast feed.
Does this work with Statamic or Jigsaw?
Yes. Drop the same verification tag and two-line embed snippet into your Antlers or Blade post layout.
How do edits to a post update the audio?
Render your post’s updated_at timestamp in <meta property="article:modified_time">. The next time a visitor presses play after an edit, WebtoSpeech generates fresh audio.

Publisher plan

$29 a month. Unlimited sites.

200 hours of audio a month, every Studio and standard voice, cookie-free embeds, RSS-to-podcast feeds, and play counts.