aboutsummaryrefslogtreecommitdiff
path: root/tests/test_audio.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-18 03:00:16 -0400
committerhistoria <historiavg@proton.me>2026-08-18 03:00:16 -0400
commitde5b2d9ca7302ade711d9dfb32b2fe8047f55cc2 (patch)
tree410f9a0ffd996d2ac14843e8f78947c36ff12d43 /tests/test_audio.py
parent6d0e740b4225859457109821a4c77feff72c24b5 (diff)
downloadtts-audiobook-generator-de5b2d9ca7302ade711d9dfb32b2fe8047f55cc2.tar.gz
feat: support .ogg and .flac output
Diffstat (limited to 'tests/test_audio.py')
-rw-r--r--tests/test_audio.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_audio.py b/tests/test_audio.py
index 7e782cc..7116e2b 100644
--- a/tests/test_audio.py
+++ b/tests/test_audio.py
@@ -90,6 +90,12 @@ class EncodeArgsTests(unittest.TestCase):
def test_wav_is_lossless_pcm(self):
self.assertEqual(_encode_args("wav"), ["-c:a", "pcm_s16le"])
+ def test_ogg_uses_libvorbis(self):
+ self.assertEqual(_encode_args("ogg"), ["-c:a", "libvorbis", "-b:a", config.AUDIO_BITRATE])
+
+ def test_flac_is_lossless(self):
+ self.assertEqual(_encode_args("flac"), ["-c:a", "flac"])
+
class M4bContainerArgsTests(unittest.TestCase):
def setUp(self):