Listener Page and iFrame widget
For each broadcast, Palabra automatically creates a listener page hosted by Palabra. You can open it directly in a browser or embed it in your site via an <iframe>.
Listener Page
To get the listener URL, build it from the base template and your broadcast parameters.
https://app.palabra.ai/broadcast/${broadcast_id}c/view?toLanguages=${target_language_codes}&fromLangs=${source_lang_code}&isWebRTC=${is_webrtc}
Where
broadcast_id- the ID of your broadcast tasktarget_language_codes- the list of language codes for all target languages, separated by comma. For example:toLanguages=fr,bg,es-mxsource_lang_code- the language code of the source language from the broadcast task.is_webrtc- boolean toggle to show or hide the audio switcher.
Important: The
is_webrtcflag controls only the UI toggle appearance, but the audio on Listeners Page works ONLY IF you have added thewebrtc_pushto the outputs of your broadcast task.
Example of the composed Listener Page URL
https://app.palabra.ai/broadcast/1ea600ec-6b82-4844-86d4-9926bfa78e20/view?toLanguages=fr,bg,es-mx&fromLangs=en&isWebRTC=true
Iframe Widget
To insert the Listener Page into iframe - use its URL as a frame source.
It is recommended to add &iframe=true parameter to the URL to get better UI experience.
<iframe
src="${listener_page_url}&iframe=true"
width="600px"
height="400px"
border="0"
/>
You can adjust width and height for your specific case if needed (the frame content is full responsive for any screen).