Crates.io | nu_plugin_audio_hook |
lib.rs | nu_plugin_audio_hook |
version | 0.2.6 |
source | src |
created_at | 2023-11-07 12:50:09.89821 |
updated_at | 2024-10-16 20:19:36.669478 |
description | A nushell plugin to make and play sounds |
homepage | https://github.com/FMotalleb/nu_plugin_audio_hook |
repository | https://github.com/FMotalleb/nu_plugin_audio_hook |
max_upload_size | |
id | 1028048 |
size | 96,236 |
A nushell plugin to make and play sounds
all-decoders
feature to include aac and mp4 (audio)~> sound make 1000 200ms
~> [ 300.0, 500.0, 1000.0, 400.0, 600.0 ] | each { |it| sound make $it 150ms }
~> sound play audio.mp3 -d 3sec
~> sound meta audio.mp4
╭──────────────┬────────────────────────────╮
│ duration │ 4min 5sec 551ms 20µs 408ns │
│ artist │ SINGER │
│ title │ TITLE │
│ album │ ALBUM │
│ album_artist │ SINGER │
│ track_no │ 1 │
│ total_tracks │ 1 │
╰──────────────┴────────────────────────────╯
~> sound meta set audio.mp3 -k TPE1 -v new-artist
╭──────────────┬────────────────────────────╮
│ duration │ 4min 5sec 551ms 20µs 408ns │
│ artist │ new-artist │
│ title │ TITLE │
│ album │ ALBUM │
│ album_artist │ SINGER │
│ track_no │ 1 │
│ total_tracks │ 1 │
╰──────────────┴────────────────────────────╯
~> sound meta audio.mp4 | sound play audio.mp3 -d $in.duration
~> sound meta list
╭────┬─────────────────────────┬────────────╮
│ # │ normalized │ frame_name │
├────┼─────────────────────────┼────────────┤
│ 0 │ audiolength │ TLEN │
│ 1 │ mood │ TMOO │
...
│ 58 │ track │ TRCK │
├────┼─────────────────────────┼────────────┤
│ # │ normalized │ frame_name │
╰────┴─────────────────────────┴────────────╯
supported features:
using nupm
git clone https://github.com/FMotalleb/nu_plugin_audio_hook.git
nupm install --path nu_plugin_audio_hook -f
git clone https://github.com/FMotalleb/nu_plugin_audio_hook.git
cd nu_plugin_audio_hook
cargo build -r --features=all-decoders
plugin add target/debug/nu_plugin_audio_hook
cargo install nu_plugin_audio_hook --features=all-decoders
plugin add ~/.cargo/bin/nu_plugin_audio_hook