Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions twiml/voice/say/say-basic-usage/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "<Say> basic usage",
"type": "server"
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-basic-usage/output/say-basic-usage.twiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Hello!</Say>
</Response>
6 changes: 6 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.4.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const VoiceResponse = require('twilio').twiml.VoiceResponse;

const response = new VoiceResponse();
response.say('Hello!');

console.log(response.toString());
6 changes: 6 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.5.x.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'twilio-ruby'

response = Twilio::TwiML::VoiceResponse.new
response.say(message: 'Hello!')

puts response
15 changes: 15 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.6.x.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using Twilio.TwiML;
using Twilio.TwiML.Voice;


class Example
{
static void Main()
{
var response = new VoiceResponse();
response.Say("Hello!");

Console.WriteLine(response.ToString());
}
}
8 changes: 8 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.7.x.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require_once './vendor/autoload.php';
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->say('Hello!');

echo $response;
6 changes: 6 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.8.x.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from twilio.twiml.voice_response import VoiceResponse, Say

response = VoiceResponse()
response.say('Hello!')

print(response)
17 changes: 17 additions & 0 deletions twiml/voice/say/say-basic-usage/say-basic-usage.9.x.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import com.twilio.twiml.VoiceResponse;
import com.twilio.twiml.voice.Say;
import com.twilio.twiml.TwiMLException;


