salutespeech

package
v0.0.0-...-9a938bf Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCantRecognizeSpeech            = errors.New("can't recognize speech")
	ErrCantSendSpeechRecognizeRequest = errors.New("can't create speech recognize request")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.SalutespeechConfig, voicesFileDir string) (*Client, error)

func (*Client) SpeechRecognizeOgg

func (c *Client) SpeechRecognizeOgg(fileName string) (text string, err error)

type Response

type Response struct {
	StatusCode  int      `json:"status,omitempty"`
	Message     string   `json:"message,omitempty"`
	Result      []string `json:"result,omitempty"`
	AccessToken string   `json:"access_token,omitempty"`
}

Jump to

Keyboard shortcuts

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