{"id":19474593,"url":"https://github.com/tomasc/dragonfly_audio","last_synced_at":"2025-11-19T01:02:32.368Z","repository":{"id":52431493,"uuid":"44330704","full_name":"tomasc/dragonfly_audio","owner":"tomasc","description":"Wraps common audio-related tasks into Dragonfly analysers and processors.","archived":false,"fork":false,"pushed_at":"2025-09-02T19:00:33.000Z","size":6244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T09:05:42.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomasc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-15T16:30:34.000Z","updated_at":"2025-09-02T18:59:31.000Z","dependencies_parsed_at":"2022-09-12T09:30:14.228Z","dependency_job_id":null,"html_url":"https://github.com/tomasc/dragonfly_audio","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/tomasc/dragonfly_audio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/dragonfly_audio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fdragonfly_audio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283377024,"owners_count":26825871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-08T02:00:06.281Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T19:25:46.071Z","updated_at":"2025-11-19T01:02:32.352Z","avatar_url":"https://github.com/tomasc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dragonfly Audio\n\n[![Build Status](https://travis-ci.org/tomasc/dragonfly_audio.svg)](https://travis-ci.org/tomasc/dragonfly_audio) [![Gem Version](https://badge.fury.io/rb/dragonfly_audio.svg)](http://badge.fury.io/rb/dragonfly_audio) [![Coverage Status](https://img.shields.io/coveralls/tomasc/dragonfly_audio.svg)](https://coveralls.io/r/tomasc/mongoid_recurring)\n\nWraps common audio-related tasks into [Dragonfly](http://markevans.github.io/dragonfly) analysers and processors.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'dragonfly_audio'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dragonfly_audio\n\n## Dependencies\n\nThis gem uses [taglib-ruby](https://github.com/robinst/taglib-ruby) to read and write meta data and properties of audio files.\n\n## Usage\n\nAdd the `:audio` plugin to your Dragonfly config block:\n\n```ruby\nDragonfly.app.configure do\n  plugin :audio\nend\n```\n\n## Supported Formats\n\nList of supported formats is available as:\n\n```ruby\nDragonflyAudio::SUPPORTED_FORMATS # =\u003e [\"aif\", \"aiff\", …]\n```\n\n## Analysers\n\n### audio_properties\n\nReads properties and tags of an audio file:\n\n```ruby\naudio.audio_properties\n\n# =\u003e {\n#   title: 'The Ship Was Sailing',\n#   artist: 'Vito Ricci',\n#   album: 'Music From Memory',\n#   year: '1985',\n#   track: 7\n#   genre: 'Ambient',\n#   comment: 'This Music was originally composed for \"The Memory Theatre of Gulio Camillo\" by Matthew Maguire. A Creation production premiered at La Mama Spring 1985 thanks to Bonnie for not laughing to Justin for laughing to Jon Gordron for electronic bondage produced by Jonathan Mann for Pangea Productions recorded 8/85 at Chiens Interdits Studio in a big cover production by Ann Rower cover design by Paul Leone * all compositions by Vito Ricci * play it loud',\n#   length: 345,\n#   length_in_seconds: 345,\n#   length_in_milliseconds: 345000,\n#   bitrate: 192,\n#   channels: 2,\n#   sample_rate: 44_100\n# }\n```\n\n## Processors\n\n### tag\n\nSets the file's meta information:\n\n```ruby\naudio.tag(artist: 'Ariel Kalma', album: 'Le Temps Des Moissons', track: 'Bakafrika')\n```\n\nPermissible properties:\n* album\n* artist\n* comment\n* genre\n* tag\n* title\n* track\n* year\n\n### album_art\n\nSets the file's album art:\n\n```ruby\naudio.album_art('path_to_file')\n```\n\nNote that this only works for mp3 files.\n\n## Contributing\n\n1. Fork it ( https://github.com/tomasc/dragonfly_audio/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fdragonfly_audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fdragonfly_audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fdragonfly_audio/lists"}