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

12
LINES

< > BotCompany Repo | #1015723 // Google Cloud Speech, simplified version [OK!]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6058L/40K).

1  
!7
2  
3  
p-tt {
4  
  S base64 = base64encode(loadBinaryFile(loadLibrary(#1400029)));
5  
  print("Data size: " + l(base64));
6  
7  
  S requestJson = jsonEncode(litmap(
8  
    config := litmap(languageCode := "en-US"),
9  
    audio := litmap(content := base64)));
10  
11  
  print(doPostJSON(requestJson, "https://speech.googleapis.com/v1/speech:recognize?key=" + youTubeDataAPIKey()));
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015723
Snippet name: Google Cloud Speech, simplified version [OK!]
Eternal ID of this version: #1015723/17
Text MD5: ebdd22695a85d8c78bbaf30d338dde62
Transpilation MD5: fbb66059ab739634b7aa8721b5a444e8
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-25 18:06:11
Source code size: 367 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 407 / 1051
Version history: 16 change(s)
Referenced in: [show references]