Libraryless. Click here for Pure Java version (3333L/25K/68K).
!7 p { if (isMainProgram()) serveHttpAndOpenBrowser(); } html { ret h3("Chrome Spracherkennungstest") + loadJQuery() + hdiv("Ergebnisse erscheinen hier", id := 'results, style := "margin: 10px") + hjavascript([[ try { var recognition = new webkitSpeechRecognition(); recognition.lang = "de-DE"; recognition.onresult = function(event) { var result = event.results[0]; var transcript = result[0].transcript; $("#results").html("Transcript: " + transcript); } $("#results").html("Bereit"); //recognition.start(); } catch (err) { $("#results").html("Falscher Browser"); } ]]) + tag('button, "Starte Erkennung", onclick := "recognition.start()", type := 'button); }
Began life as a copy of #1009223
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009224 |
Snippet name: | Chrome Spracherkennungstest [WORKS] |
Eternal ID of this version: | #1009224/4 |
Text MD5: | 8617d00dbba3ce86a54c6fc629d63d8b |
Transpilation MD5: | 605f30acd7bd699972307a5934cbf6e6 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-20 17:29:24 |
Source code size: | 787 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 445 / 4017 |
Version history: | 3 change(s) |
Referenced in: | [show references] |