package
0.0.5
Repository: https://github.com/jsautret/genapid.git
Documentation: pkg.go.dev

# README

chromecast

The chromecast predicate sends a media file to a Chromecast device.

It can be used to make a Google Home talk using the TTS feature of go-chromecast. You need to setup a Google Service Account (see previous link). Google Text-to-Speech is free for up to 4 millions of read characters per month with standard voices.

Options

OptionRequiredDescription
ttsyesString to say on the Chromecast device
google_service_accountyesPath to your GSA credentials
language_codeyeslanguage code
voice_nameyesSee https://cloud.google.com/text-to-speech/docs/voices
addryesIP of the Chromecast device
portPort of the Chromecast device (default to 8009)
server_portLocal port used to server media file. Only needed if you have a local firewall
speaking_ratedefault to 1.0
pitchdefault to 1.0

Results

FieldTypeDescription
resultbooleanfalse if something went wrong

Example:

See Kodi example in ../../examples/kodi/kodi.yml.

# Functions

New returns a new Predicate.

# Variables

Name of the predicate.

# Structs

Predicate is the conf.Plugin interface that describes the predicate.