Skip to content

Commit 8310c62

Browse files
authored
Merge pull request TwilioDevEd#922 from TwilioDevEd/DEVED-5284_broken_asset_links
Update soundbyte URLs to use MP3 files hosted by Twilio Assets
2 parents 69d8490 + 55063ce commit 8310c62

20 files changed

+23
-23
lines changed

rest/voice/generate-twiml-gather/example.8.x.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void service(HttpServletRequest request, HttpServletResponse response) th
1515
Say say = new Say.Builder(message).build();
1616

1717
// Play an MP3 for incoming callers.
18-
Play play = new Play.Builder("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3").build();
18+
Play play = new Play.Builder("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3").build();
1919

2020
Say sayInGather = new Say.Builder("To speak to a real person, press 1. "
2121
+ "Press 2 to record a message for a Twilio educator. "

rest/voice/generate-twiml-gather/twiml-gather.5.x.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public ActionResult Index()
1616

1717
var response = new VoiceResponse();
1818
response.Say("Hello. It's me.", voice: "alice", language: "en-GB");
19-
response.Play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3");
19+
response.Play("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3");
2020
response.Gather (gather);
2121

2222
return Content(response.ToString(), "text/xml");

rest/voice/generate-twiml-gather/twiml-gather.5.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
get '/voice' do
88
Twilio::TwiML::Response.new do |r|
99
r.Say "Hello. It's me.", voice: 'alice', language: 'en-GB'
10-
r.Play 'http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3'
10+
r.Play 'https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3'
1111
r.Gather numDigits: '1', action: voice_gather, method: 'get' do |g|
1212
g.Say 'To speak to a real person, press 1.'
1313
g.Say 'Press 2 to record a message for a Twilio educator.'

rest/voice/generate-twiml-gather/twiml-gather.6.x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def voice():
1212
# Greet the caller by name
1313
resp.say("Hello. It's me. ")
1414
# Play an mp3
15-
resp.play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3")
15+
resp.play("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3")
1616

1717
# Gather digits.
1818
with resp.gather(numDigits=1, action="/handle-gather", method="POST") as g:

rest/voice/generate-twiml-gather/twiml-gather.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void service(HttpServletRequest request, HttpServletResponse response) th
2323
Say say = new Say(message);
2424

2525
// Play an MP3 for incoming callers.
26-
Play play = new Play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3");
26+
Play play = new Play("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3");
2727

2828
Gather gather = new Gather();
2929
gather.setAction("/handle-gather");
@@ -44,4 +44,4 @@ public void service(HttpServletRequest request, HttpServletResponse response) th
4444
response.setContentType("application/xml");
4545
response.getWriter().print(twiml.toXML());
4646
}
47-
}
47+
}

rest/voice/generate-twiml-gather/twiml-gather.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
?>
77
<Response>
88
<Say>Hello. It's me.</Say>
9-
<Play>http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3</Play>
9+
<Play>https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3</Play>
1010
<Gather numDigits="1" action="handle-gather.php" method="POST">
1111
<Say>
1212
To speak with a real person, press 1.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Response>
33
<Say>Hello.</Say>
4-
<Play>http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3</Play>
4+
<Play>https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3</Play>
55
<Gather numDigits="1" action="/voice/handle-gather" method="GET">
66
<Say>To speak to a real person, press 1.</Say>
77
<Say>Press 2 to record a message for a Twilio educator.</Say>
88
<Say>Press any other key to start over.</Say>
99
</Gather>
10-
</Response>
10+
</Response>

rest/voice/generate-twiml-play/example-1.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ http
77
const twiml = new VoiceResponse();
88

99
twiml.say("Hello. It's me.");
10-
twiml.play({}, 'http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3');
10+
twiml.play({}, 'https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3');
1111

1212
res.writeHead(200, { 'Content-Type': 'text/xml' });
1313

rest/voice/generate-twiml-play/example-1.5.x.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public ActionResult Index()
1111
{
1212
var response = new VoiceResponse();
1313
response.Say("Hello. It's me.");
14-
response.Play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3");
14+
response.Play("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3");
1515
return Content(response.ToString(), "text/xml");
1616
}
1717
}

rest/voice/generate-twiml-play/example-1.6.x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def voice():
1010

1111
resp = VoiceResponse()
1212
resp.say("Hello. It's me.")
13-
resp.play("http://howtodocs.s3.amazonaws.com/ahoyhoy.mp3")
13+
resp.play("https://deved-sample-assets-2691.twil.io/ahoyhoy.mp3")
1414
return str(resp)
1515

1616

0 commit comments

Comments
 (0)