21 lines
549 B
Go
21 lines
549 B
Go
package yandex
|
|
|
|
import (
|
|
"git.vakhrushev.me/av/transcriber/internal/entity"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type MemoryAudioRecognizer struct{}
|
|
|
|
func (r *MemoryAudioRecognizer) RecognizeFile(filePath string) (operationID string, err error) {
|
|
return uuid.NewString(), nil
|
|
}
|
|
|
|
func (r *MemoryAudioRecognizer) GetRecognitionText(operationID string) (string, error) {
|
|
return "Foo bar, Baz.", nil
|
|
}
|
|
|
|
func (r *MemoryAudioRecognizer) CheckRecognitionStatus(operationID string) (*entity.RecognitionResult, error) {
|
|
return entity.NewCompletedResult(), nil
|
|
}
|