Documentation ¶
Index ¶
- Variables
- func GetAPIToken(ctx context.Context, path string, identityURL url.URL, ...) (speechly.AccessToken, error)
- func NewLogger(out io.Writer, level logrus.Level) logger.Logger
- func RecogniseFiles(ctx context.Context, cfg Config, token speechly.AccessToken, paths []string, ...) error
- func RecogniseMicrophone(ctx context.Context, cfg Config, fmt audio.Format, token speechly.AccessToken, ...) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildVersion string BuildTime string )
Build flags, set by ldflags.
Functions ¶
func GetAPIToken ¶
func GetAPIToken( ctx context.Context, path string, identityURL url.URL, appID, deviceID uuid.UUID, log logger.Logger, ) (speechly.AccessToken, error)
GetAPIToken fetches Speechly API token from a cache file or refreshes it by calling Speechly Identity API.
Types ¶
type Config ¶
type Config struct { SluURL url.URL IdentityURL url.URL AppID uuid.UUID DeviceID uuid.UUID LanguageCode language.Tag // contains filtered or unexported fields }
Config is the configuration of the CLI app.
Click to show internal directories.
Click to hide internal directories.