https://github.com/victordibia/tjdj
Fun speech-based app to get TJBot playing (and dancing to) song snippets using Watson Apis and the Spotify apis
https://github.com/victordibia/tjdj
Last synced: 9 months ago
JSON representation
Fun speech-based app to get TJBot playing (and dancing to) song snippets using Watson Apis and the Spotify apis
- Host: GitHub
- URL: https://github.com/victordibia/tjdj
- Owner: victordibia
- Created: 2017-01-10T16:52:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T01:30:36.000Z (over 9 years ago)
- Last Synced: 2025-01-10T04:35:15.159Z (over 1 year ago)
- Language: JavaScript
- Size: 14.9 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tjdj [Beta - meaning still in development]
Fun speech-based app to get TJBot playing (and dancing to) song snippets using Watson Apis and the Spotify apis
## How It Works
- Listen for voice commands containing song name e.g play {cry me a river}
- Recognize the word play and then trigger a spotify search for the song name
- Download the song preview (mp3)
- Convert to wav format (for decoding and sampling)
- Play song and dance to it.
##Dependencies
This app requires mpg321 to play an mp3 file.
sudo apt-get update
sudo apt-get install mpg321
Following this, you will need to install node Dependencies
npm install
##Running
Start the application. (Note: you need sudo access)
sudo node tjdj.js
Then you should be able to speak to the microphone and ask your TJBot to play
play smooth criminal by michael jackson
play stranger in moscow
Dependencies List
- Watson Developer Cloud : [Watson Speech to Text](https://www.ibm.com/watson/developercloud/speech-to-text.html), [Watson Conversation](https://www.ibm.com/watson/developercloud/conversation.html), and [Watson Text to Speech](https://www.ibm.com/watson/developercloud/text-to-speech.html).
- [mic](https://www.npmjs.com/package/mic) npm package : for reading audio input
- [pigio](https://www.npmjs.com/package/pigpio) npm package : Fast (software) GPIO, PWM, servo control, state change notification, and interrupt handling on the Raspberry Pi.
- [web-audio-api](https://www.npmjs.com/package/web-audio-api) : implementation (partial) of the HTML5 web audio api, used to decode sound files.
- [underscorejs](https://www.npmjs.com/package/underscore) : functional programming helper library for data manipulation.
- [node-aplay](https://www.npmjs.com/package/node-aplay) : Simple nodejs wrapper for aplay.
- [rpi-ws281x-native] (https://www.npmjs.com/package/rpi-ws281x-native): basic set of functions to write data to a strip of ws2811/ws2812 LEDs.