Text-to-Speech on your Google Home
Switch branches/tags
Nothing to show
Clone or download
ikasamah Merge pull request #2 from uu4k/master
accommodate google home mini.
Latest commit e744f32 May 1, 2018
Permalink
Failed to load latest commit information.
example Refactor LookupGoogleHome func Feb 11, 2018
.gitignore Initial commit Jan 31, 2018
Gopkg.lock upgrade packages. Apr 29, 2018
Gopkg.toml upgrade packages. Apr 29, 2018
LICENSE Initial commit Jan 31, 2018
README.md Update README Feb 11, 2018
homecast.go accommodate google home mini. Apr 15, 2018

README.md

homecast

Make your speaker speak.

homecast is a Go package to enable text-to-speech on Google Home in local network.

This is Go version of noelportugal/google-home-notifier

Install

$ go get -u github.com/ikasamah/homecast

Usage

ctx := context.Background()
devices := homecast.LookupAndConnect(ctx)

for _, device := range devices {
    err := device.Speak(ctx, "Hello World", "en")
}

Run example

$ go run $GOPATH/src/github.com/ikasamah/homecast/example/main.go

Server erxample

$ go run $GOPATH/src/github.com/ikasamah/homecast/example/server.go

Then, access following URL in your browser.

http://localhost:8080/?text=Ciao&lang=it

Author

Masayuki Hamasaki