Configuration

Each player is a single element with data-* attributes. Required: the marker and which article to play.

Data attributes

AttributeDescription
data-voicgen-playerRequired. Marks the container so the script can find it.
data-post-idRequired. Your article id — must match the id used when audio was generated in Voicgen.
data-langOptional. Language code for that track (defaults to English). Use when you publish the same post in multiple languages.
✓
Look and feelColors, labels, and which controls appear (voice switcher, speed, etc.) follow your Player settings in the Voicgen dashboard — no extra markup required in your template.