{"id":25298679,"url":"https://github.com/fmotalleb/nu_plugin_audio_hook","last_synced_at":"2025-10-28T04:33:16.434Z","repository":{"id":205936717,"uuid":"715289090","full_name":"FMotalleb/nu_plugin_audio_hook","owner":"FMotalleb","description":"A nushell plugin to make and play sounds","archived":false,"fork":false,"pushed_at":"2024-10-16T20:18:06.000Z","size":125,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T00:36:28.169Z","etag":null,"topics":["audio-player","beeper","id3-reader","noise-generator","nushell-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/FMotalleb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2023-11-06T20:59:28.000Z","updated_at":"2024-10-16T20:18:10.000Z","dependencies_parsed_at":"2023-11-15T06:25:24.252Z","dependency_job_id":"ce1947c5-1382-41b8-9485-30525121e339","html_url":"https://github.com/FMotalleb/nu_plugin_audio_hook","commit_stats":null,"previous_names":["fmotalleb/nu_plugin_audio_hook"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_audio_hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_audio_hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_audio_hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_audio_hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMotalleb","download_url":"https://codeload.github.com/FMotalleb/nu_plugin_audio_hook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238597387,"owners_count":19498397,"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":["audio-player","beeper","id3-reader","noise-generator","nushell-plugin"],"created_at":"2025-02-13T04:42:33.753Z","updated_at":"2025-10-28T04:33:16.414Z","avatar_url":"https://github.com/FMotalleb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎵 nu_plugin_audio_hook  \n\nA [Nushell](https://www.nushell.sh/) plugin for generating and playing sounds. Supports beeping, tone generation, metadata manipulation, and playback for multiple audio formats.  \n\n---\n\n## ✨ Features  \n\n- **`sound beep`** → Play a simple beep sound.  \n- **`sound make`** → Generate a noise with a given frequency and duration.  \n- **`sound meta`** → Retrieve metadata (duration, artist, album, etc.) from an audio file.  \n- **`sound meta set`** → Modify ID3 metadata frames in an audio file. [More about ID3](https://docs.puddletag.net/source/id3.html).  \n- **`sound play`** → Play an audio file. By default, supports FLAC, WAV, MP3, and OGG. Use the `all-decoders` feature to enable AAC and MP4 playback.  \n\n---\n\n## 📌 Usage  \n\n### **Generate a simple noise**  \n\n```bash\nsound make 1000 200ms\n```  \n\n### **Generate a noise sequence**  \n\n```bash\n[ 300.0, 500.0, 1000.0, 400.0, 600.0 ] | each { |it| sound make $it 150ms }\n```  \n\n### **Play an audio file (first 3 seconds only)**  \n\n```bash\nsound play audio.mp3 -d 3sec\n```  \n\n### **Retrieve metadata from an audio file**  \n\n```bash\nsound meta audio.mp4\n```  \n\nExample Output:  \n\n```\n╭──────────────┬────────────────────────────╮\n│ duration     │ 4min 5sec 551ms 20µs 408ns │\n│ artist       │ SINGER                     │\n│ title        │ TITLE                      │\n│ album        │ ALBUM                      │\n│ album_artist │ SINGER                     │\n│ track_no     │ 1                          │\n│ total_tracks │ 1                          │\n╰──────────────┴────────────────────────────╯\n```  \n\n### **Modify ID3 metadata (change the artist tag)**  \n\n```bash\nsound meta set audio.mp3 -k TPE1 -v new-artist\n```  \n\n### **Play an MP3 file using its metadata duration**  \n\n```bash\nsound meta audio.mp4 | sound play audio.mp3 -d $in.duration\n```  \n\n### **List all available ID3 frame names**  \n\n```bash\nsound meta list\n```  \n\n---\n\n## 🔧 Installation  \n\n### 🚀 Recommended: Using [nupm](https://github.com/nushell/nupm)  \n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_audio_hook.git  \nnupm install --path nu_plugin_audio_hook -f  \n```  \n\n### 🛠️ Manual Compilation  \n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_audio_hook.git  \ncd nu_plugin_audio_hook  \ncargo build -r --features=all-decoders  \nplugin add target/release/nu_plugin_audio_hook  \n```  \n\n### 📦 Install via Cargo (using git)  \n\n```bash\ncargo install --git https://github.com/FMotalleb/nu_plugin_audio_hook.git --features=all-decoders  \nplugin add ~/.cargo/bin/nu_plugin_audio_hook  \n```  \n\n### 📦 Install via Cargo (crates.io) _Not Recommended_  \n\u003e\n\u003e _Since I live in Iran and crates.io often restricts package updates, the version there might be outdated._  \n\n```bash\ncargo install nu_plugin_audio_hook --features=all-decoders  \nplugin add ~/.cargo/bin/nu_plugin_audio_hook  \n```  \n\n---\n\n## 🔍 Supported Features  \n\nYou can enable specific features when compiling or installing:  \n\n- **`full`** → Enables all features below.  \n- **`flac`** (default) → FLAC format support.  \n- **`vorbis`** (default) → OGG Vorbis support.  \n- **`wav`** (default) → WAV format support.  \n- **`minimp3`** → MP3 decoding.  \n- **`symphonia-all`** → Enables all Symphonia-based decoders:  \n  - `symphonia-aac` → AAC decoding.  \n  - `symphonia-flac` → FLAC decoding.  \n  - `symphonia-isomp4` → MP4 (audio) decoding.  \n  - `symphonia-mp3` (default) → MP3 decoding.  \n  - `symphonia-vorbis` → OGG Vorbis decoding.  \n  - `symphonia-wav` → WAV decoding.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmotalleb%2Fnu_plugin_audio_hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmotalleb%2Fnu_plugin_audio_hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmotalleb%2Fnu_plugin_audio_hook/lists"}