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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


1. Deploy your application from the Dashboard
2. Paste your App ID below
3. Start developing with Speechly

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script type="text/javascript" src=""></script>
  <script type="text/javascript" src=""></script>
  <script type="text/javascript" src=""></script>

  <!-- Replace APP_ID_HERE with your App ID from the Speechly Dashboard. -->
  <push-to-talk-button appid="APP_ID_HERE" capturekey=" " placement="bottom"></push-to-talk-button>
  <big-transcript placement="top"></big-transcript>
  <error-panel placement="bottom"></error-panel>
  <div class="main">
    <h1>Contact form</h1>
    <p>This template provides a starting point for creating a contact form that can be interacted with using voice.</p>
    <br />
    <div class="group">
      <input id="name" type="text" />
    <div class="group">
      <label>Street address</label>
      <input id="street_address" type="text" />
    <div class="group">
      <input id="email_address" type="text" />
    <div class="group">
      <label>Phone number</label>
      <input id="phone_number" type="text" />
    <div class="group">
      <label>Date of birth</label>
      <input id="dob" type="text" />



                .main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 0;

.group {
  display: flex;
  flex-direction: column;
  margin: 16px 0;

label {
  margin-bottom: 8px;

textarea {
  box-sizing: border-box;
  padding: 8px;
  flex-grow: 1;
  font-family: inherit;
  font-size: inherit;
  border: 1px solid #aaa;
  border-radius: 4px;

p {
  line-height: 1.5;



  .addEventListener("speechsegment", (e) => {
    e.detail.entities.forEach((entity) => {
      document.getElementById(entity.type).value = entity.value;