Configuration
Each player is a single element with data-* attributes. Required: the marker and which article to play.
Data attributes
| Attribute | Description |
|---|---|
data-voicgen-player | Required. Marks the container so the script can find it. |
data-post-id | Required. Your article id — must match the id used when audio was generated in Voicgen. |
data-lang | Optional. 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.