feat: wip on extracting whisper transcription logic to separate class
This commit is contained in:
1 parent
76667f01d6
commit
d5f1347587
2 files changed
+22
No files matched your search
@@ -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