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

20
LINES

< > BotCompany Repo | #1026965 // Recognize Last Recording As English Speech With DeepSpeech

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

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

1  
!7
2  
3  
cmodule DeepSpeechLastRecording > 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  
      fS text = deepspeech(f, /*+envVars*/ +useKnownPlaces);
13  
      flatInfoBox(text);
14  
      swing {
15  
        S info = "DeepSpeech english";
16  
        dm_rawSpeechRecognized(module(), text, info, f);
17  
      }
18  
    });
19  
  }
20  
}

Author comment

Began life as a copy of #1019326

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, unoaxrwscvea, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026965
Snippet name: Recognize Last Recording As English Speech With DeepSpeech
Eternal ID of this version: #1026965/11
Text MD5: 8b43c241cc06874a3ef7991aebbf9ca6
Transpilation MD5: 85a9acf61c21d31453db9dc888192706
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:21:08
Source code size: 542 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 5936
Version history: 10 change(s)
Referenced in: [show references]