This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

NPR Transcription

Description

National Public Radio offers free transcriptions of most of its radio shows. The NPR Transcription plugin offers a simple shortcode syntax for inserting these transcriptions into WordPress pages and posts, either with theme based styling or custom styling.

The NPR-Transcript WordPress Plugin will not run without an API key from National Public Radio. Obtaining an API key is free when you [Register with NPR] (http://www.npr.org/templates/reg/ “register with NPR”)

Use of NPR content is restricted by NPR’s [Terms and Conditions] (http://www.npr.org/api/apiterms.php “NPR Terms and Conditions”). Please review these to ensure your usage is in compliance with NPR’s requirements. National Public Radio is quite generous and the WordPress community should respect their T&Cs.

Usage:

Place the shortcode [npr-transcript story=storynum] into any post or page. storynum can be found on the NPR website inside the URL for a particular story as shown in the attached screen shot where the storynum is 150002308.

Optional Parameters:

class = css class of the p tags in transcript text. If not specified, defaults to npr_para lp_class = css class of the p tag in link back to the NPR story at the bottom of the transcript. NPR T&C asks that this link always be present and the plugin automatically inserts the link within a p tag. If not specified, the default class is npr_lp. l_class = css class of the a> tag in link back to the NPR story at the bottom of the transcript. If not specified this class defaults to npr_l link_phrase = text of the link back to the NPR story at the bottom of the transcript. If not specified this text defaults to Listen on NPR.ORG 

Example:

An example using all the options might look like:

[npr-transcript story=150002308 class=myTranscriptClass lp_class=myLinkParaClass l_class=myLinkClass link_phrase=”Give it a listen…”]

Of course, you will need to define these classes (or the 3 default classes: npr_para, npr_lp, and npr_l in your theme’s CSS, or the transcript and link will appear in whatever styling your theme applies to p and a tags. Sample HTML output:

The HTML that this plugin outputs looks something like this: <p class=”npr_para”>KASELL: Kate, you had three correct answers, so I’ll be doing the message on your voicemail or answering machine.</p>
<p class=”npr_para”>SAGAL: Well done.</p>
<p class=”npr_para”>(APPLAUSE)</p>
<p class=”npr_para”>BREEN: Thank you.</p>
<p class=”npr_para”>SAGAL: Kate, thank you so much for playing.</p>
<p class=”npr_para”>BREEN: All right, thank you.</p>
<p class=”npr_para”>SAGAL: Bye-bye.</p>
<p class=”npr_para”>BREEN: Bye.</p>
<p class=”npr_para”>(SOUNDBITE OF MUSIC) Transcript provided by NPR, Copyright National Public Radio.</p>
<p class=”npr_lp”><a class=”npr_l” target=”_blank” href=”http://www.npr.org/2012/05/26/153730322/whos-carl-this-time”>Listen on NPR.ORG</a></p>

Screenshots

  • How to find the NPR Story ID number

Installation

  1. Use the standard WordPress Installer to upload and unzip the plugin
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Register at NPR.ORG to get a free API Key
  4. Enter the API key into the NPR Transcript Settings

FAQ

What usage does NPR allow for their transcripts

See: [NPR Terms and Conditions] (http://www.npr.org/api/apiterms.php “NPR API usage restrictions”)

Contributors & Developers

“NPR Transcription” is open source software. The following people have contributed to this plugin.

Translate “NPR Transcription” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.01

  • Fix glitch causing plugin to appear twice in Plugin Admin
  • Remove API key from WP database when plugin is installed

1.0

  • Initial Release.