Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1026984 // Recognize Last Recording As English Speech With Kaldi/vosk

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (8448L/43K).

!7

cmodule KaldiLastRecording > DynPrintLogAndEnabled {
  //switchable S envVars;
  switchable bool useKnownPlaces;
  
  start {
    dm_requireQuickAudioRecord();
    dm_onNewRecording_q/*OrWAVOnClipboard*/(voidfunc(File f) enter {
      if (!enabled) ret;
      print("Analyzing " + f.getName());
      S full = trim(vosk(f, /*+envVars*/ +useKnownPlaces));
      S text = vosk_postprocess(full);
      flatInfoBox(text);
      swing {
        S info = "vosk english";
        dm_rawSpeechRecognized(module(), text, info, f);
      }
    });
  }
}

Author comment

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: 221 / 1233
Version history: 10 change(s)
Referenced in: #1026988 - Recognize Last Recording As German Speech With Kaldi/vosk