{"id":19676797,"url":"https://github.com/victordibia/tjdj","last_synced_at":"2025-09-11T11:33:23.625Z","repository":{"id":77574554,"uuid":"78554018","full_name":"victordibia/tjdj","owner":"victordibia","description":"Fun speech-based app to get TJBot playing (and dancing to) song snippets using Watson Apis and the Spotify apis","archived":false,"fork":false,"pushed_at":"2017-02-11T01:30:36.000Z","size":15649,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T04:35:15.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victordibia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-10T16:52:13.000Z","updated_at":"2017-11-10T18:57:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffb70f42-f309-4e22-8626-6436a1e0dd0c","html_url":"https://github.com/victordibia/tjdj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victordibia%2Ftjdj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victordibia%2Ftjdj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victordibia%2Ftjdj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victordibia%2Ftjdj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victordibia","download_url":"https://codeload.github.com/victordibia/tjdj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240986029,"owners_count":19889200,"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":[],"created_at":"2024-11-11T17:30:15.444Z","updated_at":"2025-02-27T05:43:58.311Z","avatar_url":"https://github.com/victordibia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tjdj [Beta - meaning still in development]\nFun speech-based app to get TJBot playing (and dancing to) song snippets using Watson Apis and the Spotify apis\n\n## How It Works\n- Listen for voice commands containing song name e.g play {cry me a river}\n- Recognize the word play and then trigger a spotify search for the song name\n- Download the song preview (mp3)\n- Convert to wav format (for decoding and sampling)\n- Play song and dance to it.\n\n\n##Dependencies\n\nThis app requires mpg321 to play an mp3 file.\n\n    sudo apt-get update\n    sudo apt-get install mpg321  \n\nFollowing this, you will need to install node Dependencies\n    npm install\n\n##Running\n\nStart the application. (Note: you need sudo access)\n\n    sudo node tjdj.js     \n\nThen you should be able to speak to the microphone and ask your TJBot to play\n\n    play smooth criminal by michael jackson\n    play stranger in moscow\n\n\nDependencies List\n\n- 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).\n- [mic](https://www.npmjs.com/package/mic) npm package : for reading audio input\n- [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.\n- [web-audio-api](https://www.npmjs.com/package/web-audio-api) : implementation (partial) of the HTML5 web audio api, used to decode sound files.\n- [underscorejs](https://www.npmjs.com/package/underscore) : functional programming helper library for data manipulation.\n- [node-aplay](https://www.npmjs.com/package/node-aplay) : Simple nodejs wrapper for aplay.\n- [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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictordibia%2Ftjdj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictordibia%2Ftjdj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictordibia%2Ftjdj/lists"}