指定したディレクトリにあるwavファイルを320kbpsのmp3ファイルに変換する
変換されたwavファイルは自動で削除します
- ffmpeg がインストールされていること
- Homebrew がインストールされているmacOSなら
brew install ffmpeg
で入る
- Homebrew がインストールされているmacOSなら
- trash がインストールされていること
指定したディレクトリにあるwavファイルを320kbpsのmp3ファイルに変換する
変換されたwavファイルは自動で削除します
brew install ffmpeg
で入るrequire 'httparty' | |
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'downloaded')) | |
response = HTTParty.get 'https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=hatsune_miku&json=1' | |
response | |
.parsed_response | |
.map { |r| { r['file_url'] } } | |
.tap { |r| puts r } | |
# .each { |u| |
{ | |
"title": "my confs", | |
"description": "karabiner is god", | |
"rules": [ | |
{ | |
"description": "ctrl-m to enter", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { |