Documentation ¶
Index ¶
- Constants
- func WithCustomHeaders(ctx context.Context, headers http.Header) context.Context
- func WithCustomParameters(ctx context.Context, params map[string][]string) context.Context
- func WithSigner(ctx context.Context, s Signer) context.Context
- type AuthResp
- type Config
- type Credentials
- type HeadersContext
- type ParametersContext
- type RawResponse
- type Signer
- type SignerContext
- type Speaker
- type SpeechRecognition
- type StatusError
- type StreamingConfig
- type Tracker
- type Trackers
Constants ¶
const ( DefaultConfidenceThreshold float64 = 0.5 DefaultSampleRateHertzLinear16 int = 16000 DefaultSampleRateHertzMulaw int = 8000 )
streaming API constants
Variables ¶
This section is empty.
Functions ¶
func WithCustomHeaders ¶
WithCustomHeaders appends a header to the given context
func WithCustomParameters ¶
WithCustomParameters
Types ¶
type AuthResp ¶
type AuthResp struct { AccessToken string `json:"accessToken"` NebulaToken string `json:"newbulaToken"` ExpiresIn int `json:"expiresIn"` }
AuthResp represents a Symbl platform bearer access token with expiry information.
type Config ¶
type Config struct { ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"` DetectEntities bool `json:"detectEntities,omitempty"` LanguageCode string `json:"languageCode,omitempty"` MeetingTitle string `json:"meetingTitle,omitempty"` Sentiment bool `json:"sentiment,omitempty"` SpeechRecognition SpeechRecognition `json:"speechRecognition,omitempty"` Trackers Trackers `json:"trackers,omitempty"` }
Config captures the general options available for a given conversation
type Credentials ¶
type Credentials struct { AuthURI string Type string `json:"type"` AppId string `json:"appId" validate:"required"` AppSecret string `json:"appSecret" validate:"required"` }
Symbl REST API
Credentials is the input needed to login to the Symbl.ai platform
type RawResponse ¶
RawResponse may be used with the Do method as the resBody argument in order to capture the raw response data.
type SpeechRecognition ¶
type SpeechRecognition struct { Encoding string `json:"encoding,omitempty"` SampleRateHertz int `json:"sampleRateHertz,omitempty"` }
SpeechRecognition provides stream configuration options for real-time conversations
type StatusError ¶
StatusError captures a REST error in the library
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Error string representation for a given error
type StreamingConfig ¶
type StreamingConfig struct { Type string `json:"type,omitempty"` Config Config `json:"config,omitempty"` CustomVocabulary []string `json:"customVocabulary,omitempty"` DisconnectOnStopRequest bool `json:"disconnectOnStopRequest,omitempty"` DisconnectOnStopRequestTimeout int `json:"disconnectOnStopRequestTimeout,omitempty"` EnableAllTrackers bool `json:"enableAllTrackers,omitempty"` InsightTypes []string `json:"insightTypes,omitempty"` NoConnectionTimeout bool `json:"noConnectionTimeout,omitempty"` Speaker Speaker `json:"speaker,omitempty"` Trackers []Tracker `json:"trackers,omitempty"` }
StreamingConfig captures the options for a real-time conversation