/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./app.js":
/*!****************!*\
  !*** ./app.js ***!
  \****************/
/***/ (() => {

eval("let recognizer;\nconst transcriptionDiv = document.createElement(\"div\");\ndocument.body.appendChild(transcriptionDiv);\n\nwindow.startTranscription = async function() {\n  const speechConfig = new SpeechSDK.SpeechConfig.fromSubscription(\n    \"8720fb2091b1458c9b9457f167bd7fb5\",\n    \"uaenorth\"\n  );\n  speechConfig.speechRecognitionLanguage = \"ar-SA\";\n  const audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();\n  recognizer = new SpeechSDK.SpeechRecognizer(speechConfig, audioConfig);\n\n  recognizer.recognizing = (s, e) => {\n    console.log(`RECOGNIZING: Text=${e.result.text}`);\n    transcriptionDiv.textContent = e.result.text;\n  };\n\n  recognizer.recognized = (s, e) => {\n    if (e.result.reason === SpeechSDK.ResultReason.RecognizedSpeech) {\n      console.log(`RECOGNIZED: Text=${e.result.text}`);\n      // const div = document.createElement(\"div\");\n      // div.textContent = e.result.text;\n      // document.getElementById(\"transcriptions\").appendChild(div);\n    } else if (e.result.reason === SpeechSDK.ResultReason.NoMatch) {\n      console.log(\"NOMATCH: Speech could not be recognized.\");\n    }\n  };\n\n  recognizer.startContinuousRecognitionAsync();\n}\n\nwindow.stopTranscription = function() {\n  recognizer.stopContinuousRecognitionAsync();\n}\n\n\n\n//# sourceURL=webpack://live/./app.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = {};
/******/ 	__webpack_modules__["./app.js"]();
/******/ 	
/******/ })()
;