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

17
LINES

< > BotCompany Repo | #1013802 // Convert all .wav in a directory to .mp3 (128k)

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

Download Jar. Uses 11463K of libraries. Click here for Pure Java version (6366L/42K).

!7

p {
  print("Please enter directory.");
  bot();
}

answer {
  for (File wav : listFilesWithExtension(new File(trim(s)), "wav")) {
    File mp3 = replaceExtension(wav, "wav", "mp3");
    if (mp3.exists())
      print("File exists, skipping: " + mp3);
    else
      wavToMP3_128k(wav, mp3);
  }
  try answer "OK";
}

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: #1013802
Snippet name: Convert all .wav in a directory to .mp3 (128k)
Eternal ID of this version: #1013802/4
Text MD5: e1dc2d71e9d982aa77c6a41c67b28240
Transpilation MD5: 0356e48eba3d7c0d52e79ae63aff8f3e
Author: stefan
Category: javax / audio
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-01 12:10:49
Source code size: 335 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 503 / 1041
Version history: 3 change(s)
Referenced in: