"""GPU reference encoding must preserve all PCM samples and edited transcripts.""" import base64 import io import numpy as np import soundfile as sf from test_gradio_ui import studio, body import server def test_clone_and_retake_compression_preserve_every_pcm_sample(studio): # Include both PCM extremes, plus very quiet samples used by whispered voices. samples = np.array([-32768, -3000, -1, 0, 1, 3000, 32767] * 500, dtype='