feat: wip on extracting whisper transcription logic to separate class

This commit is contained in:
Stevan Freeborn
2025-07-27 23:33:45 -05:00
parent 76667f01d6
commit d5f1347587
2 changed files with 22 additions and 0 deletions
@@ -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();
}
}