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

17
LINES

< > BotCompany Repo | #1019331 // Recognize Last Recording As English & German Speech With Wit.AI

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

Uses 348K of libraries. Click here for Pure Java version (8039L/57K).

1  
!7
2  
3  
// reacts to new recording or file path on clipboard
4  
sclass WitAILastRecording > DynSCP {
5  
  start {
6  
    dm_onNewRecordingOrWAVOnClipboard(voidfunc(final File f) {
7  
      temp enter();
8  
      print("Analyzing " + f.getName());
9  
      LS out = /*pcallFParallel*/pcallFAll_getValues(
10  
        f -> S { witAI_recognizeWAV(f, 'english) },
11  
        f -> S { witAI_recognizeWAV(f, 'german) });
12  
      infoBox(or2(first(out), "?") + "\n" + or2(second(out), "?"));
13  
      if (anyNempties(out))
14  
        vmBus_send('englishGermanRecognized, first(out), second(out));
15  
    });
16  
  }
17  
}

Author comment

Began life as a copy of #1019326

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019331
Snippet name: Recognize Last Recording As English & German Speech With Wit.AI
Eternal ID of this version: #1019331/8
Text MD5: f03c46de327000dd86ec55c06869b64f
Transpilation MD5: 94f6f28b622195103daaf181263063f5
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: 2018-11-01 15:14:01
Source code size: 582 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 295 / 575
Version history: 7 change(s)
Referenced in: [show references]