english-speech-bot

command module
v0.0.0-...-b16b0a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2017 License: MIT Imports: 16 Imported by: 0

README

english-speech-bot

english-speech-bot is a Twitter bot that converts English sentences into voices.

Description

This bot converts the English tweets of the target account into voice and tweets it.

Usage

You need to set the follwing environment variables.

name description
USER_LIST_PATH yaml file with target twitter id list.
TWITTER_CONSUMER_KEY consumer key of twitter application.
TWITTER_CONSUMER_SECRET consumer secret key of twitter application.
TWITTER_ACCESS_TOKEN access token of twitter application.
TWITTER_ACCESS_TOKEN_SECRET access token secret key of twitter application.

Define target Twitter ID in yaml file.

userist:
  - XXXXXX
  - YYYYYY

Place the image to be used in the movie.
Image name is "logo.png".

Execute this bot.

./english-speech-bot

The following is a DEMO.
https://twitter.com/km_eng_speech

Requirement

In order to use english-speech-bot you need the following.

  • Twitter Application
  • AWS Account
  • ffmpeg

Installation

First installation of ffmpeg is required.
https://github.com/FFmpeg/FFmpeg/blob/master/INSTALL.md

Next you will install english-speech-bot.

$ go get github.com/morix1500/english-speech-bot
Setup policy for Amazon Polly

In order to use Amazon Polly, the following policy setting is required.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "getSpeech",
            "Effect": "Allow",
            "Action": [
                "polly:SynthesizeSpeech"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

License

Please see the LICENSE file for details.

Author

Shota Omori(Morix)
https://github.com/morix1500

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL