feat: initial whipser transcriber implementation
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user