POST /your-endpoint?sample_rate=16000&uid=user123
The data sent is of type octet-stream, which is essentially a stream of bytes. You can either create your own endpoint or use the example provided below. Once itโs ready and deployed, proceed to the next step.
Note: The sample rate refers to the audio samples captured per second. DevKit1 (v1.0.4 and above) and DevKit2 record audio at a sample rate of 16,000 Hz, while DevKit1 with v1.0.2 records at a sample rate of 8,000 Hz. The uid represents the unique ID assigned to the user in our system.
GOOGLE_APPLICATION_CREDENTIALS_JSON
: Your GCP credentials, encoded in base64.GCS_BUCKET_NAME
: The name of your GCP storage bucket./audio
.Every x seconds
field.