Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusData ¶
type StatusData struct { ID string Text string Completed bool ErrorCode string Error string Status string Progress int AudioReady bool AvResults []string RecognizedText string `json:"recognizedText,omitempty"` }
StatusData keeps structure for status method
type Transcriber ¶
type Transcriber interface { Upload(ctx context.Context, audioFunc func(context.Context) (*UploadData, func(), error)) (string, error) HookToStatus(ctx context.Context, ID string) (<-chan StatusData, func(), error) GetStatus(ctx context.Context, ID string) (*StatusData, error) GetAudio(ctx context.Context, ID string) (*FileData, error) GetResult(ctx context.Context, ID, name string) (*FileData, error) Clean(ctx context.Context, ID string) error }
Transcriber provides transcription
Click to show internal directories.
Click to hide internal directories.