Polylang integration

2 min read

Polylang works similarly to WPML. Each language has its own posts, and TTSWP can assign a different voice to each language.

Requirements

  • Polylang 3.0 or newer (free or Pro edition)
  • At least two languages configured
  • TTSWP connected to your site

How it works

Polylang integration is detected automatically. No toggle is needed.

When you generate audio for a translated post, TTSWP:

  1. Reads the post's Polylang language
  2. Uses the voice mapped to that language (or your default if none is set)
  3. Generates audio in that language

Mapping voices

Go to Text to Speech → Language Voice Mapping. For each Polylang language, pick the voice to use. See Language Voice Mapping.

Language code handling

Polylang uses ISO 639-1 codes (en, fr, es, de, nb, etc.). TTSWP passes these to ElevenLabs after normalization (Norwegian nb becomes no, Nynorsk nn also becomes no).