import os
import requests
payload = {
"documents": [
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/efcd3060-9fd6-11ee-9f88-02420a000150/audio1.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/03e2d60e-9fd7-11ee-83d2-02420a00014d/audio2.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1815b650-9fd7-11ee-8eb4-02420a000151/audio3.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1ec3eb0c-9fd7-11ee-bcd0-02420a00014b/audio4.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1fed6b20-9fd7-11ee-a929-02420a00014c/audio5.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/20ffb6b2-9fd7-11ee-83d2-02420a00014d/audio6.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/24e7feb0-9fd7-11ee-83d2-02420a00014d/audio7.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/24f67e36-9fd7-11ee-9e54-02420a00014f/audio8.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/24dee7a8-9fd7-11ee-8eb4-02420a000151/audio9.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/24d1d68a-9fd7-11ee-a929-02420a00014c/audio10.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/24bfb068-9fd7-11ee-83a8-02420a00014e/audio11.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/2537bf04-9fd7-11ee-bcd0-02420a00014b/audio12.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/254b5a1e-9fd7-11ee-83d2-02420a00014d/audio13.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/253ed1f4-9fd7-11ee-83a8-02420a00014e/audio14.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/254b5564-9fd7-11ee-8eb4-02420a000151/audio15.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/256c2bb8-9fd7-11ee-8360-02420a00014a/audio16.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/2597104e-9fd7-11ee-9f88-02420a000150/audio17.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/2590d81e-9fd7-11ee-83a8-02420a00014e/audio18.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/25a3d810-9fd7-11ee-9e54-02420a00014f/audio19.mp3.wav",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/25a8889c-9fd7-11ee-bfcc-02420a00014a/audio20.mp3.wav",
],
"selected_model": "whisper_chichewa_large_v3",
"language": "shona",
"translation_model": "google",
"translation_target": "en",
}
response = requests.post(
"https://api.gooey.ai/v2/asr?example_id=6izmwo9sn5wx",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)