Documentation ¶
Index ¶
- Constants
- Variables
- type AEvent
- type AudioFormat
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) CollectFinalResult(w io.Writer) error
- func (c *Conn) CollectOneResult(fixedResult chan<- *AEvent, progressResult chan<- *UEvent, ...) error
- func (c *Conn) CollectResult(fixedResult chan<- *AEvent, progressResult chan<- *UEvent, ...) error
- func (c *Conn) Recognize(i *RecognitionConfig) error
- func (c *Conn) Transcribe(i *RecognitionConfig, w io.Writer) error
- type GrammarFile
- type ProfileWord
- type RecognitionConfig
- type UEvent
Constants ¶
View Source
const ( GammarFileGeneral GrammarFile = "-a-general" GammarFileMedgeneral = "-a-medgeneral" GammarFileBizmrreport = "-a-bizmrreport" GammarFileBizfinance = "-a-bizfinance" GammarFileMedcare = "-a-medcare" GammarFileMedkarte = "-a-medkarte" GammarFileMedpharmacy = "-a-medpharmacy" GammarFileBizinsurance = "-a-bizinsurance" GammarFileMeeting = "-a-meeting" )
View Source
const ( AudioFormatLSB8k AudioFormat = "lsb8k" AudioFormatMSB8k = "msb8k" AudioFormatLSB11k = "lsb11k" AudioFormatMSB11k = "msb11k" AudioFormatLSB16k = "lsb16k" AudioFormatMSB16k = "msb16k" AudioFormatLSB22k = "lsb22k" AudioFormatMSB22k = "msb22k" AudioFormatMuLaw = "mulaw" AudioFormatALaw = "alaw" AudioFormat8k = "8k" AudioFormat16k = "16k" )
Variables ¶
View Source
var ( ErrConnClosed = errors.New("read from closed connection") ErrEResponseReceived = errors.New("e response received") )
Functions ¶
This section is empty.
Types ¶
type AEvent ¶
type AEvent struct { Results []struct { Tokens []struct { Written string `json:"written"` Confidence float64 `json:"confidence"` StartTime int `json:"starttime"` EndTime int `json:"endtime"` Spoken string `json:"spoken"` } `json:"tokens"` Confidence float64 `json:"confidence"` StartTime int `json:"starttime"` EndTime int `json:"endtime"` Tags []interface{} `json:"tags"` RuleName string `json:"rulename"` Text string `json:"text"` } `json:"results"` UtteranceID string `json:"utteranceid"` Text string `json:"text"` Code string `json:"code"` Message string `json:"message"` }
type AudioFormat ¶
type AudioFormat string
type Conn ¶
func (*Conn) CollectOneResult ¶
func (*Conn) CollectResult ¶
func (*Conn) Recognize ¶
func (c *Conn) Recognize(i *RecognitionConfig) error
func (*Conn) Transcribe ¶
func (c *Conn) Transcribe(i *RecognitionConfig, w io.Writer) error
type GrammarFile ¶
type GrammarFile string
type ProfileWord ¶
func (*ProfileWord) String ¶
func (p *ProfileWord) String() string
type RecognitionConfig ¶
type RecognitionConfig struct { AudioFormat AudioFormat GrammarFileNames GrammarFile ProfileID string ProfileWords []ProfileWord Data io.Reader }
Click to show internal directories.
Click to hide internal directories.