=== Auscultare – Voice Check ===
Contributors: avancerai
Tags: audio, voice, deepfake, verification, journalism
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Check audio and video in your Media Library for signs of AI generation or re-synthesis, and show shared voice-check results in posts.

== Description ==

Auscultare (by avancer.ai) reads a recording with its TrueSound 2.1 detector and answers for the whole recording:

* No signs of AI generation or re-synthesis
* Reads as AI-generated speech
* Rebuilt by a codec or vocoder, origin unclear (this never means the speech is real)
* Not original; can't tell whether AI-generated or rebuilt
* No usable speech found

Answers are evidence for a closer look, not proof. Very short speech comes with a reliability note.

With this plug-in:

* **Verify voice** in the Media Library: a row action (list view) and a button on an audio or video file's details.
  The file is sent from your server to Auscultare with your API key; the answer shows as a badge in a "Voice check"
  column and on the file's details, with a link to the full result in Auscultare.
* **Make public result**, then show it in a post with the **Auscultare result** block or the shortcode
  `[auscultare_result share="SHARE_CODE"]` (optional `theme="light"` or `theme="dark"`): the answer, the waveform,
  the timeline of evidence and a link to the result page.

Who can do what: Settings need `manage_options`; checking a file needs `edit_post` on that file. Every action uses a
nonce.

== Installation ==

1. Download `wordpress-auscultare.zip` from your Auscultare site (`/downloads/wordpress-auscultare.zip`), then in
   WordPress go to Plugins → Add New → Upload Plugin, choose the zip and activate it.
2. In Auscultare, make an API key (Developers → API keys). Production keys (`asc_live_`) need Pro or Enterprise;
   development keys (`asc_test_`) only repeat results of recordings your workspace already scanned.
3. In WordPress, open Settings → Auscultare, enter the server (`https://auscultare.io`, or the dev deployment
   `https://auscultare.dev.avancerfactory.com`) and the API key, and save.
4. Media → Library (list view) → an audio or video file → **Verify voice**.

== Frequently Asked Questions ==

= What is sent to Auscultare? =

Only the files you choose to check (with their title and file name, which stay in your Auscultare workspace), sent
from your WordPress server when you click "Verify voice". Nothing is sent on its own.

= Where is my API key kept? =

In the WordPress options table, with autoload off. It is never printed back on the settings page (only its prefix
and last four characters). Uninstalling the plug-in deletes it.

= Does the embed track readers? =

No. The embed script ships inside the plug-in (no code is loaded from elsewhere). A reader's browser asks the
Auscultare server for the public result only, without cookies and without a referrer, and loads no fonts or images.

= Can a file in an offloaded media bucket be checked? =

Only files stored on the WordPress server's disk can be sent. Offloaded files show a message instead.

== External services ==

This plug-in connects to the Auscultare API (by avancer.ai) at the server set in Settings → Auscultare:

* When an editor clicks "Verify voice", "Refresh" or "Make public result": the chosen media file (or the scan id), with
  the site's API key, to `POST /api/v1/scans`, `GET /api/v1/scans/{id}` or `POST /api/v1/scans/{id}/share`.
* When a reader views a post with an Auscultare result: the reader's browser requests `GET /api/share/{code}` (the
  public result: title, answer, waveform and timeline; never audio).

Terms and privacy: https://auscultare.io/legal

== Changelog ==

= 1.0.0 =
* First version: Verify voice in the Media Library, the Voice check column, public results, the block and the shortcode.
