Uses 911K of libraries. Click here for Pure Java version (8448L/43K).
1 | !7 |
2 | |
3 | cmodule KaldiLastRecording > DynPrintLogAndEnabled { |
4 | //switchable S envVars; |
5 | switchable bool useKnownPlaces; |
6 | |
7 | start { |
8 | dm_requireQuickAudioRecord(); |
9 | dm_onNewRecording_q/*OrWAVOnClipboard*/(voidfunc(File f) enter { |
10 | if (!enabled) ret; |
11 | print("Analyzing " + f.getName()); |
12 | S full = trim(vosk(f, /*+envVars*/ +useKnownPlaces)); |
13 | S text = vosk_postprocess(full); |
14 | flatInfoBox(text); |
15 | swing { |
16 | S info = "vosk english"; |
17 | dm_rawSpeechRecognized(module(), text, info, f); |
18 | } |
19 | }); |
20 | } |
21 | } |
Began life as a copy of #1026965
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026984 |
Snippet name: | Recognize Last Recording As English Speech With Kaldi/vosk |
Eternal ID of this version: | #1026984/11 |
Text MD5: | 81680459312d2c1948e97669c73479c4 |
Transpilation MD5: | e38707f9e49119b8ac5fb675cdfc8a43 |
Author: | stefan |
Category: | javax / audio recognition |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-13 13:23:13 |
Source code size: | 568 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 313 / 1349 |
Version history: | 10 change(s) |
Referenced in: | [show references] |