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

1  
!7
2  
3  
cmodule WitAILastRecording > DynPrintLogAndEnabled {
4  
  start {
5  
    dm_requireQuickAudioRecord();
6  
    dm_require("#1026970/ConcurrentMP3");
7  
    dm_vmBus_onMessage_q newMP3Recording(voidfunc(File f) enter {
8  
      if (!enabled) ret;
9  
      //print("Analyzing " + f.getName());
10  
      fS text = witAI_recognizeMP3(f);
11  
      flatInfoBox(text);
12  
      swing {
13  
        S info = "wit.ai english";
14  
        if (empty(text))
15  
          katze_userSaid(info, "?");
16  
        else {
17  
          temp dm_generalMap_tempPut('topInputInfo, info);
18  
          dm_setAIBarTextAndFire(text);
19  
        }
20  
      }
21  
    });
22  
  }
23  
}

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: 158 / 370
Referenced in: [show references]