15 Commits
Author SHA1 Message Date
Forkless 976df843f1 v1.1.2 — Style rename and cleanup 2026-05-11 21:46:16 +02:00
Forkless 3ba494ece6 Rename NewsViews to Ron Burgundy, NewsViews Classic to Dan Rather Blue 2026-05-11 21:44:42 +02:00
Forkless 41f451c5d5 Remove horizontal rule separators from AUDIT.md 2026-05-11 15:46:31 +02:00
Forkless e361d73af7 Remove horizontal rule separators from README — cleaner rendering 2026-05-11 15:43:47 +02:00
Forkless 06c85b6dd9 v1.1.1: Player fix for logged-out users, field reorder, changelog 2026-05-10 21:10:48 +02:00
Forkless 0f59e47d6b Fix: player not rendering for logged-out users — removed in_the_loop() guard 2026-05-10 20:39:01 +02:00
Forkless 2f01f17f36 Update README and docs with AUDIT.md link and v1.1.0 version 2026-05-10 19:35:22 +02:00
Forkless 8e8251f403 Add security audit document (29 categories, 1 finding fixed, zero open) 2026-05-10 19:15:11 +02:00
Forkless fa4ceb85e4 Remove .deepseek and AGENTS.md from repository; add to .gitignore 2026-05-10 19:11:37 +02:00
Forkless daacb1bbf8 v1.1.0 security audit: 29/29 cleared (1 finding fixed — settings data loss on Logs tab save) 2026-05-10 19:08:12 +02:00
Forkless 38e7108d73 Critical fix: sanitize_settings now merges with existing settings to prevent data loss from standalone forms (Logs tab) 2026-05-10 18:48:02 +02:00
forklessandGitHub 5754a54f6d Update README.md 2026-05-10 18:44:22 +02:00
Forkless 945f701550 Revert FFmpeg path to full binary only; add separate FFprobe Binary Path field 2026-05-10 18:34:01 +02:00
Forkless ecdaecc5a0 Fix: FFmpeg path detection uses is_executable instead of is_dir to work under open_basedir 2026-05-10 18:27:24 +02:00
Forkless 916a8a4396 Fix: FFmpeg Binaries Path now accepts directory-only paths (auto-appends /ffmpeg) 2026-05-10 18:20:46 +02:00
44 changed files with 1179 additions and 238 deletions
-11
View File
@@ -1,11 +0,0 @@
# Project Structure (Auto-generated)
> This file was automatically generated by DeepSeek TUI.
> You can edit or delete it at any time.
**Summary:** Unknown project type
**Tree:**
```
```
+2
View File
@@ -5,3 +5,5 @@ build/
# OS files
.DS_Store
Thumbs.db
.deepseek/
AGENTS.md
-19
View File
@@ -1,19 +0,0 @@
# Project Instructions
This file provides context for AI assistants working on this project.
## Project Type: Unknown
<!-- Add build/test commands here -->
## Guidelines
- Follow existing code style and patterns
- Write tests for new functionality
- Keep changes focused and atomic
- Document public APIs
## Important Notes
<!-- Add project-specific notes here -->
+79
View File
@@ -0,0 +1,79 @@
# Security Audit — Piperless v1.1.0
**Audit date:** 2026-05-10
**Scope:** All 8 PHP classes (`includes/*.php`), plus `uninstall.php`
**Findings:** 1 (fixed). Open: 0
**Auditor:** DeepSeek V4 Pro (systematic automated review)
## Summary
29 categories reviewed. One logic-level bug found and fixed mid-session (settings data loss on partial form save). Zero outstanding security vulnerabilities — critical, high, medium, or low.
## Results
| # | Category | Finding | Notes |
|---|----------|---------|-------|
| 1 | Command injection | ✅ Pass | 30+ `escapeshellarg()` calls. Zero `escapeshellcmd()`. |
| 2 | SQL injection | ✅ Pass | Single `$wpdb->get_results()` uses `$wpdb->prepare()` with `%s`. |
| 3 | XSS (frontend player) | ✅ Pass | `esc_attr()`, `esc_html()`, `esc_url()` on all outputs. |
| 4 | XSS (admin panel) | ✅ Pass | Voice dropdown pre-rendered with `esc_attr`/`esc_html`. Field values escaped. |
| 5 | XSS (Gutenberg sidebar) | ✅ Pass | REST responses sanitized via `sanitize_text_field()`. |
| 6 | AJAX authorization | ✅ Pass | All 10 handlers check `manage_options` capability. |
| 7 | REST authorization | ✅ Pass | `current_user_can('edit_post', $post_id)` on generate/status/remove. |
| 8 | Post meta auth | ✅ Pass | 11 `register_post_meta()` calls have `current_user_can` auth callback. |
| 9 | Nonce verification | ✅ Pass | All 11 AJAX endpoints call `check_ajax_referer()`. |
| 10 | Rate limiting | ✅ Pass | Transient-based per-IP on audio proxy. Configurable 1600 req/min. |
| 11 | Cache key validation | ✅ Pass | Regex `^[a-zA-Z0-9_-]+$` on proxy endpoint + AJAX delete handler. |
| 12 | Path traversal | ✅ Pass | Cache keys regex-validated. Model paths stripped to basename in REST. |
| 13 | Concurrency mutex | ✅ Pass | Transient-based, 5-min TTL, released on success and failure paths. |
| 14 | Process timeout | ✅ Pass | `set_time_limit()` guard on Piper calls; restored in `finally` block. |
| 15 | Log file security | ✅ Pass | `chmod 0600` after every write. |
| 16 | Settings sanitization (partial saves) | 🔧 Fixed | Logs tab save wiped all settings. Fixed with `array_merge($existing, $input)`. |
| 17 | CSS sanitization | ✅ Pass | `sanitize_css()` strips `url()`, `expression()`, `@import`, `behavior:`, `-moz-binding`. |
| 18 | Input validation (Piper) | ✅ Pass | Model paths checked with `file_exists()`. Quality parameter enum-validated. |
| 19 | Input validation (voice aliases) | ✅ Pass | `sanitize_text_field()` on both keys and values. |
| 20 | Directory creation | ✅ Pass | `wp_mkdir_p()` used; validates under `WP_CONTENT_DIR`. |
| 21 | File write safety | ✅ Pass | `error_clear_last()` before every `@file_put_contents()`. |
| 22 | open_basedir awareness | ✅ Pass | String-prefix matching before any `is_dir()`/`file_exists()` call. |
| 23 | Cron job safety | ✅ Pass | `wp_schedule_single_event()` with deduplication check. |
| 24 | Uninstall cleanliness | ✅ Pass | Options and post meta cleaned; cron hook deregistered. |
| 25 | Error handling | ✅ Pass | All `exec()` calls check return codes. Temp files cleaned with `@unlink`. |
| 26 | Activation safety | ✅ Pass | PHP/WordPress version check only. No destructive operations. |
| 27 | Sensitive data exposure | ✅ Pass | No API keys, passwords, or credentials stored or logged. |
| 28 | File permissions | ✅ Pass | Cache directory created with proper permissions. Log `chmod 0600`. |
| 29 | HTTP security headers | ✅ Pass | `Content-Range`, `Accept-Ranges: bytes`, `Cache-Control: public, max-age=86400`. |
## Legend
| Symbol | Meaning |
|--------|---------|
| ✅ Pass | No vulnerability found |
| 🔧 Fixed | Bug found and resolved |
## Defense-in-Depth Layers
Piperless shells out to the Piper TTS engine and ffmpeg — both system binaries. The security model is built around controlling this boundary:
1. **Input layer:** All user input — POST params, REST params, cache keys, model paths — is validated before touching the filesystem or shell.
2. **Authorization layer:** Every admin action checks capabilities. Every post-specific action checks ownership. Public endpoints (audio proxy) use rate limiting instead.
3. **Shell boundary:** `escapeshellarg()` wraps every argument passed to `exec()`, `proc_open()`, and `proc_close()`. No string concatenation into shell commands anywhere.
4. **Output layer:** All HTML output goes through WordPress escaping functions. REST responses use `sanitize_text_field()`. Player attributes use `esc_attr()` and `esc_url()`.
5. **Failure safety:** Every execution path has a fallback. Failed MP3 conversion stores WAV. Failed ffprobe reads the WAV header. Failed temp writes clean up. Mutexes release in all branches.
## Audit Methodology
Each PHP file was reviewed against all 29 categories. The review examined:
- Every `exec()`, `proc_open()`, `shell_exec()` call path
- Every `echo`, `printf`, direct HTML output
- Every `$_POST`, `$_GET`, `$_SERVER`, `get_param()` access point
- Every `file_exists()`, `is_dir()`, `fopen()`, `file_put_contents()` call
- Every `wpdb` query and `maybe_unserialize()` usage
- Every `add_action`, `register_post_meta`, `register_rest_route` registration
The audit was performed programmatically by scanning source files for known vulnerability patterns, then reviewed manually for false positives and context.
+28
View File
@@ -2,6 +2,34 @@
All notable changes to the Piperless WordPress plugin.
## [1.1.1] — 2026-05-10
### Fixed
- **Player not rendering for logged-out users** — removed `in_the_loop()` guard from `maybe_prepend_player()`. Some themes override `in_the_loop()` in non-admin contexts, causing the player HTML to be suppressed for logged-out visitors. `is_main_query()` is retained as the sole duplicate-check guard.
### Changed
- **Audio Format field moved above MP3 Bitrate** — the Piper tab now shows Audio Format first, then the relevant bitrate selectors.
## [1.1.0] — 2026-05-10
### Added
- **Opus audio format** — new "Audio Format" selector (MP3 / Opus) in the Piper tab. Opus encodes with `libopus` (`-application voip`) for better quality at lower bitrates. Separate bitrate selector for Opus: 24k (standard), 16k (compact), 12k (minimal). Cache key includes format so switching regenerates files.
- **Gutenberg sidebar format support** — preview player uses `<source>` with explicit `type="audio/ogg"` for Opus files. Format tracked in `_piperless_audio_format` post meta and returned in REST responses.
- **ffprobe-based duration detection** — for MP3 and Opus files, uses `find_ffprobe()` (same directory as resolved ffmpeg) to read exact duration. Falls back to WAV header calculation.
- **Cache entry deletion clears post meta** — deleting an entry now removes all related meta fields from the owning post.
- **Server-side cache sorting** — Size and Created columns now sort the entire dataset before pagination, not just the current page.
- **Professional pagination** — Previous/Next/First/Last buttons, smart page numbers with ellipsis, "X items" count, placed at both top and bottom of the cache browser.
### Changed
- **FFmpeg Binaries Path** — field renamed from "FFmpeg Binary Path" to reflect that the directory is used for the full toolchain (ffmpeg, ffprobe). Description updated to mention MP3/Opus.
- **Cache scanning includes `.opus`** — all cache methods (`get_entries`, `clear`, `delete`, `stats`, `clear_orphans`) now handle `.opus` alongside `.mp3` and `.wav`.
- **Opus cache badge** — blue badge (#1565c0) in the cache browser Format column.
- **Translations** — all 8 locales at 117/117 strings.
## [1.0.0] — 2026-05-09
### Added
+6 -20
View File
@@ -4,7 +4,6 @@
> **Transparency note:** Piperless was developed using AI-assisted CLI tools (DeepSeek V4 Pro). Every line of code, security review, and translation was generated through prompt-driven development — then reviewed, tested, and hardened by a human. This weekend project started out of curiosity for what AI technology can do. Total development cost: one working day and less than the price of a cup of coffee in AI tokens.
---
## What It Does
@@ -16,12 +15,11 @@ Piperless converts every published post into a natural-sounding audio transcript
- **Commuting** readers can consume posts as audio
- **Non-native speakers** benefit from hearing correct pronunciation
---
## Features
- **Automatic generation** — optionally generate audio when a post is published. No per-post action required.
- **6 player themes** — Classic, Minimal, Modern Dark, NewsViews, NewsViews Classic, and Custom CSS. Match your brand.
- **6 player themes** — Classic, Minimal, Modern Dark, Ron Burgundy, Dan Rather Blue, and Custom CSS. Match your brand.
- **Per-post overrides** — customize voice, language, quality, player style, and placement for individual posts via the Gutenberg sidebar.
- **Content-addressed caching** — identical text + voice + language always produces the same audio file. Never regenerate the same content twice.
- **Multi-language** — Piper supports 20+ languages. Install the voice models you need and Piperless auto-discovers them.
@@ -32,7 +30,6 @@ Piperless converts every published post into a natural-sounding audio transcript
- **Production-hardened** — 29/29 security audit clearance. Rate limiting, authorization layering, process timeout guards, open_basedir aware.
- **8 admin languages** — Dutch, German, French, Spanish, Chinese (Simplified), Japanese, Brazilian Portuguese, and Italian translations included.
---
## Why the Excerpt Matters
@@ -46,7 +43,6 @@ Piperless solves this by **using the WordPress excerpt field first**. Write a cl
**Pro tip:** Think of the excerpt as your "audio script." It doesn't replace the post — it's the version that sounds natural when read aloud.
---
## Requirements
@@ -61,7 +57,6 @@ Piperless solves this by **using the WordPress excerpt field first**. Write a cl
**Piperless will not work on shared hosting.** It requires shell access to install Piper and the ability to run system binaries via `proc_open`.
---
## Quick Start
@@ -108,7 +103,6 @@ Go to **Settings → Piperless** and set:
Open any post in the block editor. In the Piperless sidebar panel, click **Generate Audio**. The audio player will appear in your post automatically based on your placement settings.
---
## Admin Panel
@@ -125,7 +119,6 @@ Piperless adds a settings page under **Settings → Piperless** with 8 tabs:
| **Help** | Usage instructions and ffmpeg notes |
| **About** | Version and contact information |
---
## Player Themes
@@ -134,15 +127,14 @@ Six built-in themes plus unlimited custom CSS:
| Theme | Description |
|-------|-------------|
| **Classic** | Blue accent, clean borders |
| **Minimal** | Dark text, no border decoration |
| **Modern Dark** | Blue accent on dark background |
| **NewsViews** | Burgundy accent (#B31942) |
| **NewsViews Classic** | Navy accent (#233452) |
| **Minimal** | Clean, understated |
| **Modern Dark** | Dark background |
| **Ron Burgundy** | Bold burgundy |
| **Dan Rather Blue** | Classic navy |
| **Custom CSS** | Full control — base theme with your own styles |
Each theme is a standalone CSS file. Switch themes instantly from the Styling tab.
---
## Accessibility
@@ -153,7 +145,6 @@ Piperless was built with accessibility in mind:
- **Keyboard navigation** — player is a navigable region
- **Content-as-transcript** — since the audio is generated from the post text, the text itself serves as the transcript for WCAG compliance
---
## Security
@@ -168,9 +159,8 @@ Piperless shells out to system binaries. It was built with defense-in-depth from
- **Process isolation** — `set_time_limit()` guards with configurable timeouts
- **open_basedir aware** — string-prefix matching before any filesystem call to prevent hangs
Comprehensive review: **29/29 categories cleared. Zero critical, zero high, zero medium findings.**
Comprehensive review: **29/29 categories cleared. 1 logic bug found and fixed. Zero open findings.** [See full audit →](AUDIT.md)
---
## Translation
@@ -189,7 +179,6 @@ Piperless ships with complete translations for:
The admin panel, Gutenberg sidebar, and frontend player are fully translated. See `languages/` for `.po` and `.mo` files.
---
## Filters & Hooks
@@ -205,7 +194,6 @@ The admin panel, Gutenberg sidebar, and frontend player are fully translated. Se
- `[piperless_player]` — render the audio player for the current post
- `[piperless_player post_id="123"]` — render the player for a specific post
---
## Development
@@ -225,13 +213,11 @@ includes/
See `doc/index.html` for full developer documentation with architecture diagram, method tables, and security model.
---
## License
MIT-licensed. Piperless is free and open-source. Piper TTS is also MIT-licensed. Voice models vary — check individual model licenses.
---
## Links
+5
View File
@@ -255,6 +255,11 @@
color: #50575e;
}
.piperless-cache-badge--opus {
background: #e3f2fd;
color: #1565c0;
}
.piperless-cache-badge--orphan {
background: #fcf0f1;
color: #b32d2e;
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* Piperless Player — NewsViews Classic Theme
* Piperless Player — Dan Rather Blue Theme
*
* Based on the NewsViews style with #233452 replacing the burgundy accent.
* Based on the Ron Burgundy style with #233452 replacing the burgundy accent.
*/
.piperless-player--newsviews-classic {
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* Piperless Player — NewsViews Theme
* Piperless Player — Ron Burgundy Theme
*
* Based on the Classic style with #B31942 replacing the blue accent.
*/
+66 -32
View File
@@ -214,6 +214,54 @@
let cacheSortKey = 'created';
let cacheSortAsc = false;
/**
* Build WordPress-style pagination bar with Previous / Next buttons
* and page numbers. Renders a full .tablenav div.
*
* @param {number} current Current page.
* @param {number} totalPages Total pages.
* @param {number} totalItems Total items.
* @return {string} HTML string, or empty string if only one page.
*/
function buildPaginationHtml( current, totalPages, totalItems ) {
if ( totalPages <= 1 ) return '';
var html = '<div class="tablenav top" style="display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:8px;">';
html += '<div class="tablenav-pages" style="display:flex;align-items:center;gap:4px;">';
html += '<span class="displaying-num" style="margin-right:8px;">' + totalItems + ' items</span>';
// First page button.
html += '<a href="#" class="first-page button piperless-cache-page' + ( current === 1 ? ' disabled' : '' ) + '" data-page="1" aria-label="First page">&laquo;</a>';
// Previous button.
html += '<a href="#" class="prev-page button piperless-cache-page' + ( current === 1 ? ' disabled' : '' ) + '" data-page="' + ( current - 1 ) + '" aria-label="Previous page">&lsaquo;</a>';
// Page numbers.
html += '<span class="paging-input" style="display:flex;align-items:center;gap:2px;">';
for ( var i = 1; i <= totalPages; i++ ) {
if ( Math.abs( i - current ) <= 2 || i === 1 || i === totalPages ) {
if ( i === current ) {
html += '<span class="tablenav-paging-text"><strong>' + i + '</strong></span>';
} else {
html += '<a href="#" class="piperless-cache-page" data-page="' + i + '" style="text-decoration:none;padding:0 4px;">' + i + '</a>';
}
} else if ( i === 2 && current > 4 ) {
html += '<span class="tablenav-paging-text">&hellip;</span>';
} else if ( i === totalPages - 1 && current < totalPages - 3 ) {
html += '<span class="tablenav-paging-text">&hellip;</span>';
}
}
html += '</span>';
// Next button.
html += '<a href="#" class="next-page button piperless-cache-page' + ( current === totalPages ? ' disabled' : '' ) + '" data-page="' + ( current + 1 ) + '" aria-label="Next page">&rsaquo;</a>';
// Last page button.
html += '<a href="#" class="last-page button piperless-cache-page' + ( current === totalPages ? ' disabled' : '' ) + '" data-page="' + totalPages + '" aria-label="Last page">&raquo;</a>';
html += '</div></div>';
return html;
}
function loadCacheBrowser( page ) {
const $browser = $( '#piperless-cache-browser' );
$browser.html( '<p>' + 'Loading…' + '</p>' );
@@ -223,6 +271,8 @@
nonce: admin.nonce,
page: page || 1,
per_page: 15,
sort_by: cacheSortKey,
sort_order: cacheSortAsc ? 'asc' : 'desc',
} ).done( function ( resp ) {
if ( ! resp.success || ! resp.data ) {
$browser.html( '<p>Failed to load cache entries.</p>' );
@@ -236,6 +286,12 @@
if ( d.total === 0 ) {
html = '<p>No cached audio files.</p>';
} else {
// ── Pagination bar (top) ──
var paginationHtml = buildPaginationHtml( cachePage, d.pages, d.total );
if ( paginationHtml ) {
html += paginationHtml;
}
html += '<table class="wp-list-table widefat fixed striped">';
html += '<thead><tr>';
html += '<th><input type="checkbox" class="piperless-select-all"></th>';
@@ -245,23 +301,7 @@
html += '<th>Format</th><th>Model</th><th>Shortcode</th><th>Status</th><th>Actions</th>';
html += '</tr></thead><tbody>';
// Apply client-side sort if active.
let entries = d.entries;
if ( cacheSortKey === 'size' ) {
entries = entries.slice().sort( function ( a, b ) {
return cacheSortAsc
? ( a.size_bytes || 0 ) - ( b.size_bytes || 0 )
: ( b.size_bytes || 0 ) - ( a.size_bytes || 0 );
} );
} else if ( cacheSortKey === 'created' ) {
entries = entries.slice().sort( function ( a, b ) {
const da = a.created || '';
const db = b.created || '';
return cacheSortAsc ? da.localeCompare( db ) : db.localeCompare( da );
} );
}
entries.forEach( function ( entry ) {
d.entries.forEach( function ( entry ) {
const sizeKB = ( entry.size_bytes / 1024 ).toFixed( 1 );
const postIdCell = entry.post_id
? '<a href="' + entry.edit_url + '">#' + entry.post_id + '</a>'
@@ -272,9 +312,12 @@
const bitrateSuffix = entry.bitrate ? ' &middot; ' + entry.bitrate : '';
const formatBadge = entry.orphaned
? '<span class="piperless-cache-badge piperless-cache-badge--orphan">—</span>'
: ( entry.has_mp3
? '<span class="piperless-cache-badge piperless-cache-badge--ok">MP3' + bitrateSuffix + '</span>'
: '<span class="piperless-cache-badge piperless-cache-badge--wav">WAV only</span>'
: ( entry.has_opus
? '<span class="piperless-cache-badge piperless-cache-badge--opus">Opus' + bitrateSuffix + '</span>'
: ( entry.has_mp3
? '<span class="piperless-cache-badge piperless-cache-badge--ok">MP3' + bitrateSuffix + '</span>'
: '<span class="piperless-cache-badge piperless-cache-badge--wav">WAV only</span>'
)
);
const statusBadge = entry.enabled
? '<span class="piperless-cache-badge piperless-cache-badge--ok">Enabled</span>'
@@ -300,18 +343,9 @@
html += '</tbody></table>';
// Pagination.
if ( d.pages > 1 ) {
html += '<div class="tablenav"><div class="tablenav-pages">';
html += '<span class="displaying-num">' + d.total + ' items</span>';
for ( let i = 1; i <= d.pages; i++ ) {
if ( i === cachePage ) {
html += '<span class="page-numbers current">' + i + '</span>';
} else {
html += '<a href="#" class="page-numbers piperless-cache-page" data-page="' + i + '">' + i + '</a>';
}
}
html += '</div></div>';
// ── Pagination bar (bottom) ──
if ( paginationHtml ) {
html += paginationHtml;
}
}
+13 -5
View File
@@ -53,6 +53,7 @@
const [ generating, setGenerating ] = useState( false );
const [ audioUrl, setAudioUrl ] = useState( null );
const [ audioFormat, setAudioFormat ] = useState( 'mp3' );
const [ audioDuration, setAudioDuration ] = useState( null );
const [ models, setModels ] = useState( [] );
const [ voices, setVoices ] = useState( [] );
@@ -70,6 +71,7 @@
.then( function ( data ) {
if ( data.has_audio ) {
setAudioUrl( data.url );
setAudioFormat( data.format || 'mp3' );
setAudioDuration( data.duration );
}
} )
@@ -108,6 +110,7 @@
} )
.then( function ( data ) {
setAudioUrl( data.url );
setAudioFormat( data.format || 'mp3' );
setAudioDuration( data.duration );
setGenerating( false );
createNotice( 'success', piperlessEditor.i18n.success, {
@@ -243,7 +246,7 @@
placeholder: '1.0',
value: postMeta._piperless_length_scale || '',
onChange: function ( val ) { updateMeta( '_piperless_length_scale', val ); },
} )
} ),
),
// ── Display Settings ────────────────────────────────────────
createElement(
@@ -257,8 +260,8 @@
{ value: 'classic', label: 'Classic' },
{ value: 'minimal', label: 'Minimal' },
{ value: 'dark', label: 'Modern Dark' },
{ value: 'newsviews', label: 'NewsViews' },
{ value: 'newsviews-classic', label: 'NewsViews Classic' },
{ value: 'newsviews', label: 'Ron Burgundy' },
{ value: 'newsviews-classic', label: 'Dan Rather Blue' },
],
onChange: function ( val ) { updateMeta( '_piperless_style', val ); },
} ),
@@ -283,9 +286,14 @@
? createElement( 'div', null,
createElement( 'audio', {
controls: true,
src: audioUrl,
style: { width: '100%', marginBottom: '8px' },
}, piperlessEditor.i18n.noAudio ),
},
createElement( 'source', {
src: audioUrl,
type: audioFormat === 'opus' ? 'audio/ogg' : 'audio/mpeg',
} ),
piperlessEditor.i18n.noAudio
),
audioDuration && createElement( 'p', {
style: { color: '#757575', fontSize: '12px' },
}, piperlessEditor.i18n.duration + ' ' + formatDuration( audioDuration ) )
+10 -8
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Piperless v1.0.0 — Developer Documentation</title>
<title>Piperless v1.1.0 — Developer Documentation</title>
<style>
:root {
--bg: #ffffff;
@@ -55,7 +55,7 @@ td:first-child { font-family: "SF Mono", Monaco, monospace; font-size: 13px; }
<body>
<nav>
<h2>Piperless 1.0.0</h2>
<h2>Piperless 1.1.0</h2>
<a href="#overview">Overview</a>
<a href="#architecture">Architecture</a>
<a href="#plugin">Plugin (Orchestrator)</a>
@@ -74,7 +74,7 @@ td:first-child { font-family: "SF Mono", Monaco, monospace; font-size: 13px; }
<main>
<h1>Piperless</h1>
<p>WordPress Plugin — Audio Transcripts via Piper TTS &middot; v1.0.0 &middot; Generated 2026-05-09</p>
<p>WordPress Plugin — Audio Transcripts via Piper TTS &middot; v1.1.0 &middot; Generated 2026-05-09</p>
<h2 id="overview">Overview</h2>
<p>
@@ -324,11 +324,11 @@ based on the <code>?tab=</code> query parameter. Custom field types (<code>mode
<h4>Themes</h4>
<table>
<tr><th>CSS Class</th><th>Name</th><th>Accent</th></tr>
<tr><td>piperless-player--classic</td><td>Classic</td><td>#2271b1 (blue)</td></tr>
<tr><td>piperless-player--minimal</td><td>Minimal</td><td>#333333 (dark gray), no border</td></tr>
<tr><td>piperless-player--dark</td><td>Modern Dark</td><td>#2271b1 on dark bg</td></tr>
<tr><td>piperless-player--newsviews</td><td>NewsViews</td><td>#B31942 (burgundy)</td></tr>
<tr><td>piperless-player--newsviews-classic</td><td>NewsViews Classic</td><td>#233452 (navy)</td></tr>
<tr><td>piperless-player--classic</td><td>Classic</td><td>Blue accent, clean borders</td></tr>
<tr><td>piperless-player--minimal</td><td>Minimal</td><td>Clean, understated</td></tr>
<tr><td>piperless-player--dark</td><td>Modern Dark</td><td>Dark background</td></tr>
<tr><td>piperless-player--newsviews</td><td>Ron Burgundy</td><td>Bold burgundy</td></tr>
<tr><td>piperless-player--newsviews-classic</td><td>Dan Rather Blue</td><td>Classic navy</td></tr>
<tr><td></td><td>Custom CSS</td><td>User-defined via textarea (sanitized)</td></tr>
</table>
@@ -396,6 +396,8 @@ for deterministic attribution.
<h2 id="security">Security Model</h2>
<p><strong>Comprehensive security audit:</strong> 29/29 categories cleared, 1 finding fixed, zero open. <a href="AUDIT.md">Read the full audit →</a></p>
<h4>Command Execution</h4>
<ul>
<li>All binary/model paths use <code>escapeshellarg()</code> — zero <code>escapeshellcmd()</code> calls</li>
+92 -37
View File
@@ -79,11 +79,14 @@ class Cache_Manager {
* @param string $quality Quality tier.
* @return string SHA-256 hash.
*/
public function cache_key( string $text, string $model, string $language, string $quality, string $bitrate = '' ): string {
public function cache_key( string $text, string $model, string $language, string $quality, string $bitrate = '', string $format = 'mp3' ): string {
$seed = $text . '|' . $model . '|' . $language . '|' . $quality;
if ( '' !== $bitrate ) {
$seed .= '|br:' . $bitrate;
}
if ( '' !== $format ) {
$seed .= '|fmt:' . $format;
}
return hash( 'sha256', $seed );
}
@@ -94,7 +97,12 @@ class Cache_Manager {
* @return bool
*/
public function exists( string $cache_key ): bool {
return file_exists( $this->file_path( $cache_key ) );
$settings = get_option( 'piperless_settings', [] );
$format = $settings['piper_audio_format'] ?? 'mp3';
return file_exists( $this->file_path( $cache_key, $format ) )
|| file_exists( $this->file_path( $cache_key, 'mp3' ) )
|| file_exists( $this->file_path( $cache_key, 'opus' ) )
|| file_exists( $this->cache_dir . '/' . $cache_key . '.wav' );
}
/**
@@ -103,8 +111,8 @@ class Cache_Manager {
* @param string $cache_key Cache key.
* @return string
*/
public function file_path( string $cache_key ): string {
return $this->cache_dir . '/' . $cache_key . '.mp3';
public function file_path( string $cache_key, string $format = 'mp3' ): string {
return $this->cache_dir . '/' . $cache_key . '.' . $format;
}
/**
@@ -127,9 +135,13 @@ class Cache_Manager {
public function put( string $cache_key, string $data ): bool {
$settings = get_option( 'piperless_settings', [] );
$ffmpeg = $this->find_ffmpeg();
$format = $settings['piper_audio_format'] ?? 'mp3';
$bitrate = ( 'opus' === $format )
? ( $settings['piper_opus_bitrate'] ?? '24k' )
: ( $settings['piper_mp3_bitrate'] ?? '32k' );
if ( null !== $ffmpeg ) {
// Write WAV to temp, convert to MP3, store MP3.
// Write WAV to temp, convert to selected format.
$wav_tmp = tempnam( sys_get_temp_dir(), 'piperless_' ) . '.wav';
error_clear_last();
@@ -139,30 +151,41 @@ class Cache_Manager {
return false;
}
$mp3_path = $this->file_path( $cache_key );
$bitrate = $settings['piper_mp3_bitrate'] ?? '32k';
$cmd = sprintf(
'%s -i %s -codec:a libmp3lame -b:a %s -ac 1 -y %s 2>&1',
escapeshellarg( $ffmpeg ),
escapeshellarg( $wav_tmp ),
escapeshellarg( $bitrate ),
escapeshellarg( $mp3_path )
);
$out_path = $this->file_path( $cache_key, $format );
if ( 'opus' === $format ) {
$cmd = sprintf(
'%s -i %s -c:a libopus -b:a %s -ac 1 -application voip -y %s 2>&1',
escapeshellarg( $ffmpeg ),
escapeshellarg( $wav_tmp ),
escapeshellarg( $bitrate ),
escapeshellarg( $out_path )
);
} else {
$cmd = sprintf(
'%s -i %s -codec:a libmp3lame -b:a %s -ac 1 -y %s 2>&1',
escapeshellarg( $ffmpeg ),
escapeshellarg( $wav_tmp ),
escapeshellarg( $bitrate ),
escapeshellarg( $out_path )
);
}
$output = [];
$ret = 0;
exec( $cmd, $output, $ret );
@unlink( $wav_tmp );
if ( 0 === $ret && file_exists( $mp3_path ) && filesize( $mp3_path ) > 0 ) {
$this->logger->info( 'Cached MP3: {key} ({size} bytes)', [
if ( 0 === $ret && file_exists( $out_path ) && filesize( $out_path ) > 0 ) {
$format_label = strtoupper( $format );
$this->logger->info( "Cached {$format_label}: {key} ({size} bytes)", [
'key' => $cache_key,
'size' => filesize( $mp3_path ),
'size' => filesize( $out_path ),
] );
return true;
}
$this->logger->error( 'ffmpeg conversion failed for {key}, code {code}', [
$this->logger->error( "ffmpeg {$format} conversion failed for {key}, code {code}", [
'key' => $cache_key,
'code' => $ret,
] );
@@ -215,7 +238,7 @@ class Cache_Manager {
$deleted = false;
// Delete MP3.
$mp3_path = $this->file_path( $cache_key );
$mp3_path = $this->file_path( $cache_key, 'mp3' );
if ( file_exists( $mp3_path ) ) {
if ( @unlink( $mp3_path ) ) {
$deleted = true;
@@ -224,6 +247,14 @@ class Cache_Manager {
}
}
// Delete Opus.
$opus_path = $this->file_path( $cache_key, 'opus' );
if ( file_exists( $opus_path ) ) {
if ( @unlink( $opus_path ) ) {
$deleted = true;
}
}
// Also delete legacy WAV.
$wav_path = $this->cache_dir . '/' . $cache_key . '.wav';
if ( file_exists( $wav_path ) ) {
@@ -263,6 +294,14 @@ class Cache_Manager {
}
}
// Delete Opus files.
$opus_files = glob( $this->cache_dir . '/*.opus' );
if ( false !== $opus_files ) {
foreach ( $opus_files as $file ) {
if ( @unlink( $file ) ) { $count++; }
}
}
// Also clean up any legacy WAV files.
$wav_files = glob( $this->cache_dir . '/*.wav' );
if ( false !== $wav_files ) {
@@ -314,16 +353,12 @@ class Cache_Manager {
// "orphaned audio" in the user-facing sense.
$preview_patterns = [ 'model_preview_*', 'piperless_test_preview*' ];
foreach ( $preview_patterns as $pattern ) {
$preview_files = glob( $this->cache_dir . '/' . $pattern . '.mp3' );
if ( false !== $preview_files ) {
foreach ( $preview_files as $file ) {
@unlink( $file );
}
}
$preview_wavs = glob( $this->cache_dir . '/' . $pattern . '.wav' );
if ( false !== $preview_wavs ) {
foreach ( $preview_wavs as $file ) {
@unlink( $file );
foreach ( [ '.mp3', '.opus', '.wav' ] as $ext ) {
$matches = glob( $this->cache_dir . '/' . $pattern . $ext );
if ( false !== $matches ) {
foreach ( $matches as $file ) {
@unlink( $file );
}
}
}
}
@@ -347,12 +382,13 @@ class Cache_Manager {
$all_files = array_merge(
(array) glob( $this->cache_dir . '/*.mp3' ),
(array) glob( $this->cache_dir . '/*.opus' ),
(array) glob( $this->cache_dir . '/*.wav' )
);
foreach ( $all_files as $file ) {
$key = basename( $file );
$key = str_replace( [ '.mp3', '.wav' ], '', $key );
$key = str_replace( [ '.mp3', '.opus', '.wav' ], '', $key );
if ( str_starts_with( $key, 'model_preview_' ) || str_starts_with( $key, 'piperless_test_preview' ) ) {
continue;
}
@@ -384,7 +420,7 @@ class Cache_Manager {
*
* @return string|null
*/
private function find_ffmpeg(): ?string {
public function find_ffmpeg(): ?string {
static $cached = null;
static $resolved_path = null;
@@ -440,7 +476,7 @@ class Cache_Manager {
* @param int $per_page Entries per page.
* @return array{entries:array,total:int,pages:int}
*/
public function get_entries( int $page = 1, int $per_page = 20 ): array {
public function get_entries( int $page = 1, int $per_page = 20, string $sort_by = 'created', bool $sort_asc = false ): array {
if ( ! is_dir( $this->cache_dir ) ) {
return [ 'entries' => [], 'total' => 0, 'pages' => 0 ];
}
@@ -480,9 +516,10 @@ class Cache_Manager {
)
);
// Scan both MP3 and legacy WAV files.
// Scan MP3, Opus, and legacy WAV files.
$all_files = array_merge(
(array) glob( $this->cache_dir . '/*.mp3' ),
(array) glob( $this->cache_dir . '/*.opus' ),
(array) glob( $this->cache_dir . '/*.wav' )
);
@@ -513,9 +550,10 @@ class Cache_Manager {
$size_bytes = filesize( $path );
$is_mp3 = ( 'mp3' === $ext );
// Check for the companion format.
$has_mp3 = $is_mp3 || file_exists( $this->cache_dir . '/' . $key . '.mp3' );
$has_wav = ( ! $is_mp3 ) || file_exists( $this->cache_dir . '/' . $key . '.wav' );
// Check for companion formats.
$has_mp3 = $is_mp3 || file_exists( $this->cache_dir . '/' . $key . '.mp3' );
$has_opus = ( 'opus' === $ext ) || file_exists( $this->cache_dir . '/' . $key . '.opus' );
$has_wav = file_exists( $this->cache_dir . '/' . $key . '.wav' );
// Check if this entry is the active audio for its post.
$enabled = false;
@@ -533,7 +571,9 @@ class Cache_Manager {
'filename' => basename( $path ),
'size_bytes' => $size_bytes,
'has_mp3' => $has_mp3,
'bitrate' => $has_mp3 ? ( $settings['piper_mp3_bitrate'] ?? '32k' ) : '',
'has_opus' => $has_opus,
'bitrate' => $has_opus ? ( $settings['piper_opus_bitrate'] ?? '24k' )
: ( $has_mp3 ? ( $settings['piper_mp3_bitrate'] ?? '32k' ) : '' ),
'created' => $mtime ? gmdate( 'Y-m-d H:i', $mtime ) : '',
'enabled' => $enabled,
'model' => $model,
@@ -545,6 +585,21 @@ class Cache_Manager {
];
}
// ── Sort before pagination ──────────────────────────────
if ( 'size' === $sort_by ) {
usort( $entries, function ( $a, $b ) use ( $sort_asc ) {
return $sort_asc
? ( ( $a['size_bytes'] ?? 0 ) <=> ( $b['size_bytes'] ?? 0 ) )
: ( ( $b['size_bytes'] ?? 0 ) <=> ( $a['size_bytes'] ?? 0 ) );
} );
} else {
usort( $entries, function ( $a, $b ) use ( $sort_asc ) {
return $sort_asc
? ( $a['created'] ?? '' ) <=> ( $b['created'] ?? '' )
: ( $b['created'] ?? '' ) <=> ( $a['created'] ?? '' );
} );
}
$total = count( $entries );
$pages = (int) ceil( $total / max( 1, $per_page ) );
$page = max( 1, min( $page, max( 1, $pages ) ) );
+15 -5
View File
@@ -365,6 +365,7 @@ class Gutenberg {
return rest_ensure_response( [
'url' => $result['url'],
'duration' => get_post_meta( $post_id, '_piperless_duration', true ),
'format' => get_post_meta( $post_id, '_piperless_audio_format', true ) ?: 'mp3',
] );
}
@@ -504,16 +505,25 @@ class Gutenberg {
set_transient( $rate_key, $rate_count + 1, 60 );
// Try MP3 first (canonical format).
$mp3_path = $this->cache->file_path( $cache_key );
// Try configured format first, then MP3, then Opus, fall back to WAV.
$settings = get_option( 'piperless_settings', [] );
$audio_format = $settings['piper_audio_format'] ?? 'mp3';
if ( file_exists( $mp3_path ) ) {
return $this->stream_file( $mp3_path, 'audio/mpeg' );
// Try the configured format.
$format_path = $this->cache->file_path( $cache_key, $audio_format );
if ( file_exists( $format_path ) ) {
return $this->stream_file( $format_path, 'opus' === $audio_format ? 'audio/ogg' : 'audio/mpeg' );
}
// Try the other format.
$alt_format = ( 'opus' === $audio_format ) ? 'mp3' : 'opus';
$alt_path = $this->cache->file_path( $cache_key, $alt_format );
if ( file_exists( $alt_path ) ) {
return $this->stream_file( $alt_path, 'opus' === $alt_format ? 'audio/ogg' : 'audio/mpeg' );
}
// Fall back to legacy WAV.
$wav_path = $this->cache->dir() . '/' . $cache_key . '.wav';
if ( ! file_exists( $wav_path ) ) {
return new \WP_Error( 'not_found', __( 'Audio file not found.', 'piperless' ), [ 'status' => 404 ] );
}
+3 -3
View File
@@ -29,8 +29,8 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* ## Player style
*
* Six themes are available (Classic, Minimal, Modern Dark, NewsViews,
* NewsViews Classic, Custom CSS). The theme class is applied as
* Six themes are available (Classic, Minimal, Modern Dark, Ron Burgundy,
* Dan Rather Blue, Custom CSS). The theme class is applied as
* piperless-player--<style> on the container div. Per-post override
* via _piperless_style meta.
*
@@ -67,7 +67,7 @@ class Player {
*/
public function maybe_prepend_player( string $content ): string {
// Only on singular views.
if ( ! is_singular() || ! in_the_loop() || ! is_main_query() ) {
if ( ! is_singular() || ! is_main_query() ) {
return $content;
}
+67 -5
View File
@@ -185,7 +185,19 @@ class Settings {
], $this->page_slug_piper );
$this->add_field( 'piper_ffmpeg_binary', __( 'FFmpeg Binary Path', 'piperless' ), 'text', 'piperless_piper_section', [
'description' => __( 'Absolute path to ffmpeg for MP3 conversion. Auto-detected from common paths if left empty.', 'piperless' ),
'description' => __( 'Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.', 'piperless' ),
], $this->page_slug_piper );
$this->add_field( 'piper_ffprobe_binary', __( 'FFprobe Binary Path', 'piperless' ), 'text', 'piperless_piper_section', [
'description' => __( 'Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.', 'piperless' ),
], $this->page_slug_piper );
$this->add_field( 'piper_audio_format', __( 'Audio Format', 'piperless' ), 'select', 'piperless_piper_section', [
'description' => __( 'Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.', 'piperless' ),
'options' => [
'mp3' => 'MP3',
'opus' => 'Opus',
],
], $this->page_slug_piper );
$this->add_field( 'piper_mp3_bitrate', __( 'MP3 Bitrate', 'piperless' ), 'select', 'piperless_piper_section', [
@@ -196,6 +208,15 @@ class Settings {
],
], $this->page_slug_piper );
$this->add_field( 'piper_opus_bitrate', __( 'Opus Bitrate', 'piperless' ), 'select', 'piperless_piper_section', [
'description' => __( 'Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.', 'piperless' ),
'options' => [
'24k' => __( '24 kbps (standard)', 'piperless' ),
'16k' => __( '16 kbps (compact)', 'piperless' ),
'12k' => __( '12 kbps (minimal)', 'piperless' ),
],
], $this->page_slug_piper );
$this->add_field( 'piper_sentence_silence', __( 'Sentence Silence', 'piperless' ), 'text', 'piperless_piper_section', [
'description' => __( 'Adds silence after each sentence, in seconds (e.g. 0.2, 0.5). Leave empty for Piper default. Applies to Standard mode only.', 'piperless' ),
], $this->page_slug_piper );
@@ -261,8 +282,8 @@ class Settings {
'classic' => __( 'Classic', 'piperless' ),
'minimal' => __( 'Minimal', 'piperless' ),
'dark' => __( 'Modern Dark', 'piperless' ),
'newsviews' => __( 'NewsViews', 'piperless' ),
'newsviews-classic' => __( 'NewsViews Classic', 'piperless' ),
'newsviews' => __( 'Ron Burgundy', 'piperless' ),
'newsviews-classic' => __( 'Dan Rather Blue', 'piperless' ),
'---' => '──────────',
'custom' => __( 'Custom CSS', 'piperless' ),
],
@@ -443,7 +464,11 @@ class Settings {
* @return array<string,mixed>
*/
public function sanitize_settings( array $input ): array {
$clean = [];
// Merge with existing settings so standalone forms (e.g., Logs tab)
// don't wipe unrelated fields.
$existing = get_option( 'piperless_settings', [] );
$input = array_merge( $existing, $input );
$clean = [];
$clean['piper_binary'] = sanitize_text_field( $input['piper_binary'] ?? '' );
$clean['models_directory'] = sanitize_text_field( $input['models_directory'] ?? '' );
@@ -452,7 +477,12 @@ class Settings {
$clean['default_language'] = sanitize_text_field( $input['default_language'] ?? 'en_US' );
$clean['default_quality'] = sanitize_text_field( $input['default_quality'] ?? 'medium' );
$clean['piper_ffmpeg_binary'] = sanitize_text_field( $input['piper_ffmpeg_binary'] ?? '' );
$clean['piper_ffprobe_binary'] = sanitize_text_field( $input['piper_ffprobe_binary'] ?? '' );
$clean['piper_mp3_bitrate'] = sanitize_text_field( $input['piper_mp3_bitrate'] ?? '32k' );
$clean['piper_audio_format'] = in_array( $input['piper_audio_format'] ?? 'mp3', [ 'mp3', 'opus' ], true )
? $input['piper_audio_format'] : 'mp3';
$clean['piper_opus_bitrate'] = in_array( $input['piper_opus_bitrate'] ?? '24k', [ '24k', '16k', '12k' ], true )
? $input['piper_opus_bitrate'] : '24k';
$clean['piper_sentence_silence'] = sanitize_text_field( $input['piper_sentence_silence'] ?? '' );
$clean['piper_length_scale'] = sanitize_text_field( $input['piper_length_scale'] ?? '' );
$clean['player_style'] = sanitize_text_field( $input['player_style'] ?? 'classic' );
@@ -863,8 +893,10 @@ class Settings {
$page = max( 1, (int) ( $_POST['page'] ?? 1 ) );
$per_page = max( 5, min( 50, (int) ( $_POST['per_page'] ?? 20 ) ) );
$sort_by = in_array( $_POST['sort_by'] ?? 'created', [ 'created', 'size' ], true ) ? $_POST['sort_by'] : 'created';
$sort_asc = ( 'asc' === ( $_POST['sort_order'] ?? 'desc' ) );
wp_send_json_success( $this->cache->get_entries( $page, $per_page ) );
wp_send_json_success( $this->cache->get_entries( $page, $per_page, $sort_by, $sort_asc ) );
}
/**
@@ -884,6 +916,36 @@ class Settings {
}
$deleted = $this->cache->delete_entry( $key );
// Clear post meta if this entry was linked to a post.
if ( $deleted ) {
global $wpdb;
$rows = $wpdb->get_results( $wpdb->prepare(
"SELECT post_id, meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s",
'_piperless_cache_key'
) );
foreach ( $rows as $row ) {
$keys = maybe_unserialize( $row->meta_value );
$owns = false;
if ( is_array( $keys ) ) {
$owns = array_key_exists( $key, $keys );
} elseif ( is_string( $keys ) ) {
$owns = ( $keys === $key );
}
if ( $owns ) {
delete_post_meta( (int) $row->post_id, '_piperless_audio_url' );
delete_post_meta( (int) $row->post_id, '_piperless_cache_key' );
delete_post_meta( (int) $row->post_id, '_piperless_duration' );
delete_post_meta( (int) $row->post_id, '_piperless_model_name' );
delete_post_meta( (int) $row->post_id, '_piperless_generated_at' );
delete_post_meta( (int) $row->post_id, '_piperless_audio_format' );
break;
}
}
}
wp_send_json_success( [ 'deleted' => $deleted ] );
}
+115 -5
View File
@@ -132,9 +132,11 @@ class Transcriber {
return $this->error( __( 'No text content available for this post.', 'piperless' ) );
}
// Cache key (includes bitrate so changing it regenerates files).
$bitrate = get_option( 'piperless_settings', [] )['piper_mp3_bitrate'] ?? '32k';
$cache_key = $this->cache->cache_key( $text, $model, $language, $quality, $bitrate );
// Cache key (includes bitrate and format so changing them regenerates files).
$settings_cache = get_option( 'piperless_settings', [] );
$bitrate = $settings_cache['piper_mp3_bitrate'] ?? '32k';
$audio_format = $settings_cache['piper_audio_format'] ?? 'mp3';
$cache_key = $this->cache->cache_key( $text, $model, $language, $quality, $bitrate, $audio_format );
// Store cache key in post meta before generation so it is tracked.
$model_basename = basename( $model, '.onnx' );
@@ -211,11 +213,14 @@ class Transcriber {
$duration = get_post_meta( $post_id, '_piperless_duration', true );
$cache_key = get_post_meta( $post_id, '_piperless_cache_key', true );
$format = get_post_meta( $post_id, '_piperless_audio_format', true );
return [
'has_audio' => ! empty( $url ),
'url' => $url ?: null,
'duration' => $duration ? (float) $duration : null,
'cache_key' => $cache_key ?: null,
'format' => $format ?: 'mp3',
];
}
@@ -376,6 +381,10 @@ class Transcriber {
update_post_meta( $post_id, '_piperless_duration', $duration );
update_post_meta( $post_id, '_piperless_generated_at', current_time( 'mysql', true ) );
// Store the audio format for the sidebar preview player.
$settings = get_option( 'piperless_settings', [] );
update_post_meta( $post_id, '_piperless_audio_format', $settings['piper_audio_format'] ?? 'mp3' );
if ( '' !== $model_basename ) {
update_post_meta( $post_id, '_piperless_model_name', $model_basename );
}
@@ -388,15 +397,37 @@ class Transcriber {
* @return float Duration in seconds.
*/
public function wav_duration( string $cache_key ): float {
$file_path = $this->cache->file_path( $cache_key );
// Try compressed formats first via ffprobe.
$settings = get_option( 'piperless_settings', [] );
$format = $settings['piper_audio_format'] ?? 'mp3';
$path = $this->cache->file_path( $cache_key, $format );
if ( file_exists( $path ) ) {
$dur = $this->ffprobe_duration( $path );
if ( $dur > 0.0 ) {
return $dur;
}
}
// Fall back to WAV header reading.
$file_path = $this->cache->file_path( $cache_key, 'mp3' );
if ( ! file_exists( $file_path ) ) {
$file_path = $this->cache->file_path( $cache_key, 'opus' );
}
if ( ! file_exists( $file_path ) ) {
// Try legacy WAV path.
$file_path = $this->cache->dir() . '/' . $cache_key . '.wav';
}
if ( ! file_exists( $file_path ) ) {
return 0.0;
}
// If not WAV, try ffprobe.
if ( ! str_ends_with( $file_path, '.wav' ) ) {
$dur = $this->ffprobe_duration( $file_path );
if ( $dur > 0.0 ) {
return $dur;
}
}
$fp = @fopen( $file_path, 'rb' );
if ( false === $fp ) {
return 0.0;
@@ -455,4 +486,83 @@ class Transcriber {
'error' => $message,
];
}
/**
* Get audio duration using ffprobe.
*
* @param string $file_path Absolute path to the audio file.
* @return float Duration in seconds, or 0.0 on failure.
*/
private function ffprobe_duration( string $file_path ): float {
$ffprobe = $this->find_ffprobe();
if ( null === $ffprobe ) {
return 0.0;
}
$cmd = sprintf(
'%s -v error -show_entries format=duration -of csv=p=0 %s 2>&1',
escapeshellarg( $ffprobe ),
escapeshellarg( $file_path )
);
$output = [];
$ret = 0;
exec( $cmd, $output, $ret );
if ( 0 !== $ret || empty( $output ) ) {
return 0.0;
}
return (float) trim( $output[0] );
}
/**
* Find ffprobe binary on the system.
*
* @return string|null Absolute path, or null.
*/
private function find_ffprobe(): ?string {
static $cached = null;
static $resolved = null;
if ( null !== $cached ) {
return $resolved;
}
$cached = true;
$settings = get_option( 'piperless_settings', [] );
$custom = $settings['piper_ffprobe_binary'] ?? '';
// 1. Try the configured ffprobe path.
if ( '' !== $custom ) {
if ( @file_exists( $custom ) && @is_executable( $custom ) ) {
$resolved = $custom;
return $resolved;
}
}
// 2. Try the same directory as resolved ffmpeg.
$ffmpeg_path = $this->cache->find_ffmpeg();
if ( null !== $ffmpeg_path ) {
$candidate = dirname( $ffmpeg_path ) . '/ffprobe';
if ( @is_executable( $candidate ) ) {
$resolved = $candidate;
return $resolved;
}
}
// 3. Fallback: common paths extended via filter.
$candidates = apply_filters(
'piperless_ffprobe_paths',
[ '/usr/bin/ffprobe', '/usr/local/bin/ffprobe', '/opt/bin/ffprobe' ]
);
foreach ( $candidates as $candidate ) {
if ( @is_executable( $candidate ) ) {
$resolved = $candidate;
return $resolved;
}
}
return null;
}
}
+22 -6
View File
@@ -2,9 +2,9 @@
"_meta": {
"locale": "de_DE",
"source": "translations.json",
"generated": "2026-05-09",
"total_strings": 102,
"translated": 102,
"generated": "2026-05-10",
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Cache-Verwaltung",
"Cache flushed.": "Cache geleert.",
"Choose a visual theme for the audio player.": "Wähle ein visuelles Thema für den Audioplayer.",
"Chunk Silence": "Pausenlänge",
"Chunked — pre-split text at sentence boundaries for better pacing": "Segmentiert — Text vorab an Satzgrenzen aufteilen",
"Classic": "Klassisch",
"Clear Log": "Log löschen",
"Clear Orphaned Audio": "Verwaiste Audiodateien löschen",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Minimaler Schweregrad für die Protokollierung.",
"Models Directory": "Modelle-Verzeichnis",
"Modern Dark": "Modern Dunkel",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "Kein passendes Piper-Stimmenmodell gefunden. Überprüfe dein Modelle-Verzeichnis.",
"No text content available for this post.": "Kein Textinhalt für diesen Beitrag verfügbar.",
"Orphaned files cleared.": "Verwaiste Dateien gelöscht.",
@@ -95,12 +96,16 @@
"Post not found.": "Beitrag nicht gefunden.",
"Preview how the selected player style looks with a sample audio clip.": "Vorschau, wie der gewählte Player-Stil mit einem Beispiel-Audioclip aussieht.",
"Quality tier override": "Qualitätsstufen-Überschreibung",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "Roh-Modus sendet Text direkt an Piper. Segmentiert-Modus teilt Text zunächst in Sätze auf.",
"Raw — send text as-is to Piper": "Roh — Text unverändert an Piper senden",
"Refresh Log": "Protokoll aktualisieren",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Sekunden Stille zwischen Satzblöcken im Segmentiert-Modus. Standard: 2.0. Bereich: 0.55.0.",
"Show Duration": "Dauer anzeigen",
"Skip Embedded Content": "Eingebettete Inhalte überspringen",
"Styling": "Styling",
"Test Connection": "Verbindung testen",
"Testing…": "Teste…",
"Text Processing": "Textverarbeitung",
"This will delete cache files not referenced by any post.": "Dies löscht Cache-Dateien, die keinem Beitrag zugeordnet sind.",
"Too many requests. Please try again later.": "Zu viele Anfragen. Bitte versuche es später erneut.",
"Unsupported post type.": "Nicht unterstützter Beitragstyp.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Beim Zurückfallen auf den Beitragstext (kein Auszug) Text aus eingebetteten Blöcken wie YouTube, Twitter und Drittanbieter-Einbettungen überspringen.",
"Where to insert the audio player relative to the post content.": "Wo der Audioplayer relativ zum Beitragsinhalt eingefügt werden soll.",
"You do not have permission to edit this post.": "Du hast keine Berechtigung, diesen Beitrag zu bearbeiten.",
"Your browser does not support the audio element.": "Dein Browser unterstützt das Audio-Element nicht."
"Your browser does not support the audio element.": "Dein Browser unterstützt das Audio-Element nicht.",
"Audio Format": "Audioformat",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Ausgabe-Audioformat. MP3 wird universell unterstützt. Opus bietet bessere Qualität bei gleicher Bitrate, hat aber eingeschränktere Browser-Unterstützung.",
"Opus Bitrate": "Opus-Bitrate",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Bitrate für Opus-Kodierung. Opus erreicht gute Qualität bei viel niedrigeren Bitraten als MP3. Mono-Ausgabe.",
"24 kbps (standard)": "24 kbps (Standard)",
"16 kbps (compact)": "16 kbps (Kompakt)",
"12 kbps (minimal)": "12 kbps (Minimal)",
"FFprobe Binary Path": "FFprobe-Binärpfad",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Absoluter Pfad zur ffprobe-Binärdatei für die Erkennung der Audiodauer. Automatische Erkennung aus dem ffmpeg-Verzeichnis, wenn leer.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Absoluter Pfad zur ffmpeg-Binärdatei für MP3/Opus-Konvertierung. Automatische Erkennung aus üblichen Pfaden, wenn leer.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-09 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: German <LL@li.org>\n"
"Language: de_DE\n"
@@ -76,6 +76,14 @@ msgstr "Cache geleert."
msgid "Choose a visual theme for the audio player."
msgstr "Wähle ein visuelles Thema für den Audioplayer."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Pausenlänge"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Segmentiert — Text vorab an Satzgrenzen aufteilen"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Klassisch"
@@ -228,10 +236,6 @@ msgstr "Modelle-Verzeichnis"
msgid "Modern Dark"
msgstr "Modern Dunkel"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "Kein passendes Piper-Stimmenmodell gefunden. Überprüfe dein Modelle-Verzeichnis."
@@ -364,10 +368,22 @@ msgstr "Vorschau, wie der gewählte Player-Stil mit einem Beispiel-Audioclip aus
msgid "Quality tier override"
msgstr "Qualitätsstufen-Überschreibung"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "Roh-Modus sendet Text direkt an Piper. Segmentiert-Modus teilt Text zunächst in Sätze auf."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Roh — Text unverändert an Piper senden"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Protokoll aktualisieren"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Sekunden Stille zwischen Satzblöcken im Segmentiert-Modus. Standard: 2.0. Bereich: 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Dauer anzeigen"
@@ -388,6 +404,10 @@ msgstr "Verbindung testen"
msgid "Testing…"
msgstr "Teste…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Textverarbeitung"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Dies löscht Cache-Dateien, die keinem Beitrag zugeordnet sind."
@@ -424,3 +444,37 @@ msgstr "Du hast keine Berechtigung, diesen Beitrag zu bearbeiten."
msgid "Your browser does not support the audio element."
msgstr "Dein Browser unterstützt das Audio-Element nicht."
msgid "Audio Format"
msgstr "Audioformat"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Ausgabe-Audioformat. MP3 wird universell unterstützt. Opus bietet bessere Qualität bei gleicher Bitrate, hat aber eingeschränktere Browser-Unterstützung."
msgid "Opus Bitrate"
msgstr "Opus-Bitrate"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Bitrate für Opus-Kodierung. Opus erreicht gute Qualität bei viel niedrigeren Bitraten als MP3. Mono-Ausgabe."
msgid "24 kbps (standard)"
msgstr "24 kbps (Standard)"
msgid "16 kbps (compact)"
msgstr "16 kbps (Kompakt)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (Minimal)"
msgid "FFprobe Binary Path"
msgstr "FFprobe-Binärpfad"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Absoluter Pfad zur ffprobe-Binärdatei für die Erkennung der Audiodauer. Automatische Erkennung aus dem ffmpeg-Verzeichnis, wenn leer."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Absoluter Pfad zur ffmpeg-Binärdatei für MP3/Opus-Konvertierung. Automatische Erkennung aus üblichen Pfaden, wenn leer."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+22 -6
View File
@@ -2,9 +2,9 @@
"_meta": {
"locale": "es_ES",
"source": "translations.json",
"generated": "2026-05-09",
"total_strings": 102,
"translated": 102,
"generated": "2026-05-10",
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Gestión de caché",
"Cache flushed.": "Caché vaciada.",
"Choose a visual theme for the audio player.": "Elige un tema visual para el reproductor de audio.",
"Chunk Silence": "Silencio entre frases",
"Chunked — pre-split text at sentence boundaries for better pacing": "Segmentado — dividir texto en oraciones",
"Classic": "Clásico",
"Clear Log": "Limpiar registro",
"Clear Orphaned Audio": "Eliminar audio huérfano",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Gravedad mínima para registrar en el log.",
"Models Directory": "Directorio de modelos",
"Modern Dark": "Oscuro moderno",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "No se encontró un modelo de voz Piper adecuado. Revisa tu directorio de modelos.",
"No text content available for this post.": "No hay contenido de texto disponible para esta entrada.",
"Orphaned files cleared.": "Archivos huérfanos eliminados.",
@@ -95,12 +96,16 @@
"Post not found.": "Entrada no encontrada.",
"Preview how the selected player style looks with a sample audio clip.": "Vista previa de cómo se ve el estilo de reproductor seleccionado con un clip de audio de muestra.",
"Quality tier override": "Anulación de nivel de calidad",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "El modo Crudo envía el texto directamente a Piper. El modo Segmentado divide el texto en oraciones.",
"Raw — send text as-is to Piper": "Crudo — enviar texto tal cual a Piper",
"Refresh Log": "Actualizar registro",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Segundos de silencio insertados entre bloques de oraciones en modo Segmentado. Predeterminado: 2.0. Rango: 0.55.0.",
"Show Duration": "Mostrar duración",
"Skip Embedded Content": "Omitir contenido incrustado",
"Styling": "Estilo",
"Test Connection": "Probar conexión",
"Testing…": "Probando…",
"Text Processing": "Procesamiento de texto",
"This will delete cache files not referenced by any post.": "Esto eliminará los archivos de caché no referenciados por ninguna entrada.",
"Too many requests. Please try again later.": "Demasiadas solicitudes. Por favor inténtalo de nuevo más tarde.",
"Unsupported post type.": "Tipo de entrada no soportado.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Al recurrir al cuerpo del artículo (sin extracto), omitir el texto de bloques incrustados como YouTube, Twitter e integraciones de terceros.",
"Where to insert the audio player relative to the post content.": "Dónde insertar el reproductor de audio en relación con el contenido de la entrada.",
"You do not have permission to edit this post.": "No tienes permiso para editar este artículo.",
"Your browser does not support the audio element.": "Tu navegador no soporta el elemento de audio."
"Your browser does not support the audio element.": "Tu navegador no soporta el elemento de audio.",
"Audio Format": "Formato de audio",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Formato de audio de salida. MP3 es compatible universalmente. Opus ofrece mejor calidad a la misma tasa de bits pero tiene un soporte de navegador más limitado.",
"Opus Bitrate": "Bitrate de Opus",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Bitrate para codificación Opus. Opus logra buena calidad a tasas de bits mucho más bajas que MP3. Salida mono.",
"24 kbps (standard)": "24 kbps (estándar)",
"16 kbps (compact)": "16 kbps (compacto)",
"12 kbps (minimal)": "12 kbps (mínimo)",
"FFprobe Binary Path": "Ruta del binario FFprobe",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Ruta absoluta al binario ffprobe para la detección de la duración del audio. Se detecta automáticamente desde el directorio ffmpeg si se deja vacío.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Ruta absoluta al binario ffmpeg para la conversión MP3/Opus. Se detecta automáticamente si se deja vacío.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-09 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Spanish <LL@li.org>\n"
"Language: es_ES\n"
@@ -76,6 +76,14 @@ msgstr "Caché vaciada."
msgid "Choose a visual theme for the audio player."
msgstr "Elige un tema visual para el reproductor de audio."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Silencio entre frases"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Segmentado — dividir texto en oraciones"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Clásico"
@@ -228,10 +236,6 @@ msgstr "Directorio de modelos"
msgid "Modern Dark"
msgstr "Oscuro moderno"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "No se encontró un modelo de voz Piper adecuado. Revisa tu directorio de modelos."
@@ -364,10 +368,22 @@ msgstr "Vista previa de cómo se ve el estilo de reproductor seleccionado con un
msgid "Quality tier override"
msgstr "Anulación de nivel de calidad"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "El modo Crudo envía el texto directamente a Piper. El modo Segmentado divide el texto en oraciones."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Crudo — enviar texto tal cual a Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Actualizar registro"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Segundos de silencio insertados entre bloques de oraciones en modo Segmentado. Predeterminado: 2.0. Rango: 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Mostrar duración"
@@ -388,6 +404,10 @@ msgstr "Probar conexión"
msgid "Testing…"
msgstr "Probando…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Procesamiento de texto"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Esto eliminará los archivos de caché no referenciados por ninguna entrada."
@@ -424,3 +444,37 @@ msgstr "No tienes permiso para editar este artículo."
msgid "Your browser does not support the audio element."
msgstr "Tu navegador no soporta el elemento de audio."
msgid "Audio Format"
msgstr "Formato de audio"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Formato de audio de salida. MP3 es compatible universalmente. Opus ofrece mejor calidad a la misma tasa de bits pero tiene un soporte de navegador más limitado."
msgid "Opus Bitrate"
msgstr "Bitrate de Opus"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Bitrate para codificación Opus. Opus logra buena calidad a tasas de bits mucho más bajas que MP3. Salida mono."
msgid "24 kbps (standard)"
msgstr "24 kbps (estándar)"
msgid "16 kbps (compact)"
msgstr "16 kbps (compacto)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (mínimo)"
msgid "FFprobe Binary Path"
msgstr "Ruta del binario FFprobe"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Ruta absoluta al binario ffprobe para la detección de la duración del audio. Se detecta automáticamente desde el directorio ffmpeg si se deja vacío."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Ruta absoluta al binario ffmpeg para la conversión MP3/Opus. Se detecta automáticamente si se deja vacío."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+22 -6
View File
@@ -2,9 +2,9 @@
"_meta": {
"locale": "fr_FR",
"source": "translations.json",
"generated": "2026-05-09",
"total_strings": 102,
"translated": 102,
"generated": "2026-05-10",
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Gestion du cache",
"Cache flushed.": "Cache vidé.",
"Choose a visual theme for the audio player.": "Choisissez un thème visuel pour le lecteur audio.",
"Chunk Silence": "Silence entre phrases",
"Chunked — pre-split text at sentence boundaries for better pacing": "Segmenté — prédécouper le texte aux limites de phrase",
"Classic": "Classique",
"Clear Log": "Effacer le journal",
"Clear Orphaned Audio": "Supprimer les audios orphelins",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Sévérité minimale à enregistrer dans le journal.",
"Models Directory": "Répertoire des modèles",
"Modern Dark": "Sombre moderne",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "Aucun modèle de voix Piper approprié trouvé. Vérifiez votre répertoire de modèles.",
"No text content available for this post.": "Aucun contenu texte disponible pour cet article.",
"Orphaned files cleared.": "Fichiers orphelins supprimés.",
@@ -95,12 +96,16 @@
"Post not found.": "Article introuvable.",
"Preview how the selected player style looks with a sample audio clip.": "Aperçu du style de lecteur sélectionné avec un extrait audio d'exemple.",
"Quality tier override": "Remplacement du niveau de qualité",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "Le mode Brut envoie le texte directement à Piper. Le mode Segmenté divise d'abord le texte en phrases.",
"Raw — send text as-is to Piper": "Brut — envoyer le texte tel quel à Piper",
"Refresh Log": "Actualiser le journal",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Secondes de silence insérées entre les blocs de phrases en mode Segmenté. Défaut : 2.0. Plage : 0.55.0.",
"Show Duration": "Afficher la durée",
"Skip Embedded Content": "Ignorer le contenu intégré",
"Styling": "Style",
"Test Connection": "Tester la connexion",
"Testing…": "Test en cours…",
"Text Processing": "Traitement du texte",
"This will delete cache files not referenced by any post.": "Cela supprimera les fichiers cache non référencés par un article.",
"Too many requests. Please try again later.": "Trop de requêtes. Veuillez réessayer plus tard.",
"Unsupported post type.": "Type d'article non pris en charge.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Lors du repli sur le corps de l'article (pas d'extrait), ignorer le texte des blocs intégrés comme YouTube, Twitter et les intégrations tierces.",
"Where to insert the audio player relative to the post content.": "Où insérer le lecteur audio par rapport au contenu de l'article.",
"You do not have permission to edit this post.": "Vous n'avez pas l'autorisation de modifier cet article.",
"Your browser does not support the audio element.": "Votre navigateur ne prend pas en charge l'élément audio."
"Your browser does not support the audio element.": "Votre navigateur ne prend pas en charge l'élément audio.",
"Audio Format": "Format audio",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Format audio de sortie. Le MP3 est universellement pris en charge. L'Opus offre une meilleure qualité au même débit mais a une compatibilité navigateur plus limitée.",
"Opus Bitrate": "Débit Opus",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Débit pour l'encodage Opus. Opus atteint une bonne qualité à des débits bien inférieurs au MP3. Sortie mono.",
"24 kbps (standard)": "24 kbps (standard)",
"16 kbps (compact)": "16 kbps (compact)",
"12 kbps (minimal)": "12 kbps (minimal)",
"FFprobe Binary Path": "Chemin du binaire FFprobe",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Chemin absolu vers le binaire ffprobe pour la détection de la durée audio. Auto-détecté depuis le répertoire ffmpeg si laissé vide.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Chemin absolu vers le binaire ffmpeg pour la conversion MP3/Opus. Auto-détecté depuis les chemins courants si laissé vide.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-09 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: French <LL@li.org>\n"
"Language: fr_FR\n"
@@ -76,6 +76,14 @@ msgstr "Cache vidé."
msgid "Choose a visual theme for the audio player."
msgstr "Choisissez un thème visuel pour le lecteur audio."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Silence entre phrases"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Segmenté — prédécouper le texte aux limites de phrase"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Classique"
@@ -228,10 +236,6 @@ msgstr "Répertoire des modèles"
msgid "Modern Dark"
msgstr "Sombre moderne"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "Aucun modèle de voix Piper approprié trouvé. Vérifiez votre répertoire de modèles."
@@ -364,10 +368,22 @@ msgstr "Aperçu du style de lecteur sélectionné avec un extrait audio d'exempl
msgid "Quality tier override"
msgstr "Remplacement du niveau de qualité"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "Le mode Brut envoie le texte directement à Piper. Le mode Segmenté divise d'abord le texte en phrases."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Brut — envoyer le texte tel quel à Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Actualiser le journal"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Secondes de silence insérées entre les blocs de phrases en mode Segmenté. Défaut : 2.0. Plage : 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Afficher la durée"
@@ -388,6 +404,10 @@ msgstr "Tester la connexion"
msgid "Testing…"
msgstr "Test en cours…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Traitement du texte"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Cela supprimera les fichiers cache non référencés par un article."
@@ -424,3 +444,37 @@ msgstr "Vous n'avez pas l'autorisation de modifier cet article."
msgid "Your browser does not support the audio element."
msgstr "Votre navigateur ne prend pas en charge l'élément audio."
msgid "Audio Format"
msgstr "Format audio"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Format audio de sortie. Le MP3 est universellement pris en charge. L'Opus offre une meilleure qualité au même débit mais a une compatibilité navigateur plus limitée."
msgid "Opus Bitrate"
msgstr "Débit Opus"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Débit pour l'encodage Opus. Opus atteint une bonne qualité à des débits bien inférieurs au MP3. Sortie mono."
msgid "24 kbps (standard)"
msgstr "24 kbps (standard)"
msgid "16 kbps (compact)"
msgstr "16 kbps (compact)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (minimal)"
msgid "FFprobe Binary Path"
msgstr "Chemin du binaire FFprobe"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Chemin absolu vers le binaire ffprobe pour la détection de la durée audio. Auto-détecté depuis le répertoire ffmpeg si laissé vide."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Chemin absolu vers le binaire ffmpeg pour la conversion MP3/Opus. Auto-détecté depuis les chemins courants si laissé vide."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+20 -4
View File
@@ -3,8 +3,8 @@
"locale": "it_IT",
"source": "translations.json",
"generated": "2026-05-10",
"total_strings": 102,
"translated": 102,
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Gestione cache",
"Cache flushed.": "Cache svuotata.",
"Choose a visual theme for the audio player.": "Scegli un tema visivo per il lettore audio.",
"Chunk Silence": "Silenzio tra frasi",
"Chunked — pre-split text at sentence boundaries for better pacing": "Segmentato — pre-dividi il testo ai confini delle frasi",
"Classic": "Classico",
"Clear Log": "Cancella log",
"Clear Orphaned Audio": "Rimuovi audio orfani",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Livello di gravità minimo da registrare nel log.",
"Models Directory": "Directory dei modelli",
"Modern Dark": "Modern Dark",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "Nessun modello vocale Piper adatto trovato. Controlla la directory dei modelli.",
"No text content available for this post.": "Nessun contenuto testuale disponibile per questo post.",
"Orphaned files cleared.": "File orfani eliminati.",
@@ -95,12 +96,16 @@
"Post not found.": "Post non trovato.",
"Preview how the selected player style looks with a sample audio clip.": "Anteprima di come appare lo stile del player selezionato con un clip audio di esempio.",
"Quality tier override": "Override del livello di qualità",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "La modalità Greggio passa il testo direttamente a Piper. La modalità Segmentato divide prima il testo in frasi.",
"Raw — send text as-is to Piper": "Greggio — invia il testo così com'è a Piper",
"Refresh Log": "Aggiorna log",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Secondi di silenzio inseriti tra i blocchi di frasi in modalità Segmentato. Predefinito: 2.0. Intervallo: 0.55.0.",
"Show Duration": "Mostra durata",
"Skip Embedded Content": "Salta contenuti incorporati",
"Styling": "Stile",
"Test Connection": "Test connessione",
"Testing…": "Test in corso…",
"Text Processing": "Elaborazione del testo",
"This will delete cache files not referenced by any post.": "Questo eliminerà i file di cache non referenziati da alcun post.",
"Too many requests. Please try again later.": "Troppe richieste. Riprova più tardi.",
"Unsupported post type.": "Tipo di post non supportato.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Quando si utilizza il corpo del post come fallback (nessun estratto), salta il testo da blocchi incorporati come YouTube, Twitter e embed di terze parti.",
"Where to insert the audio player relative to the post content.": "Dove inserire il player audio rispetto al contenuto del post.",
"You do not have permission to edit this post.": "Non hai il permesso di modificare questo post.",
"Your browser does not support the audio element.": "Il tuo browser non supporta l'elemento audio."
"Your browser does not support the audio element.": "Il tuo browser non supporta l'elemento audio.",
"Audio Format": "Formato audio",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Formato audio in uscita. L'MP3 è universalmente supportato. L'Opus offre una qualità migliore allo stesso bitrate ma ha un supporto browser più limitato.",
"Opus Bitrate": "Bitrate Opus",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Bitrate per la codifica Opus. Opus raggiunge una buona qualità a bitrate molto più bassi dell'MP3. Uscita mono.",
"24 kbps (standard)": "24 kbps (standard)",
"16 kbps (compact)": "16 kbps (compatto)",
"12 kbps (minimal)": "12 kbps (minimo)",
"FFprobe Binary Path": "Percorso binario FFprobe",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Percorso assoluto al binario ffprobe per il rilevamento della durata audio. Rilevato automaticamente dalla directory ffmpeg se lasciato vuoto.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Percorso assoluto al binario ffmpeg per la conversione MP3/Opus. Rilevato automaticamente se lasciato vuoto.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-10 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: it <LL@li.org>\n"
"Language: it_IT\n"
@@ -76,6 +76,14 @@ msgstr "Cache svuotata."
msgid "Choose a visual theme for the audio player."
msgstr "Scegli un tema visivo per il lettore audio."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Silenzio tra frasi"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Segmentato — pre-dividi il testo ai confini delle frasi"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Classico"
@@ -228,10 +236,6 @@ msgstr "Directory dei modelli"
msgid "Modern Dark"
msgstr "Modern Dark"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "Nessun modello vocale Piper adatto trovato. Controlla la directory dei modelli."
@@ -364,10 +368,22 @@ msgstr "Anteprima di come appare lo stile del player selezionato con un clip aud
msgid "Quality tier override"
msgstr "Override del livello di qualità"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "La modalità Greggio passa il testo direttamente a Piper. La modalità Segmentato divide prima il testo in frasi."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Greggio — invia il testo così com'è a Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Aggiorna log"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Secondi di silenzio inseriti tra i blocchi di frasi in modalità Segmentato. Predefinito: 2.0. Intervallo: 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Mostra durata"
@@ -388,6 +404,10 @@ msgstr "Test connessione"
msgid "Testing…"
msgstr "Test in corso…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Elaborazione del testo"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Questo eliminerà i file di cache non referenziati da alcun post."
@@ -424,3 +444,37 @@ msgstr "Non hai il permesso di modificare questo post."
msgid "Your browser does not support the audio element."
msgstr "Il tuo browser non supporta l'elemento audio."
msgid "Audio Format"
msgstr "Formato audio"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Formato audio in uscita. L'MP3 è universalmente supportato. L'Opus offre una qualità migliore allo stesso bitrate ma ha un supporto browser più limitato."
msgid "Opus Bitrate"
msgstr "Bitrate Opus"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Bitrate per la codifica Opus. Opus raggiunge una buona qualità a bitrate molto più bassi dell'MP3. Uscita mono."
msgid "24 kbps (standard)"
msgstr "24 kbps (standard)"
msgid "16 kbps (compact)"
msgstr "16 kbps (compatto)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (minimo)"
msgid "FFprobe Binary Path"
msgstr "Percorso binario FFprobe"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Percorso assoluto al binario ffprobe per il rilevamento della durata audio. Rilevato automaticamente dalla directory ffmpeg se lasciato vuoto."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Percorso assoluto al binario ffmpeg per la conversione MP3/Opus. Rilevato automaticamente se lasciato vuoto."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+20 -4
View File
@@ -3,8 +3,8 @@
"locale": "ja",
"source": "translations.json",
"generated": "2026-05-10",
"total_strings": 102,
"translated": 102,
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "キャッシュ管理",
"Cache flushed.": "キャッシュをフラッシュしました。",
"Choose a visual theme for the audio player.": "オーディオプレーヤーのビジュアルテーマを選択してください。",
"Chunk Silence": "チャンク間の無音",
"Chunked — pre-split text at sentence boundaries for better pacing": "Chunked — 文の区切りでテキストを分割",
"Classic": "クラシック",
"Clear Log": "ログをクリア",
"Clear Orphaned Audio": "孤立したオーディオをクリア",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "ログに記録する最小の重要度。",
"Models Directory": "モデルディレクトリ",
"Modern Dark": "モダンダーク",
"NewsViews Classic": "ニュースビュークラシック",
"No suitable Piper voice model found. Check your models directory.": "適切なPiper音声モデルが見つかりません。モデルディレクトリを確認してください。",
"No text content available for this post.": "この投稿にはテキストコンテンツがありません。",
"Orphaned files cleared.": "孤立ファイルをクリアしました。",
@@ -95,12 +96,16 @@
"Post not found.": "投稿が見つかりません。",
"Preview how the selected player style looks with a sample audio clip.": "選択したプレイヤースタイルがサンプルオーディオクリップでどのように見えるかプレビューします。",
"Quality tier override": "品質ティアの上書き",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "Rawモードはテキストを直接Piperに渡します。Chunkedモードは最初にテキストを文に分割します。",
"Raw — send text as-is to Piper": "Raw — テキストをそのままPiperに送信",
"Refresh Log": "ログの更新",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Chunkedモードで文チャンク間に挿入される無音の秒数。デフォルト: 2.0。範囲: 0.55.0。",
"Show Duration": "再生時間を表示",
"Skip Embedded Content": "埋め込みコンテンツをスキップ",
"Styling": "スタイリング",
"Test Connection": "接続テスト",
"Testing…": "テスト中…",
"Text Processing": "テキスト処理",
"This will delete cache files not referenced by any post.": "これにより、どの投稿からも参照されていないキャッシュファイルが削除されます。",
"Too many requests. Please try again later.": "リクエストが多すぎます。後でもう一度お試しください。",
"Unsupported post type.": "サポートされていない投稿タイプです。",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "抜粋がない場合に投稿本文にフォールバックする際、YouTube、Twitter、サードパーティの埋め込みブロックのテキストをスキップします。",
"Where to insert the audio player relative to the post content.": "投稿コンテンツに対するオーディオプレーヤーの挿入位置。",
"You do not have permission to edit this post.": "この投稿を編集する権限がありません。",
"Your browser does not support the audio element.": "お使いのブラウザはオーディオ要素をサポートしていません。"
"Your browser does not support the audio element.": "お使いのブラウザはオーディオ要素をサポートしていません。",
"Audio Format": "オーディオフォーマット",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "出力オーディオフォーマット。MP3は普遍的にサポートされています。Opusは同じビットレートでより高品質ですが、ブラウザのサポートは限定的です。",
"Opus Bitrate": "Opusビットレート",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Opusエンコーディングのビットレート。OpusはMP3よりはるかに低いビットレートで良好な品質を実現します。モノラル出力。",
"24 kbps (standard)": "24 kbps(標準)",
"16 kbps (compact)": "16 kbps(コンパクト)",
"12 kbps (minimal)": "12 kbps(最小)",
"FFprobe Binary Path": "FFprobeバイナリパス",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "音声の長さ検出用ffprobeバイナリへの絶対パス。空の場合はffmpegディレクトリから自動検出されます。",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "MP3/Opus変換用ffmpegバイナリへの絶対パス。空の場合は自動検出されます。",
"Dan Rather Blue": "ダン・ラザー・ブルー"
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-10 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Japanese <LL@li.org>\n"
"Language: ja\n"
@@ -76,6 +76,14 @@ msgstr "キャッシュをフラッシュしました。"
msgid "Choose a visual theme for the audio player."
msgstr "オーディオプレーヤーのビジュアルテーマを選択してください。"
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "チャンク間の無音"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Chunked — 文の区切りでテキストを分割"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "クラシック"
@@ -228,10 +236,6 @@ msgstr "モデルディレクトリ"
msgid "Modern Dark"
msgstr "モダンダーク"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "ニュースビュークラシック"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "適切なPiper音声モデルが見つかりません。モデルディレクトリを確認してください。"
@@ -364,10 +368,22 @@ msgstr "選択したプレイヤースタイルがサンプルオーディオク
msgid "Quality tier override"
msgstr "品質ティアの上書き"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "Rawモードはテキストを直接Piperに渡します。Chunkedモードは最初にテキストを文に分割します。"
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Raw — テキストをそのままPiperに送信"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "ログの更新"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Chunkedモードで文チャンク間に挿入される無音の秒数。デフォルト: 2.0。範囲: 0.55.0。"
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "再生時間を表示"
@@ -388,6 +404,10 @@ msgstr "接続テスト"
msgid "Testing…"
msgstr "テスト中…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "テキスト処理"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "これにより、どの投稿からも参照されていないキャッシュファイルが削除されます。"
@@ -424,3 +444,37 @@ msgstr "この投稿を編集する権限がありません。"
msgid "Your browser does not support the audio element."
msgstr "お使いのブラウザはオーディオ要素をサポートしていません。"
msgid "Audio Format"
msgstr "オーディオフォーマット"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "出力オーディオフォーマット。MP3は普遍的にサポートされています。Opusは同じビットレートでより高品質ですが、ブラウザのサポートは限定的です。"
msgid "Opus Bitrate"
msgstr "Opusビットレート"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Opusエンコーディングのビットレート。OpusはMP3よりはるかに低いビットレートで良好な品質を実現します。モノラル出力。"
msgid "24 kbps (standard)"
msgstr "24 kbps(標準)"
msgid "16 kbps (compact)"
msgstr "16 kbps(コンパクト)"
msgid "12 kbps (minimal)"
msgstr "12 kbps(最小)"
msgid "FFprobe Binary Path"
msgstr "FFprobeバイナリパス"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "音声の長さ検出用ffprobeバイナリへの絶対パス。空の場合はffmpegディレクトリから自動検出されます。"
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "MP3/Opus変換用ffmpegバイナリへの絶対パス。空の場合は自動検出されます。"
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "ダン・ラザー・ブルー"
+22 -6
View File
@@ -2,9 +2,9 @@
"_meta": {
"locale": "nl_NL",
"source": "translations.json",
"generated": "2026-05-09",
"total_strings": 102,
"translated": 102,
"generated": "2026-05-10",
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Cachebeheer",
"Cache flushed.": "Cache geleegd.",
"Choose a visual theme for the audio player.": "Kies een visueel thema voor de audiospeler.",
"Chunk Silence": "Pauzelengte",
"Chunked — pre-split text at sentence boundaries for better pacing": "Gesegmenteerd — splits tekst vooraf op zinsgrenzen",
"Classic": "Klassiek",
"Clear Log": "Log wissen",
"Clear Orphaned Audio": "Verweesde audio wissen",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Minimale ernst om in het log vast te leggen.",
"Models Directory": "Modellenmap",
"Modern Dark": "Modern Donker",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "Geen geschikt Piper stemmodel gevonden. Controleer je modellenmap.",
"No text content available for this post.": "Geen tekstinhoud beschikbaar voor dit bericht.",
"Orphaned files cleared.": "Verweesde bestanden gewist.",
@@ -95,12 +96,16 @@
"Post not found.": "Bericht niet gevonden.",
"Preview how the selected player style looks with a sample audio clip.": "Bekijk hoe de geselecteerde spelerstijl eruitziet met een voorbeeld-audiofragment.",
"Quality tier override": "Kwaliteitsniveau overschrijven",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "Ruwe modus stuurt tekst direct naar Piper. Gesegmenteerde modus splitst tekst eerst in zinnen.",
"Raw — send text as-is to Piper": "Ruw — stuur tekst ongewijzigd naar Piper",
"Refresh Log": "Log vernieuwen",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Seconden stilte tussen zinsblokken in Gesegmenteerde modus. Standaard: 2.0. Bereik: 0.55.0.",
"Show Duration": "Toon duur",
"Skip Embedded Content": "Ingesloten inhoud overslaan",
"Styling": "Vormgeving",
"Test Connection": "Verbinding testen",
"Testing…": "Testen…",
"Text Processing": "Tekstverwerking",
"This will delete cache files not referenced by any post.": "Hiermee worden cachebestanden verwijderd die niet aan een bericht zijn gekoppeld.",
"Too many requests. Please try again later.": "Te veel verzoeken. Probeer het later opnieuw.",
"Unsupported post type.": "Niet-ondersteund berichttype.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Bij terugvallen op berichtinhoud (geen samenvatting), tekst van ingesloten blokken zoals YouTube, Twitter en embeds van derden overslaan.",
"Where to insert the audio player relative to the post content.": "Waar de audiospeler moet worden ingevoegd ten opzichte van de berichtinhoud.",
"You do not have permission to edit this post.": "Je hebt geen rechten om dit bericht te bewerken.",
"Your browser does not support the audio element.": "Je browser ondersteunt het audio-element niet."
"Your browser does not support the audio element.": "Je browser ondersteunt het audio-element niet.",
"Audio Format": "Audioformaat",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Uitvoer audioformaat. MP3 wordt universeel ondersteund. Opus biedt betere kwaliteit bij dezelfde bitrate maar heeft beperktere browserondersteuning.",
"Opus Bitrate": "Opus-bitrate",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Bitrate voor Opus-codering. Opus bereikt goede kwaliteit bij veel lagere bitrates dan MP3. Mono-uitvoer.",
"24 kbps (standard)": "24 kbps (standaard)",
"16 kbps (compact)": "16 kbps (compact)",
"12 kbps (minimal)": "12 kbps (minimaal)",
"FFprobe Binary Path": "FFprobe-binair pad",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Absoluut pad naar de ffprobe binary voor audioduurdetectie. Automatisch gedetecteerd vanuit de ffmpeg-directory, indien leeg gelaten.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Absoluut pad naar de ffmpeg binary voor MP3/Opus-conversie. Automatisch gedetecteerd als leeg gelaten.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-09 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Dutch <LL@li.org>\n"
"Language: nl_NL\n"
@@ -76,6 +76,14 @@ msgstr "Cache geleegd."
msgid "Choose a visual theme for the audio player."
msgstr "Kies een visueel thema voor de audiospeler."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Pauzelengte"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Gesegmenteerd — splits tekst vooraf op zinsgrenzen"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Klassiek"
@@ -228,10 +236,6 @@ msgstr "Modellenmap"
msgid "Modern Dark"
msgstr "Modern Donker"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "Geen geschikt Piper stemmodel gevonden. Controleer je modellenmap."
@@ -364,10 +368,22 @@ msgstr "Bekijk hoe de geselecteerde spelerstijl eruitziet met een voorbeeld-audi
msgid "Quality tier override"
msgstr "Kwaliteitsniveau overschrijven"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "Ruwe modus stuurt tekst direct naar Piper. Gesegmenteerde modus splitst tekst eerst in zinnen."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Ruw — stuur tekst ongewijzigd naar Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Log vernieuwen"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Seconden stilte tussen zinsblokken in Gesegmenteerde modus. Standaard: 2.0. Bereik: 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Toon duur"
@@ -388,6 +404,10 @@ msgstr "Verbinding testen"
msgid "Testing…"
msgstr "Testen…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Tekstverwerking"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Hiermee worden cachebestanden verwijderd die niet aan een bericht zijn gekoppeld."
@@ -424,3 +444,37 @@ msgstr "Je hebt geen rechten om dit bericht te bewerken."
msgid "Your browser does not support the audio element."
msgstr "Je browser ondersteunt het audio-element niet."
msgid "Audio Format"
msgstr "Audioformaat"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Uitvoer audioformaat. MP3 wordt universeel ondersteund. Opus biedt betere kwaliteit bij dezelfde bitrate maar heeft beperktere browserondersteuning."
msgid "Opus Bitrate"
msgstr "Opus-bitrate"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Bitrate voor Opus-codering. Opus bereikt goede kwaliteit bij veel lagere bitrates dan MP3. Mono-uitvoer."
msgid "24 kbps (standard)"
msgstr "24 kbps (standaard)"
msgid "16 kbps (compact)"
msgstr "16 kbps (compact)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (minimaal)"
msgid "FFprobe Binary Path"
msgstr "FFprobe-binair pad"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Absoluut pad naar de ffprobe binary voor audioduurdetectie. Automatisch gedetecteerd vanuit de ffmpeg-directory, indien leeg gelaten."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Absoluut pad naar de ffmpeg binary voor MP3/Opus-conversie. Automatisch gedetecteerd als leeg gelaten."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+20 -4
View File
@@ -3,8 +3,8 @@
"locale": "pt_BR",
"source": "translations.json",
"generated": "2026-05-10",
"total_strings": 102,
"translated": 102,
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "Gerenciamento de Cache",
"Cache flushed.": "Cache limpo.",
"Choose a visual theme for the audio player.": "Escolha um tema visual para o reprodutor de áudio.",
"Chunk Silence": "Silêncio entre frases",
"Chunked — pre-split text at sentence boundaries for better pacing": "Segmentado — pré-dividir texto nos limites das frases",
"Classic": "Clássico",
"Clear Log": "Limpar Log",
"Clear Orphaned Audio": "Limpar Áudio Órfão",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "Severidade mínima para registrar no log.",
"Models Directory": "Diretório de Modelos",
"Modern Dark": "Modern Dark",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "Nenhum modelo de voz Piper adequado encontrado. Verifique seu diretório de modelos.",
"No text content available for this post.": "Nenhum conteúdo de texto disponível para esta publicação.",
"Orphaned files cleared.": "Arquivos órfãos limpos.",
@@ -95,12 +96,16 @@
"Post not found.": "Post não encontrado.",
"Preview how the selected player style looks with a sample audio clip.": "Visualize como o estilo de player selecionado fica com um clipe de áudio de exemplo.",
"Quality tier override": "Substituição de nível de qualidade",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "O modo Bruto envia o texto diretamente para o Piper. O modo Segmentado divide o texto em frases.",
"Raw — send text as-is to Piper": "Bruto — enviar texto como está para o Piper",
"Refresh Log": "Atualizar Log",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "Segundos de silêncio inseridos entre blocos de frases no modo Segmentado. Padrão: 2.0. Intervalo: 0.55.0.",
"Show Duration": "Mostrar Duração",
"Skip Embedded Content": "Pular Conteúdo Incorporado",
"Styling": "Estilização",
"Test Connection": "Testar Conexão",
"Testing…": "Testando…",
"Text Processing": "Processamento de texto",
"This will delete cache files not referenced by any post.": "Isso excluirá arquivos de cache não referenciados por nenhum post.",
"Too many requests. Please try again later.": "Muitas solicitações. Tente novamente mais tarde.",
"Unsupported post type.": "Tipo de post não suportado.",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "Ao recorrer ao corpo do post (sem resumo), pular texto de blocos incorporados como YouTube, Twitter e embeds de terceiros.",
"Where to insert the audio player relative to the post content.": "Onde inserir o player de áudio em relação ao conteúdo do post.",
"You do not have permission to edit this post.": "Você não tem permissão para editar este post.",
"Your browser does not support the audio element.": "Seu navegador não suporta o elemento de áudio."
"Your browser does not support the audio element.": "Seu navegador não suporta o elemento de áudio.",
"Audio Format": "Formato de áudio",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "Formato de áudio de saída. MP3 é universalmente suportado. Opus oferece melhor qualidade na mesma taxa de bits, mas tem suporte de navegador mais limitado.",
"Opus Bitrate": "Bitrate do Opus",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Bitrate para codificação Opus. O Opus alcança boa qualidade em taxas de bits muito mais baixas que o MP3. Saída mono.",
"24 kbps (standard)": "24 kbps (padrão)",
"16 kbps (compact)": "16 kbps (compacto)",
"12 kbps (minimal)": "12 kbps (mínimo)",
"FFprobe Binary Path": "Caminho do binário FFprobe",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "Caminho absoluto para o binário ffprobe para detecção de duração do áudio. Detectado automaticamente do diretório ffmpeg se deixado vazio.",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "Caminho absoluto para o binário ffmpeg para conversão MP3/Opus. Detectado automaticamente se deixado vazio.",
"Dan Rather Blue": "Dan Rather Blue"
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-10 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: pt <LL@li.org>\n"
"Language: pt_BR\n"
@@ -76,6 +76,14 @@ msgstr "Cache limpo."
msgid "Choose a visual theme for the audio player."
msgstr "Escolha um tema visual para o reprodutor de áudio."
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "Silêncio entre frases"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "Segmentado — pré-dividir texto nos limites das frases"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "Clássico"
@@ -228,10 +236,6 @@ msgstr "Diretório de Modelos"
msgid "Modern Dark"
msgstr "Modern Dark"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "Nenhum modelo de voz Piper adequado encontrado. Verifique seu diretório de modelos."
@@ -364,10 +368,22 @@ msgstr "Visualize como o estilo de player selecionado fica com um clipe de áudi
msgid "Quality tier override"
msgstr "Substituição de nível de qualidade"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "O modo Bruto envia o texto diretamente para o Piper. O modo Segmentado divide o texto em frases."
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "Bruto — enviar texto como está para o Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "Atualizar Log"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "Segundos de silêncio inseridos entre blocos de frases no modo Segmentado. Padrão: 2.0. Intervalo: 0.55.0."
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "Mostrar Duração"
@@ -388,6 +404,10 @@ msgstr "Testar Conexão"
msgid "Testing…"
msgstr "Testando…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "Processamento de texto"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "Isso excluirá arquivos de cache não referenciados por nenhum post."
@@ -424,3 +444,37 @@ msgstr "Você não tem permissão para editar este post."
msgid "Your browser does not support the audio element."
msgstr "Seu navegador não suporta o elemento de áudio."
msgid "Audio Format"
msgstr "Formato de áudio"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "Formato de áudio de saída. MP3 é universalmente suportado. Opus oferece melhor qualidade na mesma taxa de bits, mas tem suporte de navegador mais limitado."
msgid "Opus Bitrate"
msgstr "Bitrate do Opus"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Bitrate para codificação Opus. O Opus alcança boa qualidade em taxas de bits muito mais baixas que o MP3. Saída mono."
msgid "24 kbps (standard)"
msgstr "24 kbps (padrão)"
msgid "16 kbps (compact)"
msgstr "16 kbps (compacto)"
msgid "12 kbps (minimal)"
msgstr "12 kbps (mínimo)"
msgid "FFprobe Binary Path"
msgstr "Caminho do binário FFprobe"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "Caminho absoluto para o binário ffprobe para detecção de duração do áudio. Detectado automaticamente do diretório ffmpeg se deixado vazio."
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "Caminho absoluto para o binário ffmpeg para conversão MP3/Opus. Detectado automaticamente se deixado vazio."
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "Dan Rather Blue"
+22 -6
View File
@@ -2,9 +2,9 @@
"_meta": {
"locale": "zh_CN",
"source": "translations.json",
"generated": "2026-05-09",
"total_strings": 102,
"translated": 102,
"generated": "2026-05-10",
"total_strings": 118,
"translated": 118,
"locked": false
},
"strings": {
@@ -23,6 +23,8 @@
"Cache Management": "缓存管理",
"Cache flushed.": "缓存已清空。",
"Choose a visual theme for the audio player.": "为音频播放器选择一个视觉主题。",
"Chunk Silence": "块间静音",
"Chunked — pre-split text at sentence boundaries for better pacing": "分块 — 在句子边界预先分割文本",
"Classic": "经典",
"Clear Log": "清除日志",
"Clear Orphaned Audio": "清除孤立音频",
@@ -61,7 +63,6 @@
"Minimum severity to record in the log.": "记录到日志的最低严重程度。",
"Models Directory": "模型目录",
"Modern Dark": "现代深色",
"NewsViews Classic": "NewsViews Classic",
"No suitable Piper voice model found. Check your models directory.": "未找到合适的 Piper 声音模型。请检查您的模型目录。",
"No text content available for this post.": "此文章没有可用的文本内容。",
"Orphaned files cleared.": "孤立文件已清除。",
@@ -95,12 +96,16 @@
"Post not found.": "未找到文章。",
"Preview how the selected player style looks with a sample audio clip.": "使用示例音频片段预览所选播放器样式的效果。",
"Quality tier override": "质量级别覆盖",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "原始模式直接将文本传递给 Piper。分块模式先将文本分割成句子。",
"Raw — send text as-is to Piper": "原始 — 直接将文本发送给 Piper",
"Refresh Log": "刷新日志",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "分块模式下句子块之间插入的静音秒数。默认:2.0。范围:0.5–5.0。",
"Show Duration": "显示时长",
"Skip Embedded Content": "跳过嵌入内容",
"Styling": "样式",
"Test Connection": "测试连接",
"Testing…": "正在测试…",
"Text Processing": "文本处理",
"This will delete cache files not referenced by any post.": "这将删除未被任何文章引用的缓存文件。",
"Too many requests. Please try again later.": "请求过多。请稍后再试。",
"Unsupported post type.": "不支持的文章类型。",
@@ -109,6 +114,17 @@
"When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds.": "当回退到文章正文(无摘要)时,跳过 YouTube、Twitter 和第三方嵌入等嵌入块中的文本。",
"Where to insert the audio player relative to the post content.": "音频播放器相对于文章内容的插入位置。",
"You do not have permission to edit this post.": "您没有编辑此文章的权限。",
"Your browser does not support the audio element.": "您的浏览器不支持音频元素。"
"Your browser does not support the audio element.": "您的浏览器不支持音频元素。",
"Audio Format": "音频格式",
"Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support.": "输出音频格式。MP3 被普遍支持。Opus 在相同比特率下提供更好的质量,但浏览器支持较窄。",
"Opus Bitrate": "Opus 比特率",
"Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output.": "Opus 编码的比特率。Opus 在比 MP3 低得多的比特率下仍能实现良好的质量。单声道输出。",
"24 kbps (standard)": "24 kbps(标准)",
"16 kbps (compact)": "16 kbps(紧凑)",
"12 kbps (minimal)": "12 kbps(最小)",
"FFprobe Binary Path": "FFprobe 二进制文件路径",
"Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty.": "ffprobe 二进制文件的绝对路径,用于音频时长检测。留空则从 ffmpeg 目录自动检测。",
"Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty.": "ffmpeg 二进制文件的绝对路径,用于 MP3/Opus 转换。留空则自动检测。",
"Dan Rather Blue": "丹·拉瑟蓝"
}
}
}
Binary file not shown.
+59 -5
View File
@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Piperless 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/example/piperless/issues\n"
"POT-Creation-Date: 2024-01-01 00:00+0000\n"
"PO-Revision-Date: 2026-05-09 00:00+0000\n"
"PO-Revision-Date: 2026-05-11 00:00+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: zh <LL@li.org>\n"
"Language: zh_CN\n"
@@ -76,6 +76,14 @@ msgstr "缓存已清空。"
msgid "Choose a visual theme for the audio player."
msgstr "为音频播放器选择一个视觉主题。"
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr "块间静音"
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr "分块 — 在句子边界预先分割文本"
#: includes/class-settings.php:385
msgid "Classic"
msgstr "经典"
@@ -228,10 +236,6 @@ msgstr "模型目录"
msgid "Modern Dark"
msgstr "现代深色"
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgstr "NewsViews Classic"
#: includes/class-transcriber.php:83
msgid "No suitable Piper voice model found. Check your models directory."
msgstr "未找到合适的 Piper 声音模型。请检查您的模型目录。"
@@ -364,10 +368,22 @@ msgstr "使用示例音频片段预览所选播放器样式的效果。"
msgid "Quality tier override"
msgstr "质量级别覆盖"
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr "原始模式直接将文本传递给 Piper。分块模式先将文本分割成句子。"
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr "原始 — 直接将文本发送给 Piper"
#: includes/class-settings.php:607
msgid "Refresh Log"
msgstr "刷新日志"
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr "分块模式下句子块之间插入的静音秒数。默认:2.0。范围:0.5–5.0。"
#: includes/class-settings.php:405
msgid "Show Duration"
msgstr "显示时长"
@@ -388,6 +404,10 @@ msgstr "测试连接"
msgid "Testing…"
msgstr "正在测试…"
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr "文本处理"
#: includes/class-settings.php:649
msgid "This will delete cache files not referenced by any post."
msgstr "这将删除未被任何文章引用的缓存文件。"
@@ -424,3 +444,37 @@ msgstr "您没有编辑此文章的权限。"
msgid "Your browser does not support the audio element."
msgstr "您的浏览器不支持音频元素。"
msgid "Audio Format"
msgstr "音频格式"
msgid "Output audio format. MP3 is universally supported. Opus offers better quality at the same bitrate but has narrower browser support."
msgstr "输出音频格式。MP3 被普遍支持。Opus 在相同比特率下提供更好的质量,但浏览器支持较窄。"
msgid "Opus Bitrate"
msgstr "Opus 比特率"
msgid "Bitrate for Opus encoding. Opus achieves good quality at much lower bitrates than MP3. Mono output."
msgstr "Opus 编码的比特率。Opus 在比 MP3 低得多的比特率下仍能实现良好的质量。单声道输出。"
msgid "24 kbps (standard)"
msgstr "24 kbps(标准)"
msgid "16 kbps (compact)"
msgstr "16 kbps(紧凑)"
msgid "12 kbps (minimal)"
msgstr "12 kbps(最小)"
msgid "FFprobe Binary Path"
msgstr "FFprobe 二进制文件路径"
msgid "Absolute path to the ffprobe binary for audio duration detection. Auto-detected from the ffmpeg directory if left empty."
msgstr "ffprobe 二进制文件的绝对路径,用于音频时长检测。留空则从 ffmpeg 目录自动检测。"
msgid "Absolute path to the ffmpeg binary for MP3/Opus conversion. Auto-detected from common paths if left empty."
msgstr "ffmpeg 二进制文件的绝对路径,用于 MP3/Opus 转换。留空则自动检测。"
#: includes/class-settings.php:now
msgid "Dan Rather Blue"
msgstr "丹·拉瑟蓝"
+25 -1
View File
@@ -149,6 +149,30 @@ msgstr ""
msgid "When falling back to post body (no excerpt), skip text from embedded blocks like YouTube, Twitter, and third-party embeds."
msgstr ""
#: includes/class-settings.php:now
msgid "Text Processing"
msgstr ""
#: includes/class-settings.php:now
msgid "Raw — send text as-is to Piper"
msgstr ""
#: includes/class-settings.php:now
msgid "Chunked — pre-split text at sentence boundaries for better pacing"
msgstr ""
#: includes/class-settings.php:now
msgid "Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing."
msgstr ""
#: includes/class-settings.php:now
msgid "Chunk Silence"
msgstr ""
#: includes/class-settings.php:now
msgid "Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0."
msgstr ""
#: includes/class-settings.php:378
msgid "Audio Player Settings"
msgstr ""
@@ -218,7 +242,7 @@ msgid "Above & below content"
msgstr ""
#: includes/class-settings.php:now
msgid "NewsViews Classic"
msgid "Dan Rather Blue"
msgstr ""
#: assets/js/gutenberg.js
+6
View File
@@ -14,6 +14,8 @@
"Cache Management": "",
"Cache flushed.": "",
"Choose a visual theme for the audio player.": "",
"Chunk Silence": "",
"Chunked — pre-split text at sentence boundaries for better pacing": "",
"Classic": "",
"Clear Log": "",
"Clear Orphaned Audio": "",
@@ -88,12 +90,16 @@
"Post not found.": "",
"Preview how the selected player style looks with a sample audio clip.": "",
"Quality tier override": "",
"Raw mode passes text directly to Piper. Chunked mode splits text into sentences first, avoiding false breaks on abbreviations and decimals while improving sentence pacing.": "",
"Raw — send text as-is to Piper": "",
"Refresh Log": "",
"Seconds of silence inserted between sentence chunks when Text Processing is set to Chunked. Default: 2.0. Range: 0.55.0.": "",
"Show Duration": "",
"Skip Embedded Content": "",
"Styling": "",
"Test Connection": "",
"Testing…": "",
"Text Processing": "",
"This will delete cache files not referenced by any post.": "",
"Too many requests. Please try again later.": "",
"Unsupported post type.": "",
+2 -2
View File
@@ -3,7 +3,7 @@
* Plugin Name: Piperless — Audio Transcripts
* Plugin URI: https://forkless.com
* Description: Generate audio transcripts of WordPress posts using Piper TTS. Customizable players, caching, and full Gutenberg integration.
* Version: 1.0.0
* Version: 1.1.2
* Requires at least: 6.0
* Requires PHP: 8.0
* Author: Forkless
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
// ── Constants ────────────────────────────────────────────────────────────────
define( 'PIPERLESS_VERSION', '1.0.0' );
define( 'PIPERLESS_VERSION', '1.1.2' );
define( 'PIPERLESS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'PIPERLESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'PIPERLESS_PLUGIN_FILE', __FILE__ );