Skip to content

Releases: vinuthomas/wp-vt-audio

v1.3.4 — Play stats + audio duration fix

Choose a tag to compare

@vinuthomas vinuthomas released this 01 Jun 18:01

First release since v1.2.0. Adds listen analytics and fixes the audio player's duration/scrubber, plus several edge-case hardening fixes.

✨ Features

  • Play tracking — each first-play is recorded to a dedicated table via a lightweight AJAX endpoint.
  • Stats admin page (Settings → VT Audio Stats) — at-a-glance cards (all-time / month / week / today), preset ranges (Today, Last 7/30 days, This quarter/year, All time) defaulting to last 30 days to keep queries bounded, a custom date filter, and a per-post breakdown with share bars.
  • "Show play count" setting — optionally shows e.g. "248 plays" in the front-end player.
  • Plugins-page links — Settings and Stats now appear on the plugin row; settings grouped into clearer sections.

🐛 Fixes

  • Scrubber / duration — concatenated OpenAI TTS MP3s have no duration header, so browsers reported Infinity and the scrubber thumb and fill didn't line up. The real length is now captured via getID3 at generation time, cached on the post, emitted as data-duration, and used by the player (with a seek-to-end fallback). Existing posts self-heal (lazy backfill) on first view.
  • Front-end fatal — loads wp-admin/includes/media.php before wp_generate_attachment_metadata() so the backfill no longer hits an undefined wp_read_audio_metadata().

🔒 Hardening

  • Per-IP+post flood throttle on the public play endpoint; only published posts are counted.
  • Graceful handling when the audio file or attachment goes missing — the player is hidden instead of rendering a 404, and the editor meta box flags it for regeneration.
  • Accessibility: muted player text now meets WCAG AA contrast on the player surface.

📦 Install

Download vt-audio-1.3.4.zip below and upload via Plugins → Add New → Upload Plugin (replace the current version). Re-enter the OpenAI API key if this is a fresh install; the plays table is created automatically.

v1.2.0 — Configurable skip tags

Choose a tag to compare

@vinuthomas vinuthomas released this 29 May 15:48

What's new

  • Configurable skip tags — Settings → VT Audio now has a Tags to skip field (comma-separated). Previously pre, code, figure, and img were always stripped silently; they now appear as editable defaults so you can add or remove tags freely (e.g. add aside, remove blockquote to read pull quotes aloud).
  • Block elements are stripped including their inner content; void elements like img are stripped as standalone tags.

Upgrade

Upload vt-audio.zip via Plugins → Add New → Upload Plugin and activate. No settings changes required — defaults match prior behaviour.

v1.1.0

Choose a tag to compare

@vinuthomas vinuthomas released this 29 May 13:56

Initial public release of VT Audio.

What's included

  • Single-file WordPress plugin (vt-audio.php)
  • OpenAI TTS integration with tts-1 and tts-1-hd support
  • Sentence-boundary chunking to handle OpenAI's 4096-char limit
  • Custom accessible front-end audio player (no external dependencies)
  • Strips Gutenberg block comments, code blocks, images, and shortcodes before TTS
  • Respects minimum word count and skips image/gallery post formats

Installation

Download vt-audio.zip, upload via Plugins → Add New → Upload Plugin in wp-admin, and enter your OpenAI API key at Settings → VT Audio.