• Gooey.AI
  • API: NY-Opportunity ASR + GoogleNLP MT


    📖 To learn more, take a look at our complete API

    📤 Example Request

    1. Generate an api key below👇

    2. Install node-fetch & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code and don't use direcly in the browser.

    $ npm install node-fetch
    $ export GOOEY_API_KEY=sk-xxxx
    
    1. Use this sample code to call the API.
      If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
    import fetch from 'node-fetch';
    
    const 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"
    };
    
    async function gooeyAPI() {
      const response = await fetch("https://api.gooey.ai/v2/asr?example_id=6izmwo9sn5wx", {
        method: "POST",
        headers: {
          "Authorization": "bearer " + process.env["GOOEY_API_KEY"],
          "Content-Type": "application/json",
        },
        body: JSON.stringify(payload),
      });
    
      if (!response.ok) {
        throw new Error(response.status);
      }
    
      const result = await response.json();
      console.log(response.status, result);
    }
    
    gooeyAPI();
    
    1. Generate an api key below👇

    2. Install requests & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code.

    $ python3 -m pip install requests
    $ export GOOEY_API_KEY=sk-xxxx
    
    1. Use this sample code to call the API.
      If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
    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)
    
    1. Generate an api key below👇

    2. Install curl & add the GOOEY_API_KEY to your environment variables.
      Never store the api key in your code.

    export GOOEY_API_KEY=sk-xxxx
    
    1. Run the following curl command in your terminal.
      If you encounter any issues, write to us at [email protected] and make sure to include the full curl command and the error message.
    curl 'https://api.gooey.ai/v2/asr?example_id=6izmwo9sn5wx' \
      -H "Authorization: bearer $GOOEY_API_KEY" \
      -H 'Content-Type: application/json' \
      -d '{
      "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"
    }'
    

    🎁 Example Response

    {4 Items
    "id"
    :
    string
    "49ovop2bgz57"
    "url"
    :
    string
    "https://gooey.ai/speech/"
    "created_at"
    :
    string
    "2024-12-08T21:42:26.744225+00:00"
    "output"
    :
    {2 Items
    "raw_output_text"
    :
    [20 Items
    0
    :
    string
    "Timadzana mtedza chifukwa choyamba ndi mmene timap"
    1
    :
    string
    "Chachiwiri timadzala mtedza chifukwa chakuti mtedz"
    2
    :
    string
    "Chachitati kuti madzi amtedza chifukwa amasamba am"
    3
    :
    string
    "Ubwino osunga ma record oyamba ndi okuti zimatitha"
    4
    :
    string
    "Timatithandiziranso kuti tione kuti kodi pa munda "
    5
    :
    string
    "Zimathandizira kuti tikamapanga ma plan tidzikhala"
    6
    :
    string
    "Ndikofunika kuti amayenda abapo azigwira limodzi n"
    7
    :
    string
    "Malingana ndi kusintha kwa nyengo chifukwa anthu a"
    8
    :
    string
    "Kumbani mtetsa wana ndikuyanika kugwiritsa ntchito"
    9
    :
    string
    "Eya ndibwino kupanelera amanda wathu kuti mbewu ya"
    10
    :
    string
    "Tchulani wina osunga ma record. ."
    11
    :
    string
    "Ulimothilira ndi wofunikira kwambiri chifukwa umat"
    12
    :
    string
    "Komanso ndinjira imodzi imene alimeyo ambiri amait"
    13
    :
    string
    "Pali mbewu zonse nasiyana zimene zimalimidwa ku di"
    14
    :
    string
    "Madera ambiri, anthu ambiri akumali ma tomato amen"
    15
    :
    string
    "Mbewu zimene alima ambiri amakonda kulima Malawi m"
    16
    :
    string
    "Inanso amalima nyemba zonsezi zimati zikalimidwa a"
    17
    :
    string
    "Ulinu atakhanso uli ndi bwino komanso kuipa kwake."
    18
    :
    string
    "Ubwino wake wa ulimi umenelo ndi woti umathandizir"
    19
    :
    string
    "Pali mawa bwino osiyanasiyana amene tingapeze pame"
    ]
    "output_text"
    :
    [20 Items
    0
    :
    string
    "We eat nuts because first and foremost it is how w"
    1
    :
    string
    "Second, we plant groundnuts because groundnuts hel"
    2
    :
    string
    "It is said that the juice of walnuts because of th"
    3
    :
    string
    "The advantage of keeping the original records is t"
    4
    :
    string
    "We also help us to see what in our garden produces"
    5
    :
    string
    "It helps us to be aware when we make plans."
    6
    :
    string
    "It is important that the parents travel together t"
    7
    :
    string
    "Depending on the climate change, people should be "
    8
    :
    string
    "Dig a nut and dry it using the work of Mandela gok"
    9
    :
    string
    "Yes, it is better to pave our graves so that each "
    10
    :
    string
    "Name someone who keeps records. ."
    11
    :
    string
    "Irrigation is very important because it helps farm"
    12
    :
    string
    "It is also one of the ways that many farmers take "
    13
    :
    string
    "There are all kinds of crops that are grown in the"
    14
    :
    string
    "In many areas, many people grow tomatoes that do n"
    15
    :
    string
    "The crops that many farmers like to grow in Malawi"
    16
    :
    string
    "Also, they grow all these beans, and when they are"
    17
    :
    string
    "Ulinu also has its advantages and disadvantages."
    18
    :
    string
    "The advantage of that farming is that it supports "
    19
    :
    string
    "There are different good tomorrows that we can get"
    ]
    }
    }

    Please Login to generate the $GOOEY_API_KEY