public class Example {
public static void main(String[] args) {
Say say = new Say.Builder("Hello!").build();
VoiceResponse response = new VoiceResponse.Builder().say(say).build();

try {
System.out.println(response.toXml());
} catch (TwiMLException e) {
e.printStackTrace();
}
}
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-language/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "<Say> using language attribute",
"type": "server"
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-language/output/say-language.twiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say language="fr-FR">Bonjour!</Say>
</Response>
8 changes: 8 additions & 0 deletions twiml/voice/say/say-language/say-language.4.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const VoiceResponse = require('twilio').twiml.VoiceResponse;

const response = new VoiceResponse();
response.say({
language: 'fr-FR'
}, 'Bonjour!');

console.log(response.toString());
6 changes: 6 additions & 0 deletions twiml/voice/say/say-language/say-language.5.x.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'twilio-ruby'

response = Twilio::TwiML::VoiceResponse.new
response.say(language: 'fr-FR', message: 'Bonjour!')

puts response
15 changes: 15 additions & 0 deletions twiml/voice/say/say-language/say-language.6.x.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using Twilio.TwiML;
using Twilio.TwiML.Voice;


class Example
{
static void Main()
{
var response = new VoiceResponse();
response.Say("Bonjour!", language: "fr-FR");

Console.WriteLine(response.ToString());
}
}
8 changes: 8 additions & 0 deletions twiml/voice/say/say-language/say-language.7.x.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require_once './vendor/autoload.php';
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->say('Bonjour!', ['language' => 'fr-FR']);

echo $response;
6 changes: 6 additions & 0 deletions twiml/voice/say/say-language/say-language.8.x.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from twilio.twiml.voice_response import VoiceResponse, Say

response = VoiceResponse()
response.say('Bonjour!', language='fr-FR')

print(response)
17 changes: 17 additions & 0 deletions twiml/voice/say/say-language/say-language.9.x.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import com.twilio.twiml.VoiceResponse;
import com.twilio.twiml.voice.Say;
import com.twilio.twiml.TwiMLException;


public class Example {
public static void main(String[] args) {
Say say = new Say.Builder("Bonjour!").language(Say.Language.FR_FR).build();
VoiceResponse response = new VoiceResponse.Builder().say(say).build();

try {
System.out.println(response.toXml());
} catch (TwiMLException e) {
e.printStackTrace();
}
}
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-loop/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "<Say> using loop attribute",
"type": "server"
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-loop/output/say-loop.twiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say loop="2">Hello!</Say>
</Response>
8 changes: 8 additions & 0 deletions twiml/voice/say/say-loop/say-loop.4.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const VoiceResponse = require('twilio').twiml.VoiceResponse;

const response = new VoiceResponse();
response.say({
loop: 2
}, 'Hello!');

console.log(response.toString());
6 changes: 6 additions & 0 deletions twiml/voice/say/say-loop/say-loop.5.x.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'twilio-ruby'

response = Twilio::TwiML::VoiceResponse.new
response.say(loop: 2, message: 'Hello!')

puts response
15 changes: 15 additions & 0 deletions twiml/voice/say/say-loop/say-loop.6.x.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using Twilio.TwiML;
using Twilio.TwiML.Voice;


class Example
{
static void Main()
{
var response = new VoiceResponse();
response.Say("Hello!", loop: 2);

Console.WriteLine(response.ToString());
}
}
8 changes: 8 additions & 0 deletions twiml/voice/say/say-loop/say-loop.7.x.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require_once './vendor/autoload.php';
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->say('Hello!', ['loop' => 2]);

echo $response;
6 changes: 6 additions & 0 deletions twiml/voice/say/say-loop/say-loop.8.x.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from twilio.twiml.voice_response import VoiceResponse, Say

response = VoiceResponse()
response.say('Hello!', loop=2)

print(response)
17 changes: 17 additions & 0 deletions twiml/voice/say/say-loop/say-loop.9.x.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import com.twilio.twiml.VoiceResponse;
import com.twilio.twiml.voice.Say;
import com.twilio.twiml.TwiMLException;


public class Example {
public static void main(String[] args) {
Say say = new Say.Builder("Hello!").loop(2).build();
VoiceResponse response = new VoiceResponse.Builder().say(say).build();

try {
System.out.println(response.toXml());
} catch (TwiMLException e) {
e.printStackTrace();
}
}
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-voice/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "<Say> using voice attribute",
"type": "server"
}
4 changes: 4 additions & 0 deletions twiml/voice/say/say-voice/output/say-voice.twiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="Polly.Mathieu" language="fr-FR">Bonjour! Je m'appelle Mathieu.</Say>
</Response>
9 changes: 9 additions & 0 deletions twiml/voice/say/say-voice/say-voice.4.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const VoiceResponse = require('twilio').twiml.VoiceResponse;

const response = new VoiceResponse();
response.say({
voice: 'Polly.Mathieu',
language: 'fr-FR'
}, 'Bonjour! Je m\'appelle Mathieu.');

console.log(response.toString());
6 changes: 6 additions & 0 deletions twiml/voice/say/say-voice/say-voice.5.x.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'twilio-ruby'

response = Twilio::TwiML::VoiceResponse.new
response.say(voice: 'Polly.Mathieu', language: 'fr-FR', message: "Bonjour! Je m'appelle Mathieu.")

puts response
15 changes: 15 additions & 0 deletions twiml/voice/say/say-voice/say-voice.6.x.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using Twilio.TwiML;
using Twilio.TwiML.Voice;


class Example
{
static void Main()
{
var response = new VoiceResponse();
response.Say("Bonjour! Je m'appelle Mathieu.", voice: "Polly.Mathieu", language: "fr-FR");

Console.WriteLine(response.ToString());
}
}
8 changes: 8 additions & 0 deletions twiml/voice/say/say-voice/say-voice.7.x.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require_once './vendor/autoload.php';
use Twilio\TwiML\VoiceResponse;

$response = new VoiceResponse();
$response->say('Bonjour! Je m\'appelle Mathieu.', ['voice' => 'Polly.Mathieu', 'language' => 'fr-FR']);

echo $response;
7 changes: 7 additions & 0 deletions twiml/voice/say/say-voice/say-voice.8.x.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from twilio.twiml.voice_response import VoiceResponse, Say

response = VoiceResponse()
response.say(
'Bonjour! Je m\'appelle Mathieu.', voice='Polly.Mathieu', language='fr-FR')

print(response)
17 changes: 17 additions & 0 deletions twiml/voice/say/say-voice/say-voice.9.x.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import com.twilio.twiml.VoiceResponse;
import com.twilio.twiml.voice.Say;
import com.twilio.twiml.TwiMLException;


public class Example {
public static void main(String[] args) {
Say say = new Say.Builder("Bonjour! Je m'appelle Mathieu.").voice(Say.Voice.POLLY_MATHIEU).language(Say.Language.FR_FR).build();
VoiceResponse response = new VoiceResponse.Builder().say(say).build();

try {
System.out.println(response.toXml());
} catch (TwiMLException e) {
e.printStackTrace();
}
}
}
Loading