import threading from concurrent.futures import ThreadPoolExecutor import numpy as np from fastapi.testclient import TestClient from server import create_app, MAX_BYTES HEADERS = {'x-caption-local': '1', 'content-type': 'application/octet-stream'} AUDIO = np.full(16000, 0.02, dtype='