in server/app/utils.py [0:0]
def transform_data_to_events(audio_np: np.ndarray) -> dict:
return {
"type": "response.audio.delta",
"delta": base64.b64encode(audio_np.tobytes()).decode("utf-8"),
"output_index": 0,
"content_index": 0,
"item_id": "",
"response_id": "",
"event_id": "",
}