Website | Documentation | Blog
ElevateAI provides an API for Speech-to-text (ASR), behavioral analysis and sentiment analysis of voice interactions.
- Signup and retrieve API token from ElevateAI.
- Declare an interaction. Provide a URI if you want ElevateAI to download the interaction via a Public URI.
- Retrieve Interaction ID from JSON response and store.
- Upload a file.
- Check status every 30 seconds using Interaction ID until status returns 'processed' or an error status.
- Retrieve results - phrase-by-phrase transcript, punctuated transcript, and AI results.
import elevateAi.client.Client; ... ... var cli = Client.newInstance(baseUrl, apiToken); // Step 2,3 var it = cli.declare("en-us", "default", "highAccuracy", null, null, false); // Step 4 var uploadOk = cli.upload(it, "d:/dev/elevateai-cli/sample-media/media.wav"); // Step 5 while (true){ var s = cli.status(it); if("processed".equals(s)) break; Thread.sleep(60000); } var tx = cli.transcripts(it, true); var ai = cli.aiResults(it); System.out.println(String.format("Interaction [%s]: \nTranscripts: %s, \nAiResults: %s", it, tx, ai));