mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 09:28:22 +00:00
- insertionSlot: falls back when the next segment has no finite start, and rounds a custom threshold to milliseconds before comparing (#4389). - New test modules resolve app code at test time (#4380, #4382, #4383).
13 lines
540 B
Python
13 lines
540 B
Python
"""Saved takes pair their audio with spoken text."""
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("marker", ["[emotion:quiet]", "[EMOTION:quiet]", "[emotion:]", "[emotion:quiet\nand tense]"])
|
|
def test_saved_take_transcript_keeps_reactions_and_omits_emotion_directions(marker):
|
|
import importlib
|
|
|
|
take_reference_transcript = importlib.import_module("services.reference_transcript").take_reference_transcript # resolved at test time
|
|
assert take_reference_transcript(f"{marker} Hello [laughter] there.") == "Hello [laughter] there."
|