{"id":25626679,"url":"https://github.com/lenage/audiomator","last_synced_at":"2025-11-13T08:01:41.394Z","repository":{"id":59150817,"uuid":"67781597","full_name":"lenage/audiomator","owner":"lenage","description":"A ffmpeg wrapper for ruby to easy split and processing audio files.","archived":false,"fork":false,"pushed_at":"2016-09-09T08:44:48.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T15:31:06.422Z","etag":null,"topics":["ffmpeg-wrapper","ruby"],"latest_commit_sha":null,"homepage":null,"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/lenage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-09T08:34:55.000Z","updated_at":"2017-02-23T06:34:00.000Z","dependencies_parsed_at":"2022-09-13T11:00:35.352Z","dependency_job_id":null,"html_url":"https://github.com/lenage/audiomator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenage%2Faudiomator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenage%2Faudiomator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenage%2Faudiomator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenage%2Faudiomator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lenage","download_url":"https://codeload.github.com/lenage/audiomator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239897992,"owners_count":19715208,"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","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":["ffmpeg-wrapper","ruby"],"created_at":"2025-02-22T16:57:58.128Z","updated_at":"2025-11-13T08:01:36.355Z","avatar_url":"https://github.com/lenage.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Audiomator\n\nA ffmpeg wrapper for ruby to easy split and processing audio files.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'audiomator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install audiomator\n\n## Usage\n\n    ## Load an audio file\n    @audio_file = \"PATH/TO/AUDIO_FILE/FILENAME.m4a\"\n    @record = Audiomator::Record.new(@audio_file)\n\n    # Get audio metadata\n    @record.duration\n    @record.bitrate\n    @record.size\n    @record.sample_rate\n    @record.codec\n\n    # any FFMPEG errors when loading audio\n    @record.valid?\n\n    # clip audio with start_time and end_time\n    @start_time = '00:00:00.59'\n    @end_time = '00:00:01.53'\n    @record.clip(@start_time, @end_time)\n\n    # Adding metadata to output audio file\n    metadata = {description: 'This is AudioMator'}\n    @record.clip(@start_time, @end_time, nil, metadata: metadata)\n\n    # Add prefix to save all clips to a specify folder\n    @record.clip(@start_time, @end_time, nil, prefix: 'clips')\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/lenage/audiomator/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%2Flenage%2Faudiomator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flenage%2Faudiomator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenage%2Faudiomator/lists"}