Working with closed-captioning audio objects

You can integrate closed-captioning in mp3, wav, ogg, f4v, and flv audio objects. The captioning text is displayed within the audio according to details specified within a caption file. You can set the color and opacity for the background and specify whether to display the caption box.

  • When captions are integrated into an audio object, the audio controller height increases by about 90 pixels to accommodate displaying the captioning text.

  • Hidden audio and audio enabled without a controller will disable captioning.

  • Closed captions can be disabled/off (displayed with the word “None”) or enabled/on (displayed with the word “On”). Regardless of the language in the caption file, the controller will show “None” or “On”.

  • You can control if closed captions are displayed by default using the Display audio/video closed captions by default preference. For details about setting this preference, see Displaying audio/video closed captions by default.

  • You can have custom fonts enabled within your organization. This allows you to ensure that the fonts you use within project will properly display in your users' browsers regardless of whether they have the font locally installed. For details, see Enabling custom fonts.

The program supports eXtensible Markup Language (XML) .

Select from three supported formats:

Examples of each format are provided below.

Additionally, you can customize the caption styling, including the font and font highlighting. The following font properties can be configured within the closed-captioning file:

Font property

Description

Example

color

A general color name or a specific hexadecimal color value.

Red or #FFCC00

font-family

An installed font.

Arial

font-size

Size of the font in pixels. The default font size is 14.

12

font-style

Style of the font. The default is normal.

italic

font-weight

Weight of the font. The default is normal.

bold

text-align Alignment of the caption text as either left, right, or center. The default is center. Center

text-decoration

Enhanced font highlighting. The default is none.

underline

Follow these rules when creating the captioning file:

Sample files are provided to help you quickly get started creating and specifying the closed captioning file.

To create and specify a closed-captioning file:

  1. Do one of the following:

  2. On the Properties ribbon, click Add Captions in the Playback Options group. The Add Captions window opens.

  3. For an existing captioning file, use the Caption File pull-down list to navigate and select the captioning file. Click to edit the file if necessary. To view a sample format file that you can edit and save to project, click one of the three file formats under Sample caption file formats. The WebVTT format (.vtt) is recommended. Click Save to Project when you are done editing the captioning file.

  4. Select Display Caption Box to enable the appearance of the caption box.

  5. Select the CC Background field to select the background color for the caption text and use the Opacity field to select the percentage of opacity. Select 0 to make the text completely transparent.

  6. Click OK.

Examples

Additional resources: How to Add Closed Captions to Video and Audio in Lectora and Lectora Online

Knowledge Base | Training | Support
© Copyright ELB Learning 2025