Browse Source

small update, and readme updated

master
arnaucode 7 years ago
parent
commit
06debf0e7f
6 changed files with 9 additions and 4 deletions
  1. +4
    -2
      README.md
  2. +3
    -0
      festival.go
  3. +1
    -1
      main.go
  4. +1
    -1
      readConfigTokensAndConnect.go
  5. BIN
      twitterReader
  6. BIN
      twitterReader.png

+ 4
- 2
README.md

@ -1,7 +1,9 @@
# twitterReader
# twitterReader [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/twitterReader)](https://goreportcard.com/report/github.com/arnaucode/twitterReader)
twitter reader assistant written in Go lang
uses festival for the text to speech features
uses Festival Speech Synthesis System (http://www.cstr.ed.ac.uk/projects/festival/) for the text to speech features
![twitterReader](https://raw.githubusercontent.com/arnaucode/twitterReader/master/twitterReader.png "twitterREader")
to execute

+ 3
- 0
festival.go

@ -15,6 +15,9 @@ func festivalEn(text string) {
reader := strings.NewReader(text)
festival.Stdin = reader
err = festival.Run()
if err != nil {
fmt.Println("error")
}
}
func festivalCa(text string) {

+ 1
- 1
main.go

@ -1,7 +1,7 @@
package main
func main() {
c.Cyan("hi")
c.Cyan("connecting to twitter api and getting the last tweets")
client := readConfigTokensAndConnect()
tweets := getTimeline(client)
for i := 0; i < len(tweets); i++ {

+ 1
- 1
readConfigTokensAndConnect.go

@ -34,7 +34,7 @@ func readConfigTokensAndConnect() (client *twitter.Client) {
// twitter client
client = twitter.NewClient(httpClient)
fmt.Println("connection successfull")
fmt.Println("connection successful")
return client
}

BIN
twitterReader


BIN
twitterReader.png

Before After
Width: 1000  |  Height: 629  |  Size: 212 KiB

Loading…
Cancel
Save