Power up your customer interaction with Voice API. Build call flows anywhere in the world.
More than just Text Messages
Build comprehensive calling experience the way you want it to be, control the flow of your voice call via MoceanAPI Call Control Object.
You can embed PSTN, SIP or VoIP into your tool with a just HTTP request or MoceanAPI Software Development Kit available for instant implementation.
We ensure the best grade of quality of audio, clear audio and low latency to get your voice across the globe
Get your voice delivered to anywhere around the world. The MoceanAPI Voice API let you reach anyone with a voice call and it is made possible with our robust Software Developement Kits.
It is as simple as sending an SMS.
from moceansdk import Client, Basic, Transmitter, McBuilder, Mc
mocean = Client(
Basic("API_KEY_HERE", "API_SECRET_HERE")
)
mc_builder = McBuilder() \
.add(Mc.record()) \
.add(Mc.dial('60123456789')) \
.add(Mc.say('for english please press 1')) \
.add(Mc.collect('https://test.com/collect')) \
.add(Mc.sleep(2000)) \
.add(Mc.play('http://test.com/play'))
res = mocean.voice.call({
'mocean-to': '60123456789',
'mocean-command': mc_builder
})
print(res)
require 'moceansdk'
mocean = Moceansdk::Client.new(
Moceansdk::Auth::Basic.new('API_KEY_HERE', 'API_SECRET_HERE')
)
builder = Moceansdk::Modules::Voice::McBuilder.new
.add(Moceansdk::Modules::Voice::Mc.record())
.add(Moceansdk::Modules::Voice::Mc.dial('60123456789'))
.add(Moceansdk::Modules::Voice::Mc.say('for english please press 1'))
.add(Moceansdk::Modules::Voice::Mc.collect('http://test.com/collect'))
.add(Moceansdk::Modules::Voice::Mc.sleep(2000))
.add(Moceansdk::Modules::Voice::Mc.play('http://test.com/play'))
res = mocean.voice.call(
'mocean-to': '60123456789',
'mocean-command': builder
)
print res
use Mocean\Voice\Mc;
use Mocean\Voice\McBuilder;
$mocean = new \Mocean\Client(
new \Mocean\Client\Credentials\Basic('API_KEY_HERE', 'API_SECRET_HERE')
);
$mcBuilder = McBuilder::create()
->add(Mc::record())
->add(Mc::dial('60123456789'))
->add(Mc::say('for english please press 1')) // tts
->add(Mc::collect('http://test.com/collect'))
->add(Mc::sleep(2000))
->add(Mc::play('http://test.com/play'));
$result = $mocean->voice()->call([
'mocean-to' => '60123456789',
'mocean-call-control-commands' => $mcBuilder
]);
echo $result;
const {Mc, McBuilder}, moceansdk = require('mocean-sdk');
const mocean = new moceansdk.Mocean(
new moceansdk.Client('API_KEY_HERE', 'API_SECRET_HERE')
);
const mcBuilder = (new McBuilder())
.add(Mc.record())
.add(Mc.dial('60123456789'))
.add(Mc.say('for english please press 1') // tts
.add(Mc.collect('https://test.com/collect'))
.add(Mc.sleep(2000))
.add(Mc.play('http://test.com/play'));
const res = await mocean.voice().call({
'mocean-to': '60123456789',
'mocean-command': mcBuilder
});
console.log(res);
import com.mocean.modules.voice.Mc;
import com.mocean.modules.voice.McBuilder;
Mocean mocean = new Mocean(
new Basic("API_KEY_HERE", "API_SECRET_HERE")
);
McBuilder mcBuilder = (new McBuilder())
.add(Mc.record())
.add(Mc.dial("60123456789"))
.add(Mc.say("for english please press 1")) // tts
.add(Mc.collect("https://test.com/collect"))
.add(Mc.sleep(2000))
.add(Mc.play("http://test.com/play"));
String res = mocean.voice()
.setTo("60123456789")
.setCommand(mcBuilder)
.call();
System.out.println(res);
Get your Application to send Voice Call within 5 minutes!
If you did not have an account yet, go register an account for yourself and start integrating Voice Call into your Application.
Free API KeyChoose a language of your choice and start develop Messaging solution on top of your Application with our production ready SDK tools.
DocumentationSample codes are ready to be used, and we're all set to connect the world.
Send Voice CallOutbound Voice | Inbound Voice |
---|---|