| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 1 |
+<?php |
|
| 2 |
+require 'vendor/autoload.php'; |
|
| 3 |
+use Plivo\XML\Response; |
|
| 4 |
+ |
|
| 5 |
+$response = new Response(); |
|
| 6 |
+$params1 = array( |
|
| 7 |
+ 'language' => 'en-US', # Language used to read out the text. |
|
| 8 |
+ 'voice' => 'Polly.Joanna', # The tone to be used for reading out the text. |
|
| 9 |
+); |
|
| 10 |
+$params2 = array( |
|
| 11 |
+ 'strength' => 'medium', # Language used to read out the text. |
|
| 12 |
+ 'time' => '2s', # The tone to be used for reading out the text. |
|
| 13 |
+); |
|
| 14 |
+$response->addSpeak('Hello, Rex! Your birthday is on ',$params1);
|
|
| 15 |
+$response->addBreak(); |
|
| 16 |
+$response->addProsody('really like ',array('pitch'=>'-1%'));
|
|
| 17 |
+// $response->addEmphasis('really like ',array('level'=>'strong'));
|
|
| 18 |
+// $response->addLang('plivo mein aapaka svaagat hai',array('xmllang'=>'hi-IN'));
|
|
| 19 |
+// $response->addP('I already told you I ');
|
|
| 20 |
+// $response->addPhoneme('really like ',array('alphabet'=>'ipa','ph'=>'pɪˈkɑːn'));
|
|
| 21 |
+echo $response; |
|
| 0 | 22 |
\ No newline at end of file |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,21 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
-require 'vendor/autoload.php'; |
|
| 3 |
-use Plivo\XML\Response; |
|
| 4 |
- |
|
| 5 |
-$response = new Response(); |
|
| 6 |
-$params1 = array( |
|
| 7 |
- 'language' => 'en-US', # Language used to read out the text. |
|
| 8 |
- 'voice' => 'Polly.Joanna', # The tone to be used for reading out the text. |
|
| 9 |
-); |
|
| 10 |
-$params2 = array( |
|
| 11 |
- 'strength' => 'medium', # Language used to read out the text. |
|
| 12 |
- 'time' => '2s', # The tone to be used for reading out the text. |
|
| 13 |
-); |
|
| 14 |
-$response->addSpeak('Hello, Rex! Your birthday is on ',$params1);
|
|
| 15 |
-$response->addBreak(); |
|
| 16 |
-$response->addProsody('really like ',array('pitch'=>'-1%'));
|
|
| 17 |
-// $response->addEmphasis('really like ',array('level'=>'strong'));
|
|
| 18 |
-// $response->addLang('plivo mein aapaka svaagat hai',array('xmllang'=>'hi-IN'));
|
|
| 19 |
-// $response->addP('I already told you I ');
|
|
| 20 |
-// $response->addPhoneme('really like ',array('alphabet'=>'ipa','ph'=>'pɪˈkɑːn'));
|
|
| 21 |
-echo $response; |
|
| 22 | 0 |
\ No newline at end of file |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 1 |
+<?php |
|
| 2 |
+require 'vendor/autoload.php'; |
|
| 3 |
+use Plivo\XML\Response; |
|
| 4 |
+ |
|
| 5 |
+$response = new Response(); |
|
| 6 |
+$params1 = array( |
|
| 7 |
+ 'language' => 'en-US', # Language used to read out the text. |
|
| 8 |
+ 'voice' => 'Polly.Joanna', # The tone to be used for reading out the text. |
|
| 9 |
+); |
|
| 10 |
+$params2 = array( |
|
| 11 |
+ 'strength' => 'medium', # Language used to read out the text. |
|
| 12 |
+ 'time' => '2s', # The tone to be used for reading out the text. |
|
| 13 |
+); |
|
| 14 |
+$response->addSpeak('Hello, Rex! Your birthday is on ',$params1);
|
|
| 15 |
+$response->addBreak(); |
|
| 16 |
+$response->addProsody('really like ',array('pitch'=>'-1%'));
|
|
| 17 |
+// $response->addEmphasis('really like ',array('level'=>'strong'));
|
|
| 18 |
+// $response->addLang('plivo mein aapaka svaagat hai',array('xmllang'=>'hi-IN'));
|
|
| 19 |
+// $response->addP('I already told you I ');
|
|
| 20 |
+// $response->addPhoneme('really like ',array('alphabet'=>'ipa','ph'=>'pɪˈkɑːn'));
|
|
| 21 |
+echo $response; |
|
| 0 | 22 |
\ No newline at end of file |