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 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 to execute

+ 3
- 0
festival.go

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

+ 1
- 1
main.go

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

+ 1
- 1
readConfigTokensAndConnect.go

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

BIN
twitterReader


BIN
twitterReader.png

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

Loading…
Cancel
Save