GithubHelp home page GithubHelp logo

dopepope's Introduction

dopepope ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

the pope wants to drop a ๐Ÿ”ฅ mixtape but doesn't have the time here's where I come in.

Requirements

  1. Go version 1.5 or greater - you can get this from [downloads page] (https://golang.org/dl/) on the Golang website
  2. ffmpeg 2.5.2 brew install ffmpeg if you have OSX
  3. mongoDB v2.4.9 or greater...probably
  4. python versoin 2.7
  5. [gTTs] (https://github.com/faiq/dopepope) pip install gTTS

How to Drop the ๐Ÿ”ฅ tape

This application takes a bunch of speeches that the pope made, sanitized by using sed, populates them into mongoDB in an object which takes the last word of each sentence and the sentence itself.

If you want to do this (you only need to do this once)

  1. run mongod
  2. (hack) change the package name of populate/text-to-mongo.go from populate to main
  3. from the project root go run populate/text-to-mongo.go

Once you have your database (this application uses DB name "dopepope" and collection name "sentencestest") all set up with the popes words you can run the make-fire.go file - which makes the ๐Ÿ”ฅ.

To do this

  1. run mongod if you closed it
  2. change package name of populate/text-to-mongo.go from main back to populate
  3. go run make-fire.go

make-fire takes in a -fire flag which gives the pope a topic to start dropping ๐Ÿ”ฅ on. It will create an output.txt file where you can view all the words that rhyme with that topic

If you want to put some ๐Ÿ”ฅ over a beat run (we use in da club as an example here)

  1. run gtts-cli.py -f output.txt -l 'en' output.mp3
  2. run fmpeg -i output.mp3 -i indaclub.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 ~/Desktop/dopepope.mp3

Its a long series of steps, but if everything worked right you should have a ๐Ÿ”ฅ song called dopepope.mp3 on your desktop!

An example of one can be found in this directory called dopepope.mp3

Open a new issue or pull request if you want to help!

LICENSE

The Dope Pope License (DP)

Copyright (c) The Pope Himself 2015

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Scripture"), to deal in the Scripture without restriction, including without limitation the rights to pray with, use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Scripture, and to permit persons to whom the Scripture is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Scripture.

THE SCRIPTURE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE POPE OR CARDINALS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY IN CONNECTION WITH THE SCRIPTURE OR THE USE OR OTHER DEALINGS IN THE SCRIPTURE.

๐Ÿ”ฅ

dopepope's People

Contributors

faiq avatar shrugs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.