Add metrics for audio duration
This commit is contained in:
@@ -6,6 +6,14 @@ import (
|
||||
"git.vakhrushev.me/av/transcriber/internal/entity"
|
||||
)
|
||||
|
||||
type AudioInfo struct {
|
||||
Seconds int // Длина аудиофайла в секундах
|
||||
}
|
||||
|
||||
type AudioMetaViewer interface {
|
||||
GetInfo(src string) (*AudioInfo, error)
|
||||
}
|
||||
|
||||
type AudioFileConverter interface {
|
||||
Convert(src, dest string) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user