Custom ASR
Last updated
Last updated
Contact us at support@datasaur.ai to enable this feature in your workspace.
To test this code, you can create a live endpoint using codesandbox.io. Click here to open an example from us.
Once you make and save any modifications to that CodeSandbox code, a fork of the codebase will be automatically created for you to modify and test around further.
First, you will need to get the base URL of the API from the CodeSandbox UI. It should be available on the URL bar on the preview panel on the right side.
You may need to expand the panel first if it is collapsed by default.
In the sample API that we provided, there are two HTTP POST endpoints.
{baseUrl}/text-extraction/example-text
, which returns the transcription as plain text
{baseUrl}/text-extraction/example-json
, which returns the transcription as Importable JSON
Once you have the URL, you can create, store, and use Custom API when creating a new project.
In the “Active projects” page, click on “Create project”
In Step 1, “Upload”, upload your image/pdf for OCR, or audio files for ASR, then click “Next”
Once you’re on Step 2, “Preview”, you can click on the dropdown labeled “Apply OCR Method” (for image/pdf files) or “Apply ASR Method” (for audio files).
After you click to open it, you should see a button to “+ Add new API…”
A dialog will appear with 3 fields.
Fill the “Name” field with the desired name for your Custom API.
Fill the “Custom API URL” with one of the two endpoints from our sample API.
Fill the “Secret” field with any value. We can ignore this for now.
After clicking “Save”, the custom API should be automatically selected, and you can see the sample transcription result on the right.
That is all for creating and using Custom API! If you want to immediately use the API to create a project, you can do so by proceeding to the next steps to finish configuring and create the project.
Factor | Description |
---|---|
Accepted file formats | .wav, .mp3, .m4a |
Maximum individual file size | 25 MB |
Request limit (Azure) | 100 RPM |
Request timeout | 10 minutes |
Maximum API call retry on request error (e.g. rate limit reached, request timeout) | 2 retries |