feat: wip on extracting whisper transcription logic to separate class
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
namespace StreamShorts.Library.Transcription;
|
||||||
|
|
||||||
|
public interface ITranscriber
|
||||||
|
{
|
||||||
|
IAsyncEnumerable<TranscriptionSegment> TranscribeAsync(Stream audio);
|
||||||
|
}
|
||||||
|
|
||||||
|
public record TranscriptionSegment(
|
||||||
|
TimeSpan StartTime,
|
||||||
|
TimeSpan EndTime,
|
||||||
|
string Text
|
||||||
|
);
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
namespace StreamShorts.Library.Transcription;
|
||||||
|
|
||||||
|
public class WhisperTranscriber : ITranscriber
|
||||||
|
{
|
||||||
|
public IAsyncEnumerable<TranscriptionSegment> TranscribeAsync(Stream audio)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user