com.sinch.sdk.domains.voice.CalloutsService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.voice;
import com.sinch.sdk.domains.voice.models.requests.CalloutRequestParameters;
import com.sinch.sdk.domains.voice.models.requests.CalloutRequestParametersConference;
import com.sinch.sdk.domains.voice.models.requests.CalloutRequestParametersCustom;
import com.sinch.sdk.domains.voice.models.requests.CalloutRequestParametersTTS;
/**
* A callout is a call made to a phone number or app using the API.
*
* @see https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts
* @since 1.0
*/
public interface CalloutsService {
/**
* The text-to-speech callout calls a phone number and plays a synthesized text messages or
* pre-recorded sound files.
*
* @param parameters Text to speech parameters
* @return The returned call identifier (callId)
* @since 1.0
*/
String textToSpeech(CalloutRequestParametersTTS parameters);
/**
* The conference callout calls a phone number or a user. When the call is answered, it's
* connected to a conference room.
*
* @param parameters Conference parameters
* @return The returned call identifier (callId)
* @since 1.0
*/
String conference(CalloutRequestParametersConference parameters);
/**
* The custom callout, the server initiates a call from the servers that can be controlled by
* specifying how the call should progress at each call event.
*
* @param parameters Custom parameters
* @return The returned call identifier (callId)
* @since 1.0
*/
String custom(CalloutRequestParametersCustom parameters);
/**
* Makes a call out to a phone number. The types of callouts currently supported are conference
* callouts, text-to-speech callouts, and custom callouts. The custom callout is the most
* flexible, but text-to-speech and conference callouts are more convenient.
*
* @param parameters Callout type to be performed
* @return The returned call identifier (callId)
* @since 1.0
*/
String call(CalloutRequestParameters parameters);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy