Skip to main content

Prerequisites

  • A valid API key
  • Endpoint URL for Pulse API
  • Python 3.7+ OR JavaScript
Valence provides Python and JavaScript SDKs, though you can also make direct HTTPS requests to the DiscreteAPI. The AsynchAPI can only be accessed through the SDK.

DiscreteAPI Examples

Below are two examples of direct usage of our DiscreteAPI. There are two data input options: [multipart/form-data] and [application/json] . [multipart/form-data] allows a user to directly upload an audio file and [application/json] allows a user to process their data before sending it to the API. File upload
Send processed data
All data sent to the DiscreteAPI is data-in-transit. It is not stored on Valence’s systems.

AsynchAPI Examples

Below are examples of usage for our AsynchAPI. This API has to be used in conjunction with the SDK and requires direct file upload. In these examples, the API key is included as an environment variable.
All files sent to the AsynchAPI are briefly saved on Valence’s systems while being processed. Our database is cleared every 24 hours. More information on data privacy can be found here.