GET
/
text-to-sound-result
/
{run_id}
curl --request GET \
  --url https://client.camb.ai/apis/text-to-sound-result/{run_id} \
  --header 'x-api-key: <api-key>'
This response does not have an example.

This endpoint upon completion of the run, allows yous for streaming the audio file in WAV format using the run_id provided during the task creation process. Depending on the specified output_type, this endpoint returns one of two responses:

  • raw_bytes: A streaming response containing the generated audio effect audio in WAV format (Used by default).
  • file_url: A JSON containing a URL pointing to the stored audio effect output audio file.

Authorizations

x-api-key
string
header
required

The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.

Path Parameters

run_id
integer
required

The unique identifier for the run, which was generated during the text to an audio effect creation process and returned upon task completion.

Response

200
audio/wav
Successful Response

The generated audio file bytes in WAV format, representing the audio effect created from the provided text prompt.