Voice In Support
  • Home
  • Introduction
    • Getting Started
    • Voice Commands
    • Dictation Language
    • Options Page
  • Voice In Plus
    • Upgrade To Plus
    • Activate Plus
    • Voice In Plus Guide
    • Custom Voice Commands
    • Action Commands For Keyboard Shortcuts
    • Voice Commands Examples
      • Customer Support
      • Legal/Law
      • Healthcare
  • AudioScribe
    • Introduction & Getting Started
    • Using AudioScribe
    • AudioScribe Pro
    • Configure Webook
    • Troubleshooting & Support
  • Troubleshooting
    • Troubleshooting Guide
    • Enable Microphone Access
    • Fix Microphone Access Denied By System
  • Help
    • FAQ
    • 💳Account & Billing
      • How to activate Voice In Plus on a new computer/profile?
    • âš¡Features
      • How to enable dictation on local file URLs?
      • How to use Voice In on the new tab page?
      • How to enable voice typing in Incognito Mode?
      • How to enable or disable Advanced Mode?
      • How to enable and disable Dictation Box?
      • How to hide/show the Voice In page pop-up?
      • Languages Supported
      • What is Advanced Mode?
      • Keyboard Shortcuts
      • Dictating numbers
      • Remove Censorship/Profanity Filter
      • How to disable built-in voice commands?
      • How to spell an uncommon word?
      • How to enable Direct Insert?
    • 🎤General
      • Why is Voice In disabled on certain websites ?
      • Is Voice In HIPAA compliant?
      • How to use Voice In in a popup window?
      • What permissions does Voice In extension require?
      • Using Voice In for voice typing in Google Docs
      • What sites does Voice In Chrome Extension work on?
      • How to change the default microphone used by Voice In?
      • Make your web app Voice In compatible
      • Hiding the "Voice In started debugging this browser" Message
      • How to correct capitalization mistakes?
      • How to enable Voice In Plus in Microsoft Edge?
      • Voice In Security Approach and Architecture
    • Privacy Policy
    • Contact Us
Powered by GitBook
On this page
  1. Help
  2. General

Make your web app Voice In compatible

PreviousHow to change the default microphone used by Voice In?NextHiding the "Voice In started debugging this browser" Message

Last updated 7 months ago

Note: This is a technical guide meant for developers

The Voice In Chrome extension lets users use their voice to type on a website. Voice In can be used to dictate into the following HTML elements:

  1. input fields <input>

  2. content editable e.g. <div contenteditable="true" >

  3. textarea <textarea>

If the input box you want your users to dictate into conforms to one of the three above, Voice In should work by default.

If Voice In is not working on your web page, here are common reasons why:

  1. Not a Live Page: Voice In Chrome extension only gets inserted into pages that have URLs starting with http:// or https:// . Voice In will not work on the new tab page, chrome internal pages / other Chrome extension pages (these will have URLs starting with chrome://), and on pages starting with file:// . One exception to the rule is the Chrome Webstore. Voice In also doesn't work in the Chrome Webstore - no extension works on the Chrome Webstore.

  2. Input handling: If you use Javascript to modify the inserted user input, Voice-in text insertions may not work. To work around this, consider listening to the change event instead of keyboard events like keydown.

  3. Paste handling: Voice In's advanced mode requires the ability to paste in the page via Javascript. Voice In correctly formats the text. To prevent the underlying page from interfering, we do something like window.addEventListener('paste', (e) => {if (recognizing) {e.stopImmediatePropagation();}}, true); Make sure your page doesn't rely on receiving the paste event.

  4. IFrame: If your webpage loads the input textbox via an iframe and the iframe is loading from a different host, then the Chrome extension will not be able to access the textbox due to content security policies. You can either load the input textbox directly without an iframe or, alternatively, enable cross-origin access to your iframe. Read more

🎤
here.