Skip to content

Instantly share code, notes, and snippets.

View Saymon85's full-sized avatar

Nemanja Simeunovic Saymon85

View GitHub Profile
@9jaswag
9jaswag / index.js
Last active April 7, 2018 01:33
speech recogniton
window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition;
const synth = window.speechSynthesis;
const recognition = new SpeechRecognition();
const icon = document.querySelector('i.fa.fa-microphone')
let paragraph = document.createElement('p');
let container = document.querySelector('.text-box');
container.appendChild(paragraph);
const sound = document.querySelector('.sound');