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

!7

p-tt {
  S base64 = base64encode(loadBinaryFile(loadLibrary(#1400029)));
  print("Data size: " + l(base64));

  S requestJson = jsonEncode(litmap(
    config := litmap(languageCode := "en-US"),
    audio := litmap(content := base64)));

  print(doPostJSON(requestJson, "https://speech.googleapis.com/v1/speech:recognize?key=" + youTubeDataAPIKey()));
}

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