assistant

package module
v0.0.0-...-a607e79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 13 Imported by: 0

README

go-home-assistant

Google assistant client in Golang

Documentation

Index

Constants

View Source
const (
	// APIEndpoint is Google Assistant API endpoint
	APIEndpoint = "embeddedassistant.googleapis.com:443"

	// ScopeAssistantSDK is The API scope for Google Assistant
	ScopeAssistantSDK = "https://www.googleapis.com/auth/assistant-sdk-prototype"
)
View Source
const GoogleSampleRate int32 = 16000

GoogleSampleRate is sample rate for google home speaker

Variables

This section is empty.

Functions

func GetDefaultConfig

func GetDefaultConfig() embedded.AssistConfig

Types

type Client

type Client struct {
	Context context.Context
	Config  embedded.AssistConfig
	Token   oauth2.TokenSource
	Timeout time.Duration
}

func New

func New(r Request) *Client

func (*Client) Call

func (c *Client) Call(tq string) (err error)

type Request

type Request struct {
	Context context.Context
	Config  embedded.AssistConfig
	Token   oauth2.TokenSource
	Timeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL