Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleTrStream ¶
type GoogleTrStream struct {
// contains filtered or unexported fields
}
GoogleTrStream implements the transcribe.Stream interface, it should map one to one with the audio stream coming from the client
func (*GoogleTrStream) Close ¶
func (st *GoogleTrStream) Close() error
Close flushes the recognition stream and pipes the results to the channel
func (*GoogleTrStream) Results ¶
func (st *GoogleTrStream) Results() <-chan Result
Results returns a channel that will receive the transcription results when they're ready
type GoogleTranscriber ¶
type GoogleTranscriber struct {
// contains filtered or unexported fields
}
GoogleTranscriber is the implementation of the transcribe.Service, hold a pointer to the Google Speech client
func (*GoogleTranscriber) CreateStream ¶
func (t *GoogleTranscriber) CreateStream() (Stream, error)
CreateStream creates a new transcription stream
type Result ¶
type Result struct { Text string `json:"text"` Confidence float32 `json:"confidence"` Final bool `json:"final"` }
Result is the struct used to serialize the results back to the client
Click to show internal directories.
Click to hide internal directories.