| Tropo WebAPI Development Guide | Home | Frameset Home |
|
voice parameter:
require 'tropo-webapi-ruby'
require 'sinatra'
post '/index.json' do
t = Tropo::Generator.new
t.say "Hello, how are you?", :voice => "kate"
t.response
end
var http = require('http');
var tropo_webapi = require('tropo-webapi');
var server = http.createServer(function (request, response) {
var tropo = new TropoWebAPI();
// (value, as, name, required, voice)
tropo.say("Hello, how are you?.", null, null, null, "kate");
response.end(TropoJSON(tropo));
}).listen(8000);
<?php
require 'tropo.class.php';
$tropo = new Tropo();
$tropo->say("Hello, how are you?", array("voice" => "kate"));
$tropo->RenderJson();
?>
from itty import *
from tropo import Tropo
@post('/index.json')
def index(request):
t = Tropo()
t.say("Hello, how are you?", voice = "kate")
return t.RenderJson()
run_itty(server='wsgiref', host='0.0.0.0', port=8888)
{
"tropo":[
{
"say":[
{
"value":"Hello, how are you?",
"voice":"kate"
}
]
}
]
}
| Language | Female Voice(s) | Male Voice(s) |
| U.S. English | Allison (Default), Susan, Vanessa, Veronica | Dave, Steven, Victor |
| British English | Elizabeth, Kate | Simon |
| Australian English | Grace | Alan |
| Catalan | Montserrat | Jordi |
| Danish | Frida | Magnus |
| Dutch | Saskia | Willem |
| Finnish | Milla | Mikko |
| French | Florence, Juliette | Bernard |
| French (Canadian) | Charlotte | Olivier |
| Galacian | Carmela | (none) |
| German | Katrin | Stefan |
| Greek | Afroditi | Nikos |
| Italian | Giulia, Paola, Silvana, Valentina | Luca, Marcello, Matteo, Roberto |
| Mandarian Chinese | Linlin, Lisheng | (none) |
| Norwegian | Vilde | Henrik |
| Polish | Zosia | Krzysztof |
| Russian | Olga | Dmitri |
| Spanish (Castilian) | Carmen, Leonor | Jorge, Juan |
| Spanish (Argentine) | (none) | Diego |
| Spanish (Chilean) | Francisca | (none) |
| Spanish (Mexican) | Soledad, Ximena, Esperanza | Carlos |
| Portugese | Amalia | Eusebio |
| Portugese (Brazilian) | Fernanda, Gabriela | Felipe |
| Swedish | Annika | Sven |
| Valencian | Empar | (none) |
recognizer parameter.| ANNOTATIONS: EXISTING POSTS |
| login |
|