All Projects → chrvadala → create-music-stream

chrvadala / create-music-stream

Licence: MIT license
Creates a PCM 16 bit Little Endian Stream from a mp3 file or youtube video

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to create-music-stream

Jiosaavnapi
An unofficial API for JioSaavn written in Python 3
Stars: ✭ 123 (+485.71%)
Mutual labels:  stream, mp3
fridgefm-radio-core
Simple lightweight package for creating your own radio station via NodeJS heavily inspired by Shoutcast and Icecast.
Stars: ✭ 32 (+52.38%)
Mutual labels:  stream, mp3
Audioplayer
Audio Player for Nextcloud and ownCloud
Stars: ✭ 179 (+752.38%)
Mutual labels:  stream, mp3
Swyh
Stream the sound from your PC to an UPnP/DLNA device
Stars: ✭ 383 (+1723.81%)
Mutual labels:  stream, mp3
sox-stream
📣 A stream-friendly wrapper around SoX
Stars: ✭ 50 (+138.1%)
Mutual labels:  stream, mp3
ZWAudioRecordTool
集合了MP3和AMR转录,线上正常运行(Recording MP3 and AMR In iOS App)
Stars: ✭ 32 (+52.38%)
Mutual labels:  mp3
Wortuhr ESP8266
Wortuhr mit ESP8266 WeMos D1 mini und NeoPixel WS2812B LEDs mit mp3 Sounds, Animationen, Transitions, Events und Spiele
Stars: ✭ 33 (+57.14%)
Mutual labels:  mp3
Ttrpc
GRPC for low-memory environments
Stars: ✭ 236 (+1023.81%)
Mutual labels:  stream
Subtitle.js
Stream-based library for parsing and manipulating subtitle files
Stars: ✭ 234 (+1014.29%)
Mutual labels:  stream
netease-music-cracker
🎵 缓存文件转换为 MP3 文件
Stars: ✭ 406 (+1833.33%)
Mutual labels:  mp3
nipper
🌶 💽 Nipper - Youtube playlist (& video) ripper
Stars: ✭ 23 (+9.52%)
Mutual labels:  mp3
DFPlayerMini Fast
Fast and easy to understand Arduino library to use the DFPlayer Mini MP3 module from DFRobot.com. This is a huge improvement (both in terms of execution speed and simplicity) to the standard library provided by DFRobot.com.
Stars: ✭ 164 (+680.95%)
Mutual labels:  mp3
DownOnSpot
🎵 A Spotify music and playlist downloader written in Rust which also works with a free Spotify account
Stars: ✭ 309 (+1371.43%)
Mutual labels:  mp3
vscode-mediaplayer
Mediaplayer extention for VS Code
Stars: ✭ 18 (-14.29%)
Mutual labels:  mp3
meta-audio
A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
Stars: ✭ 32 (+52.38%)
Mutual labels:  mp3
Youtube-DL-GUI
Graphical User Interace built around youtube-dl CLI
Stars: ✭ 38 (+80.95%)
Mutual labels:  mp3
Multistream
A stream that emits multiple other streams one after another (streams3)
Stars: ✭ 237 (+1028.57%)
Mutual labels:  stream
gropple
Server and bookmarklet to download files via youtube-dl directly from your browser. Cross platform single binary installation, web browser configurable.
Stars: ✭ 33 (+57.14%)
Mutual labels:  mp3
LameVST
mp3 as VST-effect
Stars: ✭ 35 (+66.67%)
Mutual labels:  mp3
media-dupes
a minimal content duplicator for common media services like youtube
Stars: ✭ 53 (+152.38%)
Mutual labels:  mp3

create-music-stream

Creates a PCM 16 bit Little Endian Stream from a mp3 file or youtube video

chrvadala Test Coverage Status npm Downloads Donate

Usage

1. Install native dependencies

sudo apt-get install libasound2-dev ffmpeg

2. Install package

yarn add create-music-stream

3. Get music stream

const createMusicStream = require('create-music-stream')
const stream = createMusicStream(source, logger)

Examples

Stream local MP3 file

const Speaker = require('speaker')
const createMusicStream = require('create-music-stream')

createMusicStream('./track.mp3', console.log)
  .pipe(new Speaker())

Stream Youtube audio

const Speaker = require('speaker')
const createMusicStream = require('create-music-stream')

createMusicStream('https://www.youtube.com/watch?v=fz4MzJTeL0c', console.log)
  .pipe(new Speaker())

Changelog

  • 1.0 - First public version
  • 1.1 - Adds tests, Adds standard.js, Enables gh-actions, Upgrades deps
  • 1.2 - Upgrades deps

FAQ

  • If the YouTube player doesn't work read this article What if it stops working?
  • If speaker dependency is unable to build read this doc Audio Backend Selection
  • If you want to force ffmpeg binary path you can force it with the following code snippet
require('fluent-ffmpeg')
  .setFfmpegPath('/your/path/to/ffmpeg')

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].