css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="articulate-area">
	<div id="voiceSelect"></div>
  <button onclick="create('#voiceSelect')">Create Menu</button>
  <button onclick="speak('article')">Speak</button>
  <button onclick="pause()">Pause</button>
  <button onclick="resume()">Resume</button>
  <button onclick="stop()">Stop</button><br>
  <button onclick="populate()">Populate Table of Voices Below Speech</button>

  <div class="intro">
    <h1>The Gettysburg Address</h1>
    <h2>Delivered by Abraham Lincoln on November 19, 1863</h2>
    <h3>Beginning with the iconic phrase <q>Four score and seven years ago,</q> this speech is generally regarded as the most famous in American history.</h3>
  <div class="speech">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/915932/lincoln.jpg" alt="A Portrait of the Sixteenth President">
    <p>Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.</p>
    <p>Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.</p>
    <p>But, in a larger sense, we can not dedicate &mdash; we can not consecrate &mdash; we can not hallow &mdash; this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us &mdash; that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion &mdash; that we here highly resolve that these dead shall not have died in vain &mdash; that this nation, under God, shall have a new birth of freedom &mdash; and that government of the people, by the people, for the people, shall not perish from the earth.</p>


<div class="voice-table">
  <h2>Names and Languages Available</h2>
  <h3>Use these exact names when setting a voice manually.</h3>

              body {
  width: 95%;
  max-width: 800px;
  font-family: tahoma;
  background-color: #eee;
  padding: 20px 0 20px 0;
  margin: 0 auto 0 auto;

div.speech img {
  float: left;
  width: 20%;
  margin: 5px 10px 5px 0;

h1 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px 0;

h2 {
  font-size: 16px;
  text-align: center;
  margin: 0 0 10px 0;

h3 {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  margin: 0 0 10px 0;

p {
  font-size: 14px;
  line-height: 1.4;

button {
  margin: 8px 5px 5px 0;

div.articulate-area {
  font-family: monospace;
  font-size: 14px;
  text-align: center;
  padding: 0 0 15px 0;
  border-bottom: 1px dotted #666;
  margin: 0 0 20px 0;

div.articulate-area div {
  margin: 0 0 10px 0;

div.articulate-area input {
  width: 250px;

div.voice-table {
  display: none;

table {
  margin: 30px auto 0 auto;
  border-collapse: collapse;
  border-spacing: 0;

table th {
  text-align: left;
  padding: 7px;

table td {
  padding: 7px 7px 7px 5px;

table td:first-child {
  padding-right: 40px;

table td:last-child {
  text-align: center;

table tr:nth-child(odd) td {
  background-color: #ddd;
              function create(obj) {
  $().articulate('getVoices', obj, 'Choose a New Voice');

function speak(obj) {

function pause() {

function resume() {

function stop() {

function populate() {
    var voices = $().articulate('getVoices');
    for (var i = 0; i < voices.length; i++) {
      voiceName = voices[i].name;
      voiceLang = voices[i].language;
      row = "<tr><td>" + voiceName + "</td>";
      row += "<td>" + voiceLang + "</td></tr>";
      $('table tbody').append(row);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................