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

23
LINES

< > BotCompany Repo | #1026972 // Recognize Last Recording As English Speech With Wit.AI [Concurrent MP3 Encoding Version]

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

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

!7

cmodule WitAILastRecording > DynPrintLogAndEnabled {
  start {
    dm_requireQuickAudioRecord();
    dm_require("#1026970/ConcurrentMP3");
    dm_vmBus_onMessage_q newMP3Recording(voidfunc(File f) enter {
      if (!enabled) ret;
      //print("Analyzing " + f.getName());
      fS text = witAI_recognizeMP3(f);
      flatInfoBox(text);
      swing {
        S info = "wit.ai english";
        if (empty(text))
          katze_userSaid(info, "?");
        else {
          temp dm_generalMap_tempPut('topInputInfo, info);
          dm_setAIBarTextAndFire(text);
        }
      }
    });
  }
}

Author comment

Began life as a copy of #1019326

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: #1026972
Snippet name: Recognize Last Recording As English Speech With Wit.AI [Concurrent MP3 Encoding Version]
Eternal ID of this version: #1026972/1
Text MD5: a2b46cf1406f35b812e2abd9ae7ef0cb
Transpilation MD5: a0a2d7f389dac6ab06e7e7c447ef92aa
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-05 00:51:17
Source code size: 619 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 371
Referenced in: #1026976 - Recognize Last Recording As English Speech With Wit.AI [Fully Pipelined Version]