nu_plugin_audio_hook
A nushell plugin to make and play sounds
Usage
- sound beep - play a beep sound
- sound make - creates a noise with given frequency and duration
- sound meta - get duration and meta data of an audio file
- sound meta set - set id3 frame on the audio file (more about id3 frames)
- sound play - play an audio file, by default supports flac,Wav,mp3 and ogg files, install plugin with
all-decodersfeature to include aac and mp4 (audio)
Examples
- to create a simple noise:
- create a simple noise sequence
|
- play first 3seconds of an audio
- load metadata of an audio file
- to change an id3 frame you can use this command (more about id3 frames)
- to correctly play a mp3 audio file you need to first load its metadata and then use its duration to play it
|
Installing
-
supported features:
- full (will enable everything below)
- flac (default)
- vorbis (default)
- wav (default)
- minimp3
- symphonia-all (will enable everything below)
- symphonia-aac
- symphonia-flac
- symphonia-isomp4
- symphonia-mp3 (default)
- symphonia-vorbis
- symphonia-wav
-
via git
- or using cargo