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).

!7

// reacts to new recording or file path on clipboard
sclass WitAILastRecording > DynSCP {
  start {
    dm_onNewRecordingOrWAVOnClipboard(voidfunc(final File f) {
      temp enter();
      print("Analyzing " + f.getName());
      LS out = /*pcallFParallel*/pcallFAll_getValues(
        f -> S { witAI_recognizeWAV(f, 'english) },
        f -> S { witAI_recognizeWAV(f, 'german) });
      infoBox(or2(first(out), "?") + "\n" + or2(second(out), "?"));
      if (anyNempties(out))
        vmBus_send('englishGermanRecognized, first(out), second(out));
    });
  }
}

Author comment

Began life as a copy of #1019326

download  show line numbers  debug dex   

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

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: 178 / 424
Version history: 7 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019331 & http://1019331.tinybrain.de