feat: initial whipser transcriber implementation

This commit is contained in:
Stevan Freeborn
2025-07-29 18:00:09 -05:00
parent 5ee040f2d0
commit ef45a4098a
19 changed files with 234 additions and 89 deletions
@@ -1,10 +0,0 @@
namespace StreamShorts.Library.Tests.Unit.Media.Audio;
public class AudioConverterTests
{
[Fact]
public void Test()
{
return;
}
}
@@ -6,7 +6,7 @@ namespace StreamShorts.Library.Tests.Unit.Media.Audio;
public class AudioExtractorTests
{
private readonly Mock<IFFMpegService> _mockFfmpegService = new();
private readonly Mock<IVideoService> _mockFfmpegService = new();
private readonly AudioExtractor _sut;
public AudioExtractorTests()
@@ -14,6 +14,14 @@ public class AudioExtractorTests
_sut = new(_mockFfmpegService.Object);
}
[Fact]
public void Constructor_WhenCalledWithNullFfmpegService_ItShouldThrow()
{
var action = () => new AudioExtractor(null!);
action.Should().Throw<ArgumentNullException>();
}
[Fact]
public async Task ExtractMp3FromMp4Async_WhenVideoIsNull_ItShouldThrow()
{