๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ
dopepope the pope wants to drop a
Requirements
- Go version 1.5 or greater - you can get this from [downloads page] (https://golang.org/dl/) on the Golang website
- ffmpeg 2.5.2
brew install ffmpeg
if you have OSX - mongoDB v2.4.9 or greater...probably
- python versoin 2.7
- [gTTs] (https://github.com/faiq/dopepope)
pip install gTTS
๐ฅ tape
How to Drop the 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)
- run
mongod
- (hack) change the package name of
populate/text-to-mongo.go
frompopulate
tomain
- 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
- run
mongod
if you closed it - change package name of
populate/text-to-mongo.go
frommain
back topopulate
go run make-fire.go
make-fire takes in a -fire flag which gives the pope a topic to start dropping output.txt
file where you can view all the words that rhyme with that topic
If you want to put some
- run
gtts-cli.py -f output.txt -l 'en' output.mp3
- 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 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.