{"id":30709791,"url":"https://github.com/sadmadlad/awaaz","last_synced_at":"2026-01-20T17:32:56.040Z","repository":{"id":308346372,"uuid":"1032488030","full_name":"SadMadLad/awaaz","owner":"SadMadLad","description":"🎶 Audio with Ruby 🎶","archived":false,"fork":false,"pushed_at":"2025-08-30T07:22:06.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-11T04:44:29.039Z","etag":null,"topics":["audio-analysis","audio-processing","ruby","rubygems"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/awaaz","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/SadMadLad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-05T11:31:27.000Z","updated_at":"2025-08-30T07:22:09.000Z","dependencies_parsed_at":"2025-08-05T13:27:36.032Z","dependency_job_id":"3d4486a7-df23-4f68-8337-ac91fbfdb099","html_url":"https://github.com/SadMadLad/awaaz","commit_stats":null,"previous_names":["sadmadlad/awaaz"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SadMadLad/awaaz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadMadLad%2Fawaaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadMadLad%2Fawaaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadMadLad%2Fawaaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadMadLad%2Fawaaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SadMadLad","download_url":"https://codeload.github.com/SadMadLad/awaaz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SadMadLad%2Fawaaz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278437956,"owners_count":25986760,"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-10-05T02:00:06.059Z","response_time":54,"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":["audio-analysis","audio-processing","ruby","rubygems"],"created_at":"2025-09-02T23:34:30.926Z","updated_at":"2025-10-05T09:41:55.673Z","avatar_url":"https://github.com/SadMadLad.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Awaaz\n\nAwaaz is a Ruby gem for working with audio, from decoding to analysis, making it easier to process and understand sound in your projects.\n\n## Requirements\n\nAwaaz can decode audio in two ways:\n\n#### 1. Shell-based decoding  \nYou can install **any one** of the following:\n\n- [`ffmpeg`](https://github.com/FFmpeg/FFmpeg) – supports most formats, including MP3.  \n- [`sox`](https://github.com/chirlu/sox) – also supports most formats, including MP3.  \n- [`mpg123`](https://github.com/madebr/mpg123) – **MP3 only**.\n\n#### 2. Library-based decoding and resampling  \n- [`libsndfile`](https://github.com/libsndfile/libsndfile) – reads audio files (but **cannot** read MP3 files).  \n- [`libsamplerate`](https://github.com/libsndfile/libsamplerate) – resamples audio samples when using `libsndfile`.  \n\n⚠ **Important**:  \n- If you need MP3 support with the library-based method, you **must also** install one of:  \n  - `ffmpeg`  \n  - `sox`  \n  - `mpg123`\n\n#### Additional Requirement\n- The Ruby gem [`numo-narray`](https://github.com/ruby-numo/numo-narray) is required for numerical array operations.\n\n### Installation Examples\n\n- **Just ffmpeg** → works for all formats (no `libsndfile` or `libsamplerate` needed).  \n- **Just sox** → works for all formats (no `libsndfile` or `libsamplerate` needed).  \n- **libsndfile + libsamplerate** → works for non-MP3 formats. For MP3, add `ffmpeg`, `sox`, or `mpg123`.  \n- **Everything installed** → maximum flexibility.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```bash\nbundle add awaaz\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```bash\ngem install awaaz\n```\n\n## Usage\n\n```ruby\n# To decode the audio file\nsamples, sample_rate = Awaaz.load(\"path/to/audio_file\")\n```\n\n## Documentation\n\n[Link to Documentation](https://www.rubydoc.info/gems/awaaz)\n\nCheckout [this demo](https://github.com/SadMadLad/awaaz-demo) to get more idea of some use cases of the gem\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also 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`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [Awaaz](https://github.com/SadMadLad/awaaz). This project is intended to be a safe, welcoming space for collaboration, and contributors.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadmadlad%2Fawaaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadmadlad%2Fawaaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadmadlad%2Fawaaz/lists"}