Skip to content
Sinch Voice API: Choosing between v1 and v2

For all new projects, please use Voice API v2. This is especially important for projects involving:

  • AI capabilities like Streams and Voice Relay
  • Voice campaigns like Batch calling

You should only use the older Voice API v1 if one of the following is a strict requirement:

  • The project must be in General Availability (GA).
  • The project requires In-App voice or Conferencing (until these features are available in v2).

Qualify leads using custom callouts, AMD, and IVR using the Java SDK

This tutorial will walk you through how to create your own lead qualification app using the Sinch Java SDK. You will learn how to use Sinch's Answering Machine Detection service to screen out answering machines and how to set up a simple Interactive Voice Response system to connect interested callees to a sales rep.

Prerequesites

To successfully complete this tutorial, there're a few things you need already installed:

  • A Sinch account.
  • A Sinch phone number.
  • A Voice app with your Sinch phone number assigned to it.
  • JDK 21 or later and a familiarity with how to create a new Java application.
  • Apache Maven and a familiarity with how to use the Maven CLI.
  • ngrok. You'll use ngrok to open a tunnel to your local server.
  • Since you're testing an IVR and answering a phone call, have a phone handy.

The tutorial is broken out into sections so we can spend a bit more time examining each part in more detail. We recommend following along from the beginning, but if you want you can skip to the section you want:

  1. Clone the repo and set up the application
  2. Custom callouts and Answering Machine Detection
  3. Interactive Voice Response, or IVR
  4. Test the application

So let's get started!