Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 826 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 826 Bytes

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