twilio 3.68.0 → 3.71.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +104 -0
- package/README.md +1 -1
- package/lib/jwt/AccessToken.d.ts +16 -0
- package/lib/jwt/AccessToken.js +20 -0
- package/lib/jwt/ClientCapability.d.ts +1 -1
- package/lib/rest/Media.d.ts +28 -0
- package/lib/rest/Media.js +64 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/Verify.d.ts +2 -2
- package/lib/rest/Verify.js +3 -4
- package/lib/rest/api/v2010/account/call/siprec.d.ts +776 -0
- package/lib/rest/api/v2010/account/call/siprec.js +811 -0
- package/lib/rest/api/v2010/account/call.d.ts +8 -1
- package/lib/rest/api/v2010/account/call.js +29 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +6 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +5 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +6 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +5 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +6 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +5 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +7 -3
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +7 -4
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +6 -0
- package/lib/rest/conversations/v1/service/configuration/notification.js +11 -1
- package/lib/rest/flexApi/v1/configuration.d.ts +2 -0
- package/lib/rest/flexApi/v1/configuration.js +2 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +4 -0
- package/lib/rest/frontlineApi/v1/user.js +10 -1
- package/lib/rest/insights/v1/callSummaries.d.ts +27 -27
- package/lib/rest/insights/v1/callSummaries.js +36 -36
- package/lib/rest/media/V1.d.ts +28 -0
- package/lib/rest/media/V1.js +59 -0
- package/lib/rest/media/v1/mediaProcessor.d.ts +355 -0
- package/lib/rest/media/v1/mediaProcessor.js +702 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +162 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.js +384 -0
- package/lib/rest/media/v1/playerStreamer.d.ts +366 -0
- package/lib/rest/media/v1/playerStreamer.js +729 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +330 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +655 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +15 -2
- package/lib/rest/messaging/v1/brandRegistration.js +37 -1
- package/lib/rest/messaging/v1/service.d.ts +8 -0
- package/lib/rest/messaging/v1/service.js +14 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +133 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +268 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +127 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +271 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +14 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +56 -0
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/lib/rest/serverless/v1/service/environment.js +1 -1
- package/lib/rest/serverless/v1/service.d.ts +2 -0
- package/lib/rest/serverless/v1/service.js +3 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +2 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +4 -1
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +2 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +4 -1
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +27 -2
- package/lib/rest/taskrouter/v1/workspace/worker.js +22 -7
- package/lib/rest/trunking/v1/trunk.d.ts +9 -1
- package/lib/rest/trunking/v1/trunk.js +13 -2
- package/lib/rest/verify/V2.d.ts +3 -3
- package/lib/rest/verify/V2.js +6 -8
- package/lib/rest/verify/v2/service/entity/factor.d.ts +4 -2
- package/lib/rest/verify/v2/service/entity/factor.js +8 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +2 -2
- package/lib/rest/verify/v2/service/entity/newFactor.js +1 -1
- package/lib/rest/verify/v2/service/verification.d.ts +5 -1
- package/lib/rest/verify/v2/service/verification.js +7 -2
- package/lib/rest/verify/v2/service.d.ts +6 -0
- package/lib/rest/verify/v2/service.js +12 -2
- package/lib/rest/verify/v2/{verificationTemplate.d.ts → template.d.ts} +35 -37
- package/lib/rest/verify/v2/{verificationTemplate.js → template.js} +58 -64
- package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
- package/lib/rest/video/v1/room.d.ts +4 -0
- package/lib/rest/video/v1/room.js +7 -1
- package/lib/rest/wireless/v1/ratePlan.d.ts +1 -1
- package/lib/rest/wireless/v1/ratePlan.js +3 -3
- package/lib/rest/wireless/v1/sim.d.ts +4 -4
- package/lib/rest/wireless/v1/sim.js +18 -24
- package/lib/twiml/VoiceResponse.d.ts +1296 -24
- package/lib/twiml/VoiceResponse.js +2170 -82
- package/package.json +2 -2
|
@@ -1310,152 +1310,2240 @@ function SsmlW(ssmlW) {
|
|
|
1310
1310
|
SsmlW.prototype = Object.create(TwiML.prototype);
|
|
1311
1311
|
SsmlW.prototype.constructor = SsmlW;
|
|
1312
1312
|
|
|
1313
|
-
|
|
1314
1313
|
/* jshint ignore:start */
|
|
1315
1314
|
/**
|
|
1316
|
-
*
|
|
1315
|
+
* Adding a Pause in <Say>
|
|
1317
1316
|
*
|
|
1318
|
-
* @
|
|
1317
|
+
* @function break_
|
|
1318
|
+
* @memberof SsmlW#
|
|
1319
1319
|
*
|
|
1320
|
-
* @param {object}
|
|
1320
|
+
* @param {object} [attributes] - TwiML attributes
|
|
1321
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
1322
|
+
* Set a pause based on strength
|
|
1323
|
+
* @param {string} [attributes.time] -
|
|
1324
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
1325
|
+
*
|
|
1326
|
+
* @returns SsmlBreak
|
|
1321
1327
|
*/
|
|
1322
1328
|
/* jshint ignore:end */
|
|
1323
|
-
function
|
|
1324
|
-
this.
|
|
1325
|
-
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
SsmlSub.prototype = Object.create(TwiML.prototype);
|
|
1329
|
-
SsmlSub.prototype.constructor = SsmlSub;
|
|
1330
|
-
|
|
1329
|
+
SsmlW.prototype.break_ = function break_(attributes) {
|
|
1330
|
+
return new SsmlBreak(this.w.ele('break', attributes));
|
|
1331
|
+
};
|
|
1331
1332
|
|
|
1332
1333
|
/* jshint ignore:start */
|
|
1333
1334
|
/**
|
|
1334
|
-
*
|
|
1335
|
+
* Adding a Pause in <Say>
|
|
1335
1336
|
*
|
|
1336
|
-
* @
|
|
1337
|
+
* @function ssmlBreak
|
|
1338
|
+
* @memberof SsmlW#
|
|
1339
|
+
* @deprecated - Use break_() instead.
|
|
1337
1340
|
*
|
|
1338
|
-
* @param {object}
|
|
1339
|
-
*
|
|
1341
|
+
* @param {object} [attributes] - TwiML attributes
|
|
1342
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
1343
|
+
* Set a pause based on strength
|
|
1344
|
+
* @param {string} [attributes.time] -
|
|
1345
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
1346
|
+
*
|
|
1347
|
+
* @returns SsmlBreak
|
|
1340
1348
|
*/
|
|
1341
1349
|
/* jshint ignore:end */
|
|
1342
|
-
function
|
|
1343
|
-
this.
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
SsmlSayAs.prototype = Object.create(TwiML.prototype);
|
|
1348
|
-
SsmlSayAs.prototype.constructor = SsmlSayAs;
|
|
1349
|
-
|
|
1350
|
+
SsmlW.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes) {
|
|
1351
|
+
return this.break_(attributes);
|
|
1352
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
1350
1353
|
|
|
1351
1354
|
/* jshint ignore:start */
|
|
1352
1355
|
/**
|
|
1353
|
-
*
|
|
1356
|
+
* Emphasizing Words in <Say>
|
|
1354
1357
|
*
|
|
1355
|
-
* @
|
|
1358
|
+
* @function emphasis
|
|
1359
|
+
* @memberof SsmlW#
|
|
1356
1360
|
*
|
|
1357
|
-
* @param {object}
|
|
1361
|
+
* @param {object} attributes - TwiML attributes
|
|
1362
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
1363
|
+
* @param {string} words - Words to emphasize
|
|
1364
|
+
*
|
|
1365
|
+
* @returns SsmlEmphasis
|
|
1358
1366
|
*/
|
|
1359
1367
|
/* jshint ignore:end */
|
|
1360
|
-
function
|
|
1361
|
-
this.
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
SsmlS.prototype = Object.create(TwiML.prototype);
|
|
1366
|
-
SsmlS.prototype.constructor = SsmlS;
|
|
1367
|
-
|
|
1368
|
+
SsmlW.prototype.emphasis = function emphasis(attributes, words) {
|
|
1369
|
+
return new SsmlEmphasis(this.w.ele('emphasis', attributes, words));
|
|
1370
|
+
};
|
|
1368
1371
|
|
|
1369
1372
|
/* jshint ignore:start */
|
|
1370
1373
|
/**
|
|
1371
|
-
*
|
|
1374
|
+
* Emphasizing Words in <Say>
|
|
1372
1375
|
*
|
|
1373
|
-
* @
|
|
1376
|
+
* @function ssmlEmphasis
|
|
1377
|
+
* @memberof SsmlW#
|
|
1378
|
+
* @deprecated - Use emphasis() instead.
|
|
1374
1379
|
*
|
|
1375
|
-
* @param {object}
|
|
1376
|
-
*
|
|
1380
|
+
* @param {object} attributes - TwiML attributes
|
|
1381
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
1382
|
+
* @param {string} words - Words to emphasize
|
|
1383
|
+
*
|
|
1384
|
+
* @returns SsmlEmphasis
|
|
1377
1385
|
*/
|
|
1378
1386
|
/* jshint ignore:end */
|
|
1379
|
-
function
|
|
1380
|
-
|
|
1381
|
-
this.
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
SsmlProsody.prototype = Object.create(TwiML.prototype);
|
|
1385
|
-
SsmlProsody.prototype.constructor = SsmlProsody;
|
|
1386
|
-
|
|
1387
|
+
SsmlW.prototype.ssmlEmphasis = util.deprecate(function ssmlEmphasis(attributes,
|
|
1388
|
+
words) {
|
|
1389
|
+
return this.emphasis(attributes, words);
|
|
1390
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
1387
1391
|
|
|
1388
1392
|
/* jshint ignore:start */
|
|
1389
1393
|
/**
|
|
1390
1394
|
* Using Phonetic Pronunciation in <Say>
|
|
1391
1395
|
*
|
|
1392
|
-
* @
|
|
1396
|
+
* @function phoneme
|
|
1397
|
+
* @memberof SsmlW#
|
|
1393
1398
|
*
|
|
1394
|
-
* @param {object}
|
|
1399
|
+
* @param {object} attributes - TwiML attributes
|
|
1400
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
1401
|
+
* Specify the phonetic alphabet
|
|
1402
|
+
* @param {string} [attributes.ph] -
|
|
1403
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
1404
|
+
* @param {string} words - Words to speak
|
|
1405
|
+
*
|
|
1406
|
+
* @returns SsmlPhoneme
|
|
1395
1407
|
*/
|
|
1396
1408
|
/* jshint ignore:end */
|
|
1397
|
-
function
|
|
1398
|
-
this.
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1409
|
+
SsmlW.prototype.phoneme = function phoneme(attributes, words) {
|
|
1410
|
+
return new SsmlPhoneme(this.w.ele('phoneme', attributes, words));
|
|
1411
|
+
};
|
|
1401
1412
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1413
|
+
/* jshint ignore:start */
|
|
1414
|
+
/**
|
|
1415
|
+
* Using Phonetic Pronunciation in <Say>
|
|
1416
|
+
*
|
|
1417
|
+
* @function ssmlPhoneme
|
|
1418
|
+
* @memberof SsmlW#
|
|
1419
|
+
* @deprecated - Use phoneme() instead.
|
|
1420
|
+
*
|
|
1421
|
+
* @param {object} attributes - TwiML attributes
|
|
1422
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
1423
|
+
* Specify the phonetic alphabet
|
|
1424
|
+
* @param {string} [attributes.ph] -
|
|
1425
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
1426
|
+
* @param {string} words - Words to speak
|
|
1427
|
+
*
|
|
1428
|
+
* @returns SsmlPhoneme
|
|
1429
|
+
*/
|
|
1430
|
+
/* jshint ignore:end */
|
|
1431
|
+
SsmlW.prototype.ssmlPhoneme = util.deprecate(function ssmlPhoneme(attributes,
|
|
1432
|
+
words) {
|
|
1433
|
+
return this.phoneme(attributes, words);
|
|
1434
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
1404
1435
|
|
|
1436
|
+
/* jshint ignore:start */
|
|
1437
|
+
/**
|
|
1438
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1439
|
+
*
|
|
1440
|
+
* @function prosody
|
|
1441
|
+
* @memberof SsmlW#
|
|
1442
|
+
*
|
|
1443
|
+
* @param {object} attributes - TwiML attributes
|
|
1444
|
+
* @param {string} [attributes.volume] -
|
|
1445
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
1446
|
+
* @param {string} [attributes.rate] -
|
|
1447
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
1448
|
+
* @param {string} [attributes.pitch] -
|
|
1449
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
1450
|
+
* @param {string} words - Words to speak
|
|
1451
|
+
*
|
|
1452
|
+
* @returns SsmlProsody
|
|
1453
|
+
*/
|
|
1454
|
+
/* jshint ignore:end */
|
|
1455
|
+
SsmlW.prototype.prosody = function prosody(attributes, words) {
|
|
1456
|
+
return new SsmlProsody(this.w.ele('prosody', attributes, words));
|
|
1457
|
+
};
|
|
1405
1458
|
|
|
1406
1459
|
/* jshint ignore:start */
|
|
1407
1460
|
/**
|
|
1408
|
-
*
|
|
1461
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1409
1462
|
*
|
|
1410
|
-
* @
|
|
1463
|
+
* @function ssmlProsody
|
|
1464
|
+
* @memberof SsmlW#
|
|
1465
|
+
* @deprecated - Use prosody() instead.
|
|
1411
1466
|
*
|
|
1412
|
-
* @param {object}
|
|
1467
|
+
* @param {object} attributes - TwiML attributes
|
|
1468
|
+
* @param {string} [attributes.volume] -
|
|
1469
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
1470
|
+
* @param {string} [attributes.rate] -
|
|
1471
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
1472
|
+
* @param {string} [attributes.pitch] -
|
|
1473
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
1474
|
+
* @param {string} words - Words to speak
|
|
1475
|
+
*
|
|
1476
|
+
* @returns SsmlProsody
|
|
1413
1477
|
*/
|
|
1414
1478
|
/* jshint ignore:end */
|
|
1415
|
-
function
|
|
1416
|
-
|
|
1417
|
-
this.
|
|
1418
|
-
}
|
|
1479
|
+
SsmlW.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
|
|
1480
|
+
words) {
|
|
1481
|
+
return this.prosody(attributes, words);
|
|
1482
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
1419
1483
|
|
|
1420
|
-
|
|
1421
|
-
|
|
1484
|
+
/* jshint ignore:start */
|
|
1485
|
+
/**
|
|
1486
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1487
|
+
*
|
|
1488
|
+
* @function sayAs
|
|
1489
|
+
* @memberof SsmlW#
|
|
1490
|
+
*
|
|
1491
|
+
* @param {object} attributes - TwiML attributes
|
|
1492
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
1493
|
+
* as] - Specify the type of words are spoken
|
|
1494
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
1495
|
+
* Specify the format of the date when interpret-as is set to date
|
|
1496
|
+
* @param {string} words - Words to be interpreted
|
|
1497
|
+
*
|
|
1498
|
+
* @returns SsmlSayAs
|
|
1499
|
+
*/
|
|
1500
|
+
/* jshint ignore:end */
|
|
1501
|
+
SsmlW.prototype.sayAs = function sayAs(attributes, words) {
|
|
1502
|
+
return new SsmlSayAs(this.w.ele('say-as', attributes, words));
|
|
1503
|
+
};
|
|
1422
1504
|
|
|
1505
|
+
/* jshint ignore:start */
|
|
1506
|
+
/**
|
|
1507
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1508
|
+
*
|
|
1509
|
+
* @function ssmlSayAs
|
|
1510
|
+
* @memberof SsmlW#
|
|
1511
|
+
* @deprecated - Use sayAs() instead.
|
|
1512
|
+
*
|
|
1513
|
+
* @param {object} attributes - TwiML attributes
|
|
1514
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
1515
|
+
* as] - Specify the type of words are spoken
|
|
1516
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
1517
|
+
* Specify the format of the date when interpret-as is set to date
|
|
1518
|
+
* @param {string} words - Words to be interpreted
|
|
1519
|
+
*
|
|
1520
|
+
* @returns SsmlSayAs
|
|
1521
|
+
*/
|
|
1522
|
+
/* jshint ignore:end */
|
|
1523
|
+
SsmlW.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes, words)
|
|
1524
|
+
{
|
|
1525
|
+
return this.sayAs(attributes, words);
|
|
1526
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
1423
1527
|
|
|
1424
1528
|
/* jshint ignore:start */
|
|
1425
1529
|
/**
|
|
1426
|
-
*
|
|
1530
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1427
1531
|
*
|
|
1428
|
-
* @
|
|
1532
|
+
* @function sub
|
|
1533
|
+
* @memberof SsmlW#
|
|
1429
1534
|
*
|
|
1430
|
-
* @param {object}
|
|
1431
|
-
*
|
|
1535
|
+
* @param {object} attributes - TwiML attributes
|
|
1536
|
+
* @param {string} [attributes.alias] -
|
|
1537
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
1538
|
+
* @param {string} words - Words to be substituted
|
|
1539
|
+
*
|
|
1540
|
+
* @returns SsmlSub
|
|
1432
1541
|
*/
|
|
1433
1542
|
/* jshint ignore:end */
|
|
1434
|
-
function
|
|
1435
|
-
this.
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1543
|
+
SsmlW.prototype.sub = function sub(attributes, words) {
|
|
1544
|
+
return new SsmlSub(this.w.ele('sub', attributes, words));
|
|
1545
|
+
};
|
|
1438
1546
|
|
|
1439
|
-
|
|
1440
|
-
|
|
1547
|
+
/* jshint ignore:start */
|
|
1548
|
+
/**
|
|
1549
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1550
|
+
*
|
|
1551
|
+
* @function ssmlSub
|
|
1552
|
+
* @memberof SsmlW#
|
|
1553
|
+
* @deprecated - Use sub() instead.
|
|
1554
|
+
*
|
|
1555
|
+
* @param {object} attributes - TwiML attributes
|
|
1556
|
+
* @param {string} [attributes.alias] -
|
|
1557
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
1558
|
+
* @param {string} words - Words to be substituted
|
|
1559
|
+
*
|
|
1560
|
+
* @returns SsmlSub
|
|
1561
|
+
*/
|
|
1562
|
+
/* jshint ignore:end */
|
|
1563
|
+
SsmlW.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes, words) {
|
|
1564
|
+
return this.sub(attributes, words);
|
|
1565
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
1441
1566
|
|
|
1442
1567
|
|
|
1443
1568
|
/* jshint ignore:start */
|
|
1444
1569
|
/**
|
|
1445
|
-
*
|
|
1570
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1446
1571
|
*
|
|
1447
|
-
* @constructor
|
|
1572
|
+
* @constructor SsmlSub
|
|
1448
1573
|
*
|
|
1449
|
-
* @param {object}
|
|
1574
|
+
* @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in <Say>
|
|
1450
1575
|
*/
|
|
1451
1576
|
/* jshint ignore:end */
|
|
1452
|
-
function
|
|
1453
|
-
this.
|
|
1454
|
-
this._propertyName = '
|
|
1577
|
+
function SsmlSub(ssmlSub) {
|
|
1578
|
+
this.ssmlSub = ssmlSub;
|
|
1579
|
+
this._propertyName = 'ssmlSub';
|
|
1455
1580
|
}
|
|
1456
1581
|
|
|
1457
|
-
|
|
1458
|
-
|
|
1582
|
+
SsmlSub.prototype = Object.create(TwiML.prototype);
|
|
1583
|
+
SsmlSub.prototype.constructor = SsmlSub;
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
/* jshint ignore:start */
|
|
1587
|
+
/**
|
|
1588
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1589
|
+
*
|
|
1590
|
+
* @constructor SsmlSayAs
|
|
1591
|
+
*
|
|
1592
|
+
* @param {object} ssmlSayAs -
|
|
1593
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1594
|
+
*/
|
|
1595
|
+
/* jshint ignore:end */
|
|
1596
|
+
function SsmlSayAs(ssmlSayAs) {
|
|
1597
|
+
this.ssmlSayAs = ssmlSayAs;
|
|
1598
|
+
this._propertyName = 'ssmlSayAs';
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
SsmlSayAs.prototype = Object.create(TwiML.prototype);
|
|
1602
|
+
SsmlSayAs.prototype.constructor = SsmlSayAs;
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
/* jshint ignore:start */
|
|
1606
|
+
/**
|
|
1607
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1608
|
+
*
|
|
1609
|
+
* @constructor SsmlProsody
|
|
1610
|
+
*
|
|
1611
|
+
* @param {object} ssmlProsody -
|
|
1612
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1613
|
+
*/
|
|
1614
|
+
/* jshint ignore:end */
|
|
1615
|
+
function SsmlProsody(ssmlProsody) {
|
|
1616
|
+
this.ssmlProsody = ssmlProsody;
|
|
1617
|
+
this._propertyName = 'ssmlProsody';
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
SsmlProsody.prototype = Object.create(TwiML.prototype);
|
|
1621
|
+
SsmlProsody.prototype.constructor = SsmlProsody;
|
|
1622
|
+
|
|
1623
|
+
/* jshint ignore:start */
|
|
1624
|
+
/**
|
|
1625
|
+
* Adding a Pause in <Say>
|
|
1626
|
+
*
|
|
1627
|
+
* @function break_
|
|
1628
|
+
* @memberof SsmlProsody#
|
|
1629
|
+
*
|
|
1630
|
+
* @param {object} [attributes] - TwiML attributes
|
|
1631
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
1632
|
+
* Set a pause based on strength
|
|
1633
|
+
* @param {string} [attributes.time] -
|
|
1634
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
1635
|
+
*
|
|
1636
|
+
* @returns SsmlBreak
|
|
1637
|
+
*/
|
|
1638
|
+
/* jshint ignore:end */
|
|
1639
|
+
SsmlProsody.prototype.break_ = function break_(attributes) {
|
|
1640
|
+
return new SsmlBreak(this.prosody.ele('break', attributes));
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1643
|
+
/* jshint ignore:start */
|
|
1644
|
+
/**
|
|
1645
|
+
* Adding a Pause in <Say>
|
|
1646
|
+
*
|
|
1647
|
+
* @function ssmlBreak
|
|
1648
|
+
* @memberof SsmlProsody#
|
|
1649
|
+
* @deprecated - Use break_() instead.
|
|
1650
|
+
*
|
|
1651
|
+
* @param {object} [attributes] - TwiML attributes
|
|
1652
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
1653
|
+
* Set a pause based on strength
|
|
1654
|
+
* @param {string} [attributes.time] -
|
|
1655
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
1656
|
+
*
|
|
1657
|
+
* @returns SsmlBreak
|
|
1658
|
+
*/
|
|
1659
|
+
/* jshint ignore:end */
|
|
1660
|
+
SsmlProsody.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes)
|
|
1661
|
+
{
|
|
1662
|
+
return this.break_(attributes);
|
|
1663
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
1664
|
+
|
|
1665
|
+
/* jshint ignore:start */
|
|
1666
|
+
/**
|
|
1667
|
+
* Emphasizing Words in <Say>
|
|
1668
|
+
*
|
|
1669
|
+
* @function emphasis
|
|
1670
|
+
* @memberof SsmlProsody#
|
|
1671
|
+
*
|
|
1672
|
+
* @param {object} attributes - TwiML attributes
|
|
1673
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
1674
|
+
* @param {string} words - Words to emphasize
|
|
1675
|
+
*
|
|
1676
|
+
* @returns SsmlEmphasis
|
|
1677
|
+
*/
|
|
1678
|
+
/* jshint ignore:end */
|
|
1679
|
+
SsmlProsody.prototype.emphasis = function emphasis(attributes, words) {
|
|
1680
|
+
return new SsmlEmphasis(this.prosody.ele('emphasis', attributes, words));
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
/* jshint ignore:start */
|
|
1684
|
+
/**
|
|
1685
|
+
* Emphasizing Words in <Say>
|
|
1686
|
+
*
|
|
1687
|
+
* @function ssmlEmphasis
|
|
1688
|
+
* @memberof SsmlProsody#
|
|
1689
|
+
* @deprecated - Use emphasis() instead.
|
|
1690
|
+
*
|
|
1691
|
+
* @param {object} attributes - TwiML attributes
|
|
1692
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
1693
|
+
* @param {string} words - Words to emphasize
|
|
1694
|
+
*
|
|
1695
|
+
* @returns SsmlEmphasis
|
|
1696
|
+
*/
|
|
1697
|
+
/* jshint ignore:end */
|
|
1698
|
+
SsmlProsody.prototype.ssmlEmphasis = util.deprecate(function
|
|
1699
|
+
ssmlEmphasis(attributes, words) {
|
|
1700
|
+
return this.emphasis(attributes, words);
|
|
1701
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
1702
|
+
|
|
1703
|
+
/* jshint ignore:start */
|
|
1704
|
+
/**
|
|
1705
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
1706
|
+
*
|
|
1707
|
+
* @function lang
|
|
1708
|
+
* @memberof SsmlProsody#
|
|
1709
|
+
*
|
|
1710
|
+
* @param {object} attributes - TwiML attributes
|
|
1711
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
1712
|
+
* @param {string} words - Words to speak
|
|
1713
|
+
*
|
|
1714
|
+
* @returns SsmlLang
|
|
1715
|
+
*/
|
|
1716
|
+
/* jshint ignore:end */
|
|
1717
|
+
SsmlProsody.prototype.lang = function lang(attributes, words) {
|
|
1718
|
+
return new SsmlLang(this.prosody.ele('lang', attributes, words));
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
/* jshint ignore:start */
|
|
1722
|
+
/**
|
|
1723
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
1724
|
+
*
|
|
1725
|
+
* @function ssmlLang
|
|
1726
|
+
* @memberof SsmlProsody#
|
|
1727
|
+
* @deprecated - Use lang() instead.
|
|
1728
|
+
*
|
|
1729
|
+
* @param {object} attributes - TwiML attributes
|
|
1730
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
1731
|
+
* @param {string} words - Words to speak
|
|
1732
|
+
*
|
|
1733
|
+
* @returns SsmlLang
|
|
1734
|
+
*/
|
|
1735
|
+
/* jshint ignore:end */
|
|
1736
|
+
SsmlProsody.prototype.ssmlLang = util.deprecate(function ssmlLang(attributes,
|
|
1737
|
+
words) {
|
|
1738
|
+
return this.lang(attributes, words);
|
|
1739
|
+
}, 'ssmlLang() is deprecated. Use lang() instead.');
|
|
1740
|
+
|
|
1741
|
+
/* jshint ignore:start */
|
|
1742
|
+
/**
|
|
1743
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
1744
|
+
*
|
|
1745
|
+
* @function p
|
|
1746
|
+
* @memberof SsmlProsody#
|
|
1747
|
+
*
|
|
1748
|
+
* @param {object} attributes - TwiML attributes
|
|
1749
|
+
* @param {string} words - Words to speak
|
|
1750
|
+
*
|
|
1751
|
+
* @returns SsmlP
|
|
1752
|
+
*/
|
|
1753
|
+
/* jshint ignore:end */
|
|
1754
|
+
SsmlProsody.prototype.p = function p(attributes, words) {
|
|
1755
|
+
return new SsmlP(this.prosody.ele('p', attributes, words));
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
/* jshint ignore:start */
|
|
1759
|
+
/**
|
|
1760
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
1761
|
+
*
|
|
1762
|
+
* @function ssmlP
|
|
1763
|
+
* @memberof SsmlProsody#
|
|
1764
|
+
* @deprecated - Use p() instead.
|
|
1765
|
+
*
|
|
1766
|
+
* @param {object} attributes - TwiML attributes
|
|
1767
|
+
* @param {string} words - Words to speak
|
|
1768
|
+
*
|
|
1769
|
+
* @returns SsmlP
|
|
1770
|
+
*/
|
|
1771
|
+
/* jshint ignore:end */
|
|
1772
|
+
SsmlProsody.prototype.ssmlP = util.deprecate(function ssmlP(attributes, words) {
|
|
1773
|
+
return this.p(attributes, words);
|
|
1774
|
+
}, 'ssmlP() is deprecated. Use p() instead.');
|
|
1775
|
+
|
|
1776
|
+
/* jshint ignore:start */
|
|
1777
|
+
/**
|
|
1778
|
+
* Using Phonetic Pronunciation in <Say>
|
|
1779
|
+
*
|
|
1780
|
+
* @function phoneme
|
|
1781
|
+
* @memberof SsmlProsody#
|
|
1782
|
+
*
|
|
1783
|
+
* @param {object} attributes - TwiML attributes
|
|
1784
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
1785
|
+
* Specify the phonetic alphabet
|
|
1786
|
+
* @param {string} [attributes.ph] -
|
|
1787
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
1788
|
+
* @param {string} words - Words to speak
|
|
1789
|
+
*
|
|
1790
|
+
* @returns SsmlPhoneme
|
|
1791
|
+
*/
|
|
1792
|
+
/* jshint ignore:end */
|
|
1793
|
+
SsmlProsody.prototype.phoneme = function phoneme(attributes, words) {
|
|
1794
|
+
return new SsmlPhoneme(this.prosody.ele('phoneme', attributes, words));
|
|
1795
|
+
};
|
|
1796
|
+
|
|
1797
|
+
/* jshint ignore:start */
|
|
1798
|
+
/**
|
|
1799
|
+
* Using Phonetic Pronunciation in <Say>
|
|
1800
|
+
*
|
|
1801
|
+
* @function ssmlPhoneme
|
|
1802
|
+
* @memberof SsmlProsody#
|
|
1803
|
+
* @deprecated - Use phoneme() instead.
|
|
1804
|
+
*
|
|
1805
|
+
* @param {object} attributes - TwiML attributes
|
|
1806
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
1807
|
+
* Specify the phonetic alphabet
|
|
1808
|
+
* @param {string} [attributes.ph] -
|
|
1809
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
1810
|
+
* @param {string} words - Words to speak
|
|
1811
|
+
*
|
|
1812
|
+
* @returns SsmlPhoneme
|
|
1813
|
+
*/
|
|
1814
|
+
/* jshint ignore:end */
|
|
1815
|
+
SsmlProsody.prototype.ssmlPhoneme = util.deprecate(function
|
|
1816
|
+
ssmlPhoneme(attributes, words) {
|
|
1817
|
+
return this.phoneme(attributes, words);
|
|
1818
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
1819
|
+
|
|
1820
|
+
/* jshint ignore:start */
|
|
1821
|
+
/**
|
|
1822
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1823
|
+
*
|
|
1824
|
+
* @function prosody
|
|
1825
|
+
* @memberof SsmlProsody#
|
|
1826
|
+
*
|
|
1827
|
+
* @param {object} attributes - TwiML attributes
|
|
1828
|
+
* @param {string} [attributes.volume] -
|
|
1829
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
1830
|
+
* @param {string} [attributes.rate] -
|
|
1831
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
1832
|
+
* @param {string} [attributes.pitch] -
|
|
1833
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
1834
|
+
* @param {string} words - Words to speak
|
|
1835
|
+
*
|
|
1836
|
+
* @returns SsmlProsody
|
|
1837
|
+
*/
|
|
1838
|
+
/* jshint ignore:end */
|
|
1839
|
+
SsmlProsody.prototype.prosody = function prosody(attributes, words) {
|
|
1840
|
+
return new SsmlProsody(this.prosody.ele('prosody', attributes, words));
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1843
|
+
/* jshint ignore:start */
|
|
1844
|
+
/**
|
|
1845
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1846
|
+
*
|
|
1847
|
+
* @function ssmlProsody
|
|
1848
|
+
* @memberof SsmlProsody#
|
|
1849
|
+
* @deprecated - Use prosody() instead.
|
|
1850
|
+
*
|
|
1851
|
+
* @param {object} attributes - TwiML attributes
|
|
1852
|
+
* @param {string} [attributes.volume] -
|
|
1853
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
1854
|
+
* @param {string} [attributes.rate] -
|
|
1855
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
1856
|
+
* @param {string} [attributes.pitch] -
|
|
1857
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
1858
|
+
* @param {string} words - Words to speak
|
|
1859
|
+
*
|
|
1860
|
+
* @returns SsmlProsody
|
|
1861
|
+
*/
|
|
1862
|
+
/* jshint ignore:end */
|
|
1863
|
+
SsmlProsody.prototype.ssmlProsody = util.deprecate(function
|
|
1864
|
+
ssmlProsody(attributes, words) {
|
|
1865
|
+
return this.prosody(attributes, words);
|
|
1866
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
1867
|
+
|
|
1868
|
+
/* jshint ignore:start */
|
|
1869
|
+
/**
|
|
1870
|
+
* Adding A Pause Between Sentences in <Say>
|
|
1871
|
+
*
|
|
1872
|
+
* @function s
|
|
1873
|
+
* @memberof SsmlProsody#
|
|
1874
|
+
*
|
|
1875
|
+
* @param {object} attributes - TwiML attributes
|
|
1876
|
+
* @param {string} words - Words to speak
|
|
1877
|
+
*
|
|
1878
|
+
* @returns SsmlS
|
|
1879
|
+
*/
|
|
1880
|
+
/* jshint ignore:end */
|
|
1881
|
+
SsmlProsody.prototype.s = function s(attributes, words) {
|
|
1882
|
+
return new SsmlS(this.prosody.ele('s', attributes, words));
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
/* jshint ignore:start */
|
|
1886
|
+
/**
|
|
1887
|
+
* Adding A Pause Between Sentences in <Say>
|
|
1888
|
+
*
|
|
1889
|
+
* @function ssmlS
|
|
1890
|
+
* @memberof SsmlProsody#
|
|
1891
|
+
* @deprecated - Use s() instead.
|
|
1892
|
+
*
|
|
1893
|
+
* @param {object} attributes - TwiML attributes
|
|
1894
|
+
* @param {string} words - Words to speak
|
|
1895
|
+
*
|
|
1896
|
+
* @returns SsmlS
|
|
1897
|
+
*/
|
|
1898
|
+
/* jshint ignore:end */
|
|
1899
|
+
SsmlProsody.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
|
|
1900
|
+
return this.s(attributes, words);
|
|
1901
|
+
}, 'ssmlS() is deprecated. Use s() instead.');
|
|
1902
|
+
|
|
1903
|
+
/* jshint ignore:start */
|
|
1904
|
+
/**
|
|
1905
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1906
|
+
*
|
|
1907
|
+
* @function sayAs
|
|
1908
|
+
* @memberof SsmlProsody#
|
|
1909
|
+
*
|
|
1910
|
+
* @param {object} attributes - TwiML attributes
|
|
1911
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
1912
|
+
* as] - Specify the type of words are spoken
|
|
1913
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
1914
|
+
* Specify the format of the date when interpret-as is set to date
|
|
1915
|
+
* @param {string} words - Words to be interpreted
|
|
1916
|
+
*
|
|
1917
|
+
* @returns SsmlSayAs
|
|
1918
|
+
*/
|
|
1919
|
+
/* jshint ignore:end */
|
|
1920
|
+
SsmlProsody.prototype.sayAs = function sayAs(attributes, words) {
|
|
1921
|
+
return new SsmlSayAs(this.prosody.ele('say-as', attributes, words));
|
|
1922
|
+
};
|
|
1923
|
+
|
|
1924
|
+
/* jshint ignore:start */
|
|
1925
|
+
/**
|
|
1926
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1927
|
+
*
|
|
1928
|
+
* @function ssmlSayAs
|
|
1929
|
+
* @memberof SsmlProsody#
|
|
1930
|
+
* @deprecated - Use sayAs() instead.
|
|
1931
|
+
*
|
|
1932
|
+
* @param {object} attributes - TwiML attributes
|
|
1933
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
1934
|
+
* as] - Specify the type of words are spoken
|
|
1935
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
1936
|
+
* Specify the format of the date when interpret-as is set to date
|
|
1937
|
+
* @param {string} words - Words to be interpreted
|
|
1938
|
+
*
|
|
1939
|
+
* @returns SsmlSayAs
|
|
1940
|
+
*/
|
|
1941
|
+
/* jshint ignore:end */
|
|
1942
|
+
SsmlProsody.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes,
|
|
1943
|
+
words) {
|
|
1944
|
+
return this.sayAs(attributes, words);
|
|
1945
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
1946
|
+
|
|
1947
|
+
/* jshint ignore:start */
|
|
1948
|
+
/**
|
|
1949
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1950
|
+
*
|
|
1951
|
+
* @function sub
|
|
1952
|
+
* @memberof SsmlProsody#
|
|
1953
|
+
*
|
|
1954
|
+
* @param {object} attributes - TwiML attributes
|
|
1955
|
+
* @param {string} [attributes.alias] -
|
|
1956
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
1957
|
+
* @param {string} words - Words to be substituted
|
|
1958
|
+
*
|
|
1959
|
+
* @returns SsmlSub
|
|
1960
|
+
*/
|
|
1961
|
+
/* jshint ignore:end */
|
|
1962
|
+
SsmlProsody.prototype.sub = function sub(attributes, words) {
|
|
1963
|
+
return new SsmlSub(this.prosody.ele('sub', attributes, words));
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
/* jshint ignore:start */
|
|
1967
|
+
/**
|
|
1968
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1969
|
+
*
|
|
1970
|
+
* @function ssmlSub
|
|
1971
|
+
* @memberof SsmlProsody#
|
|
1972
|
+
* @deprecated - Use sub() instead.
|
|
1973
|
+
*
|
|
1974
|
+
* @param {object} attributes - TwiML attributes
|
|
1975
|
+
* @param {string} [attributes.alias] -
|
|
1976
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
1977
|
+
* @param {string} words - Words to be substituted
|
|
1978
|
+
*
|
|
1979
|
+
* @returns SsmlSub
|
|
1980
|
+
*/
|
|
1981
|
+
/* jshint ignore:end */
|
|
1982
|
+
SsmlProsody.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes,
|
|
1983
|
+
words) {
|
|
1984
|
+
return this.sub(attributes, words);
|
|
1985
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
1986
|
+
|
|
1987
|
+
/* jshint ignore:start */
|
|
1988
|
+
/**
|
|
1989
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
1990
|
+
*
|
|
1991
|
+
* @function w
|
|
1992
|
+
* @memberof SsmlProsody#
|
|
1993
|
+
*
|
|
1994
|
+
* @param {object} attributes - TwiML attributes
|
|
1995
|
+
* @param {string} [attributes.role] -
|
|
1996
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
1997
|
+
* @param {string} words - Words to speak
|
|
1998
|
+
*
|
|
1999
|
+
* @returns SsmlW
|
|
2000
|
+
*/
|
|
2001
|
+
/* jshint ignore:end */
|
|
2002
|
+
SsmlProsody.prototype.w = function w(attributes, words) {
|
|
2003
|
+
return new SsmlW(this.prosody.ele('w', attributes, words));
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
/* jshint ignore:start */
|
|
2007
|
+
/**
|
|
2008
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
2009
|
+
*
|
|
2010
|
+
* @function ssmlW
|
|
2011
|
+
* @memberof SsmlProsody#
|
|
2012
|
+
* @deprecated - Use w() instead.
|
|
2013
|
+
*
|
|
2014
|
+
* @param {object} attributes - TwiML attributes
|
|
2015
|
+
* @param {string} [attributes.role] -
|
|
2016
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
2017
|
+
* @param {string} words - Words to speak
|
|
2018
|
+
*
|
|
2019
|
+
* @returns SsmlW
|
|
2020
|
+
*/
|
|
2021
|
+
/* jshint ignore:end */
|
|
2022
|
+
SsmlProsody.prototype.ssmlW = util.deprecate(function ssmlW(attributes, words) {
|
|
2023
|
+
return this.w(attributes, words);
|
|
2024
|
+
}, 'ssmlW() is deprecated. Use w() instead.');
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
/* jshint ignore:start */
|
|
2028
|
+
/**
|
|
2029
|
+
* Adding A Pause Between Sentences in <Say>
|
|
2030
|
+
*
|
|
2031
|
+
* @constructor SsmlS
|
|
2032
|
+
*
|
|
2033
|
+
* @param {object} ssmlS - Adding A Pause Between Sentences in <Say>
|
|
2034
|
+
*/
|
|
2035
|
+
/* jshint ignore:end */
|
|
2036
|
+
function SsmlS(ssmlS) {
|
|
2037
|
+
this.ssmlS = ssmlS;
|
|
2038
|
+
this._propertyName = 'ssmlS';
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
SsmlS.prototype = Object.create(TwiML.prototype);
|
|
2042
|
+
SsmlS.prototype.constructor = SsmlS;
|
|
2043
|
+
|
|
2044
|
+
/* jshint ignore:start */
|
|
2045
|
+
/**
|
|
2046
|
+
* Adding a Pause in <Say>
|
|
2047
|
+
*
|
|
2048
|
+
* @function break_
|
|
2049
|
+
* @memberof SsmlS#
|
|
2050
|
+
*
|
|
2051
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2052
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2053
|
+
* Set a pause based on strength
|
|
2054
|
+
* @param {string} [attributes.time] -
|
|
2055
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2056
|
+
*
|
|
2057
|
+
* @returns SsmlBreak
|
|
2058
|
+
*/
|
|
2059
|
+
/* jshint ignore:end */
|
|
2060
|
+
SsmlS.prototype.break_ = function break_(attributes) {
|
|
2061
|
+
return new SsmlBreak(this.s.ele('break', attributes));
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2064
|
+
/* jshint ignore:start */
|
|
2065
|
+
/**
|
|
2066
|
+
* Adding a Pause in <Say>
|
|
2067
|
+
*
|
|
2068
|
+
* @function ssmlBreak
|
|
2069
|
+
* @memberof SsmlS#
|
|
2070
|
+
* @deprecated - Use break_() instead.
|
|
2071
|
+
*
|
|
2072
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2073
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2074
|
+
* Set a pause based on strength
|
|
2075
|
+
* @param {string} [attributes.time] -
|
|
2076
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2077
|
+
*
|
|
2078
|
+
* @returns SsmlBreak
|
|
2079
|
+
*/
|
|
2080
|
+
/* jshint ignore:end */
|
|
2081
|
+
SsmlS.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes) {
|
|
2082
|
+
return this.break_(attributes);
|
|
2083
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
2084
|
+
|
|
2085
|
+
/* jshint ignore:start */
|
|
2086
|
+
/**
|
|
2087
|
+
* Emphasizing Words in <Say>
|
|
2088
|
+
*
|
|
2089
|
+
* @function emphasis
|
|
2090
|
+
* @memberof SsmlS#
|
|
2091
|
+
*
|
|
2092
|
+
* @param {object} attributes - TwiML attributes
|
|
2093
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2094
|
+
* @param {string} words - Words to emphasize
|
|
2095
|
+
*
|
|
2096
|
+
* @returns SsmlEmphasis
|
|
2097
|
+
*/
|
|
2098
|
+
/* jshint ignore:end */
|
|
2099
|
+
SsmlS.prototype.emphasis = function emphasis(attributes, words) {
|
|
2100
|
+
return new SsmlEmphasis(this.s.ele('emphasis', attributes, words));
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
/* jshint ignore:start */
|
|
2104
|
+
/**
|
|
2105
|
+
* Emphasizing Words in <Say>
|
|
2106
|
+
*
|
|
2107
|
+
* @function ssmlEmphasis
|
|
2108
|
+
* @memberof SsmlS#
|
|
2109
|
+
* @deprecated - Use emphasis() instead.
|
|
2110
|
+
*
|
|
2111
|
+
* @param {object} attributes - TwiML attributes
|
|
2112
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2113
|
+
* @param {string} words - Words to emphasize
|
|
2114
|
+
*
|
|
2115
|
+
* @returns SsmlEmphasis
|
|
2116
|
+
*/
|
|
2117
|
+
/* jshint ignore:end */
|
|
2118
|
+
SsmlS.prototype.ssmlEmphasis = util.deprecate(function ssmlEmphasis(attributes,
|
|
2119
|
+
words) {
|
|
2120
|
+
return this.emphasis(attributes, words);
|
|
2121
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
2122
|
+
|
|
2123
|
+
/* jshint ignore:start */
|
|
2124
|
+
/**
|
|
2125
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2126
|
+
*
|
|
2127
|
+
* @function lang
|
|
2128
|
+
* @memberof SsmlS#
|
|
2129
|
+
*
|
|
2130
|
+
* @param {object} attributes - TwiML attributes
|
|
2131
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2132
|
+
* @param {string} words - Words to speak
|
|
2133
|
+
*
|
|
2134
|
+
* @returns SsmlLang
|
|
2135
|
+
*/
|
|
2136
|
+
/* jshint ignore:end */
|
|
2137
|
+
SsmlS.prototype.lang = function lang(attributes, words) {
|
|
2138
|
+
return new SsmlLang(this.s.ele('lang', attributes, words));
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
/* jshint ignore:start */
|
|
2142
|
+
/**
|
|
2143
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2144
|
+
*
|
|
2145
|
+
* @function ssmlLang
|
|
2146
|
+
* @memberof SsmlS#
|
|
2147
|
+
* @deprecated - Use lang() instead.
|
|
2148
|
+
*
|
|
2149
|
+
* @param {object} attributes - TwiML attributes
|
|
2150
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2151
|
+
* @param {string} words - Words to speak
|
|
2152
|
+
*
|
|
2153
|
+
* @returns SsmlLang
|
|
2154
|
+
*/
|
|
2155
|
+
/* jshint ignore:end */
|
|
2156
|
+
SsmlS.prototype.ssmlLang = util.deprecate(function ssmlLang(attributes, words) {
|
|
2157
|
+
return this.lang(attributes, words);
|
|
2158
|
+
}, 'ssmlLang() is deprecated. Use lang() instead.');
|
|
2159
|
+
|
|
2160
|
+
/* jshint ignore:start */
|
|
2161
|
+
/**
|
|
2162
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2163
|
+
*
|
|
2164
|
+
* @function phoneme
|
|
2165
|
+
* @memberof SsmlS#
|
|
2166
|
+
*
|
|
2167
|
+
* @param {object} attributes - TwiML attributes
|
|
2168
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2169
|
+
* Specify the phonetic alphabet
|
|
2170
|
+
* @param {string} [attributes.ph] -
|
|
2171
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2172
|
+
* @param {string} words - Words to speak
|
|
2173
|
+
*
|
|
2174
|
+
* @returns SsmlPhoneme
|
|
2175
|
+
*/
|
|
2176
|
+
/* jshint ignore:end */
|
|
2177
|
+
SsmlS.prototype.phoneme = function phoneme(attributes, words) {
|
|
2178
|
+
return new SsmlPhoneme(this.s.ele('phoneme', attributes, words));
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
/* jshint ignore:start */
|
|
2182
|
+
/**
|
|
2183
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2184
|
+
*
|
|
2185
|
+
* @function ssmlPhoneme
|
|
2186
|
+
* @memberof SsmlS#
|
|
2187
|
+
* @deprecated - Use phoneme() instead.
|
|
2188
|
+
*
|
|
2189
|
+
* @param {object} attributes - TwiML attributes
|
|
2190
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2191
|
+
* Specify the phonetic alphabet
|
|
2192
|
+
* @param {string} [attributes.ph] -
|
|
2193
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2194
|
+
* @param {string} words - Words to speak
|
|
2195
|
+
*
|
|
2196
|
+
* @returns SsmlPhoneme
|
|
2197
|
+
*/
|
|
2198
|
+
/* jshint ignore:end */
|
|
2199
|
+
SsmlS.prototype.ssmlPhoneme = util.deprecate(function ssmlPhoneme(attributes,
|
|
2200
|
+
words) {
|
|
2201
|
+
return this.phoneme(attributes, words);
|
|
2202
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
2203
|
+
|
|
2204
|
+
/* jshint ignore:start */
|
|
2205
|
+
/**
|
|
2206
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
2207
|
+
*
|
|
2208
|
+
* @function prosody
|
|
2209
|
+
* @memberof SsmlS#
|
|
2210
|
+
*
|
|
2211
|
+
* @param {object} attributes - TwiML attributes
|
|
2212
|
+
* @param {string} [attributes.volume] -
|
|
2213
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
2214
|
+
* @param {string} [attributes.rate] -
|
|
2215
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
2216
|
+
* @param {string} [attributes.pitch] -
|
|
2217
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
2218
|
+
* @param {string} words - Words to speak
|
|
2219
|
+
*
|
|
2220
|
+
* @returns SsmlProsody
|
|
2221
|
+
*/
|
|
2222
|
+
/* jshint ignore:end */
|
|
2223
|
+
SsmlS.prototype.prosody = function prosody(attributes, words) {
|
|
2224
|
+
return new SsmlProsody(this.s.ele('prosody', attributes, words));
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
/* jshint ignore:start */
|
|
2228
|
+
/**
|
|
2229
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
2230
|
+
*
|
|
2231
|
+
* @function ssmlProsody
|
|
2232
|
+
* @memberof SsmlS#
|
|
2233
|
+
* @deprecated - Use prosody() instead.
|
|
2234
|
+
*
|
|
2235
|
+
* @param {object} attributes - TwiML attributes
|
|
2236
|
+
* @param {string} [attributes.volume] -
|
|
2237
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
2238
|
+
* @param {string} [attributes.rate] -
|
|
2239
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
2240
|
+
* @param {string} [attributes.pitch] -
|
|
2241
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
2242
|
+
* @param {string} words - Words to speak
|
|
2243
|
+
*
|
|
2244
|
+
* @returns SsmlProsody
|
|
2245
|
+
*/
|
|
2246
|
+
/* jshint ignore:end */
|
|
2247
|
+
SsmlS.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
|
|
2248
|
+
words) {
|
|
2249
|
+
return this.prosody(attributes, words);
|
|
2250
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
2251
|
+
|
|
2252
|
+
/* jshint ignore:start */
|
|
2253
|
+
/**
|
|
2254
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
2255
|
+
*
|
|
2256
|
+
* @function sayAs
|
|
2257
|
+
* @memberof SsmlS#
|
|
2258
|
+
*
|
|
2259
|
+
* @param {object} attributes - TwiML attributes
|
|
2260
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
2261
|
+
* as] - Specify the type of words are spoken
|
|
2262
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
2263
|
+
* Specify the format of the date when interpret-as is set to date
|
|
2264
|
+
* @param {string} words - Words to be interpreted
|
|
2265
|
+
*
|
|
2266
|
+
* @returns SsmlSayAs
|
|
2267
|
+
*/
|
|
2268
|
+
/* jshint ignore:end */
|
|
2269
|
+
SsmlS.prototype.sayAs = function sayAs(attributes, words) {
|
|
2270
|
+
return new SsmlSayAs(this.s.ele('say-as', attributes, words));
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
/* jshint ignore:start */
|
|
2274
|
+
/**
|
|
2275
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
2276
|
+
*
|
|
2277
|
+
* @function ssmlSayAs
|
|
2278
|
+
* @memberof SsmlS#
|
|
2279
|
+
* @deprecated - Use sayAs() instead.
|
|
2280
|
+
*
|
|
2281
|
+
* @param {object} attributes - TwiML attributes
|
|
2282
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
2283
|
+
* as] - Specify the type of words are spoken
|
|
2284
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
2285
|
+
* Specify the format of the date when interpret-as is set to date
|
|
2286
|
+
* @param {string} words - Words to be interpreted
|
|
2287
|
+
*
|
|
2288
|
+
* @returns SsmlSayAs
|
|
2289
|
+
*/
|
|
2290
|
+
/* jshint ignore:end */
|
|
2291
|
+
SsmlS.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes, words)
|
|
2292
|
+
{
|
|
2293
|
+
return this.sayAs(attributes, words);
|
|
2294
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
2295
|
+
|
|
2296
|
+
/* jshint ignore:start */
|
|
2297
|
+
/**
|
|
2298
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
2299
|
+
*
|
|
2300
|
+
* @function sub
|
|
2301
|
+
* @memberof SsmlS#
|
|
2302
|
+
*
|
|
2303
|
+
* @param {object} attributes - TwiML attributes
|
|
2304
|
+
* @param {string} [attributes.alias] -
|
|
2305
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
2306
|
+
* @param {string} words - Words to be substituted
|
|
2307
|
+
*
|
|
2308
|
+
* @returns SsmlSub
|
|
2309
|
+
*/
|
|
2310
|
+
/* jshint ignore:end */
|
|
2311
|
+
SsmlS.prototype.sub = function sub(attributes, words) {
|
|
2312
|
+
return new SsmlSub(this.s.ele('sub', attributes, words));
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
/* jshint ignore:start */
|
|
2316
|
+
/**
|
|
2317
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
2318
|
+
*
|
|
2319
|
+
* @function ssmlSub
|
|
2320
|
+
* @memberof SsmlS#
|
|
2321
|
+
* @deprecated - Use sub() instead.
|
|
2322
|
+
*
|
|
2323
|
+
* @param {object} attributes - TwiML attributes
|
|
2324
|
+
* @param {string} [attributes.alias] -
|
|
2325
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
2326
|
+
* @param {string} words - Words to be substituted
|
|
2327
|
+
*
|
|
2328
|
+
* @returns SsmlSub
|
|
2329
|
+
*/
|
|
2330
|
+
/* jshint ignore:end */
|
|
2331
|
+
SsmlS.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes, words) {
|
|
2332
|
+
return this.sub(attributes, words);
|
|
2333
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
2334
|
+
|
|
2335
|
+
/* jshint ignore:start */
|
|
2336
|
+
/**
|
|
2337
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
2338
|
+
*
|
|
2339
|
+
* @function w
|
|
2340
|
+
* @memberof SsmlS#
|
|
2341
|
+
*
|
|
2342
|
+
* @param {object} attributes - TwiML attributes
|
|
2343
|
+
* @param {string} [attributes.role] -
|
|
2344
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
2345
|
+
* @param {string} words - Words to speak
|
|
2346
|
+
*
|
|
2347
|
+
* @returns SsmlW
|
|
2348
|
+
*/
|
|
2349
|
+
/* jshint ignore:end */
|
|
2350
|
+
SsmlS.prototype.w = function w(attributes, words) {
|
|
2351
|
+
return new SsmlW(this.s.ele('w', attributes, words));
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
/* jshint ignore:start */
|
|
2355
|
+
/**
|
|
2356
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
2357
|
+
*
|
|
2358
|
+
* @function ssmlW
|
|
2359
|
+
* @memberof SsmlS#
|
|
2360
|
+
* @deprecated - Use w() instead.
|
|
2361
|
+
*
|
|
2362
|
+
* @param {object} attributes - TwiML attributes
|
|
2363
|
+
* @param {string} [attributes.role] -
|
|
2364
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
2365
|
+
* @param {string} words - Words to speak
|
|
2366
|
+
*
|
|
2367
|
+
* @returns SsmlW
|
|
2368
|
+
*/
|
|
2369
|
+
/* jshint ignore:end */
|
|
2370
|
+
SsmlS.prototype.ssmlW = util.deprecate(function ssmlW(attributes, words) {
|
|
2371
|
+
return this.w(attributes, words);
|
|
2372
|
+
}, 'ssmlW() is deprecated. Use w() instead.');
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
/* jshint ignore:start */
|
|
2376
|
+
/**
|
|
2377
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2378
|
+
*
|
|
2379
|
+
* @constructor SsmlPhoneme
|
|
2380
|
+
*
|
|
2381
|
+
* @param {object} ssmlPhoneme - Using Phonetic Pronunciation in <Say>
|
|
2382
|
+
*/
|
|
2383
|
+
/* jshint ignore:end */
|
|
2384
|
+
function SsmlPhoneme(ssmlPhoneme) {
|
|
2385
|
+
this.ssmlPhoneme = ssmlPhoneme;
|
|
2386
|
+
this._propertyName = 'ssmlPhoneme';
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
SsmlPhoneme.prototype = Object.create(TwiML.prototype);
|
|
2390
|
+
SsmlPhoneme.prototype.constructor = SsmlPhoneme;
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
/* jshint ignore:start */
|
|
2394
|
+
/**
|
|
2395
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2396
|
+
*
|
|
2397
|
+
* @constructor SsmlLang
|
|
2398
|
+
*
|
|
2399
|
+
* @param {object} ssmlLang -
|
|
2400
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2401
|
+
*/
|
|
2402
|
+
/* jshint ignore:end */
|
|
2403
|
+
function SsmlLang(ssmlLang) {
|
|
2404
|
+
this.ssmlLang = ssmlLang;
|
|
2405
|
+
this._propertyName = 'ssmlLang';
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
SsmlLang.prototype = Object.create(TwiML.prototype);
|
|
2409
|
+
SsmlLang.prototype.constructor = SsmlLang;
|
|
2410
|
+
|
|
2411
|
+
/* jshint ignore:start */
|
|
2412
|
+
/**
|
|
2413
|
+
* Adding a Pause in <Say>
|
|
2414
|
+
*
|
|
2415
|
+
* @function break_
|
|
2416
|
+
* @memberof SsmlLang#
|
|
2417
|
+
*
|
|
2418
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2419
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2420
|
+
* Set a pause based on strength
|
|
2421
|
+
* @param {string} [attributes.time] -
|
|
2422
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2423
|
+
*
|
|
2424
|
+
* @returns SsmlBreak
|
|
2425
|
+
*/
|
|
2426
|
+
/* jshint ignore:end */
|
|
2427
|
+
SsmlLang.prototype.break_ = function break_(attributes) {
|
|
2428
|
+
return new SsmlBreak(this.lang.ele('break', attributes));
|
|
2429
|
+
};
|
|
2430
|
+
|
|
2431
|
+
/* jshint ignore:start */
|
|
2432
|
+
/**
|
|
2433
|
+
* Adding a Pause in <Say>
|
|
2434
|
+
*
|
|
2435
|
+
* @function ssmlBreak
|
|
2436
|
+
* @memberof SsmlLang#
|
|
2437
|
+
* @deprecated - Use break_() instead.
|
|
2438
|
+
*
|
|
2439
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2440
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2441
|
+
* Set a pause based on strength
|
|
2442
|
+
* @param {string} [attributes.time] -
|
|
2443
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2444
|
+
*
|
|
2445
|
+
* @returns SsmlBreak
|
|
2446
|
+
*/
|
|
2447
|
+
/* jshint ignore:end */
|
|
2448
|
+
SsmlLang.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes) {
|
|
2449
|
+
return this.break_(attributes);
|
|
2450
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
2451
|
+
|
|
2452
|
+
/* jshint ignore:start */
|
|
2453
|
+
/**
|
|
2454
|
+
* Emphasizing Words in <Say>
|
|
2455
|
+
*
|
|
2456
|
+
* @function emphasis
|
|
2457
|
+
* @memberof SsmlLang#
|
|
2458
|
+
*
|
|
2459
|
+
* @param {object} attributes - TwiML attributes
|
|
2460
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2461
|
+
* @param {string} words - Words to emphasize
|
|
2462
|
+
*
|
|
2463
|
+
* @returns SsmlEmphasis
|
|
2464
|
+
*/
|
|
2465
|
+
/* jshint ignore:end */
|
|
2466
|
+
SsmlLang.prototype.emphasis = function emphasis(attributes, words) {
|
|
2467
|
+
return new SsmlEmphasis(this.lang.ele('emphasis', attributes, words));
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
/* jshint ignore:start */
|
|
2471
|
+
/**
|
|
2472
|
+
* Emphasizing Words in <Say>
|
|
2473
|
+
*
|
|
2474
|
+
* @function ssmlEmphasis
|
|
2475
|
+
* @memberof SsmlLang#
|
|
2476
|
+
* @deprecated - Use emphasis() instead.
|
|
2477
|
+
*
|
|
2478
|
+
* @param {object} attributes - TwiML attributes
|
|
2479
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2480
|
+
* @param {string} words - Words to emphasize
|
|
2481
|
+
*
|
|
2482
|
+
* @returns SsmlEmphasis
|
|
2483
|
+
*/
|
|
2484
|
+
/* jshint ignore:end */
|
|
2485
|
+
SsmlLang.prototype.ssmlEmphasis = util.deprecate(function
|
|
2486
|
+
ssmlEmphasis(attributes, words) {
|
|
2487
|
+
return this.emphasis(attributes, words);
|
|
2488
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
2489
|
+
|
|
2490
|
+
/* jshint ignore:start */
|
|
2491
|
+
/**
|
|
2492
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2493
|
+
*
|
|
2494
|
+
* @function lang
|
|
2495
|
+
* @memberof SsmlLang#
|
|
2496
|
+
*
|
|
2497
|
+
* @param {object} attributes - TwiML attributes
|
|
2498
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2499
|
+
* @param {string} words - Words to speak
|
|
2500
|
+
*
|
|
2501
|
+
* @returns SsmlLang
|
|
2502
|
+
*/
|
|
2503
|
+
/* jshint ignore:end */
|
|
2504
|
+
SsmlLang.prototype.lang = function lang(attributes, words) {
|
|
2505
|
+
return new SsmlLang(this.lang.ele('lang', attributes, words));
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2508
|
+
/* jshint ignore:start */
|
|
2509
|
+
/**
|
|
2510
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2511
|
+
*
|
|
2512
|
+
* @function ssmlLang
|
|
2513
|
+
* @memberof SsmlLang#
|
|
2514
|
+
* @deprecated - Use lang() instead.
|
|
2515
|
+
*
|
|
2516
|
+
* @param {object} attributes - TwiML attributes
|
|
2517
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2518
|
+
* @param {string} words - Words to speak
|
|
2519
|
+
*
|
|
2520
|
+
* @returns SsmlLang
|
|
2521
|
+
*/
|
|
2522
|
+
/* jshint ignore:end */
|
|
2523
|
+
SsmlLang.prototype.ssmlLang = util.deprecate(function ssmlLang(attributes,
|
|
2524
|
+
words) {
|
|
2525
|
+
return this.lang(attributes, words);
|
|
2526
|
+
}, 'ssmlLang() is deprecated. Use lang() instead.');
|
|
2527
|
+
|
|
2528
|
+
/* jshint ignore:start */
|
|
2529
|
+
/**
|
|
2530
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
2531
|
+
*
|
|
2532
|
+
* @function p
|
|
2533
|
+
* @memberof SsmlLang#
|
|
2534
|
+
*
|
|
2535
|
+
* @param {object} attributes - TwiML attributes
|
|
2536
|
+
* @param {string} words - Words to speak
|
|
2537
|
+
*
|
|
2538
|
+
* @returns SsmlP
|
|
2539
|
+
*/
|
|
2540
|
+
/* jshint ignore:end */
|
|
2541
|
+
SsmlLang.prototype.p = function p(attributes, words) {
|
|
2542
|
+
return new SsmlP(this.lang.ele('p', attributes, words));
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
/* jshint ignore:start */
|
|
2546
|
+
/**
|
|
2547
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
2548
|
+
*
|
|
2549
|
+
* @function ssmlP
|
|
2550
|
+
* @memberof SsmlLang#
|
|
2551
|
+
* @deprecated - Use p() instead.
|
|
2552
|
+
*
|
|
2553
|
+
* @param {object} attributes - TwiML attributes
|
|
2554
|
+
* @param {string} words - Words to speak
|
|
2555
|
+
*
|
|
2556
|
+
* @returns SsmlP
|
|
2557
|
+
*/
|
|
2558
|
+
/* jshint ignore:end */
|
|
2559
|
+
SsmlLang.prototype.ssmlP = util.deprecate(function ssmlP(attributes, words) {
|
|
2560
|
+
return this.p(attributes, words);
|
|
2561
|
+
}, 'ssmlP() is deprecated. Use p() instead.');
|
|
2562
|
+
|
|
2563
|
+
/* jshint ignore:start */
|
|
2564
|
+
/**
|
|
2565
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2566
|
+
*
|
|
2567
|
+
* @function phoneme
|
|
2568
|
+
* @memberof SsmlLang#
|
|
2569
|
+
*
|
|
2570
|
+
* @param {object} attributes - TwiML attributes
|
|
2571
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2572
|
+
* Specify the phonetic alphabet
|
|
2573
|
+
* @param {string} [attributes.ph] -
|
|
2574
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2575
|
+
* @param {string} words - Words to speak
|
|
2576
|
+
*
|
|
2577
|
+
* @returns SsmlPhoneme
|
|
2578
|
+
*/
|
|
2579
|
+
/* jshint ignore:end */
|
|
2580
|
+
SsmlLang.prototype.phoneme = function phoneme(attributes, words) {
|
|
2581
|
+
return new SsmlPhoneme(this.lang.ele('phoneme', attributes, words));
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
/* jshint ignore:start */
|
|
2585
|
+
/**
|
|
2586
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2587
|
+
*
|
|
2588
|
+
* @function ssmlPhoneme
|
|
2589
|
+
* @memberof SsmlLang#
|
|
2590
|
+
* @deprecated - Use phoneme() instead.
|
|
2591
|
+
*
|
|
2592
|
+
* @param {object} attributes - TwiML attributes
|
|
2593
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2594
|
+
* Specify the phonetic alphabet
|
|
2595
|
+
* @param {string} [attributes.ph] -
|
|
2596
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2597
|
+
* @param {string} words - Words to speak
|
|
2598
|
+
*
|
|
2599
|
+
* @returns SsmlPhoneme
|
|
2600
|
+
*/
|
|
2601
|
+
/* jshint ignore:end */
|
|
2602
|
+
SsmlLang.prototype.ssmlPhoneme = util.deprecate(function ssmlPhoneme(attributes,
|
|
2603
|
+
words) {
|
|
2604
|
+
return this.phoneme(attributes, words);
|
|
2605
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
2606
|
+
|
|
2607
|
+
/* jshint ignore:start */
|
|
2608
|
+
/**
|
|
2609
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
2610
|
+
*
|
|
2611
|
+
* @function prosody
|
|
2612
|
+
* @memberof SsmlLang#
|
|
2613
|
+
*
|
|
2614
|
+
* @param {object} attributes - TwiML attributes
|
|
2615
|
+
* @param {string} [attributes.volume] -
|
|
2616
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
2617
|
+
* @param {string} [attributes.rate] -
|
|
2618
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
2619
|
+
* @param {string} [attributes.pitch] -
|
|
2620
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
2621
|
+
* @param {string} words - Words to speak
|
|
2622
|
+
*
|
|
2623
|
+
* @returns SsmlProsody
|
|
2624
|
+
*/
|
|
2625
|
+
/* jshint ignore:end */
|
|
2626
|
+
SsmlLang.prototype.prosody = function prosody(attributes, words) {
|
|
2627
|
+
return new SsmlProsody(this.lang.ele('prosody', attributes, words));
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
/* jshint ignore:start */
|
|
2631
|
+
/**
|
|
2632
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
2633
|
+
*
|
|
2634
|
+
* @function ssmlProsody
|
|
2635
|
+
* @memberof SsmlLang#
|
|
2636
|
+
* @deprecated - Use prosody() instead.
|
|
2637
|
+
*
|
|
2638
|
+
* @param {object} attributes - TwiML attributes
|
|
2639
|
+
* @param {string} [attributes.volume] -
|
|
2640
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
2641
|
+
* @param {string} [attributes.rate] -
|
|
2642
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
2643
|
+
* @param {string} [attributes.pitch] -
|
|
2644
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
2645
|
+
* @param {string} words - Words to speak
|
|
2646
|
+
*
|
|
2647
|
+
* @returns SsmlProsody
|
|
2648
|
+
*/
|
|
2649
|
+
/* jshint ignore:end */
|
|
2650
|
+
SsmlLang.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
|
|
2651
|
+
words) {
|
|
2652
|
+
return this.prosody(attributes, words);
|
|
2653
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
2654
|
+
|
|
2655
|
+
/* jshint ignore:start */
|
|
2656
|
+
/**
|
|
2657
|
+
* Adding A Pause Between Sentences in <Say>
|
|
2658
|
+
*
|
|
2659
|
+
* @function s
|
|
2660
|
+
* @memberof SsmlLang#
|
|
2661
|
+
*
|
|
2662
|
+
* @param {object} attributes - TwiML attributes
|
|
2663
|
+
* @param {string} words - Words to speak
|
|
2664
|
+
*
|
|
2665
|
+
* @returns SsmlS
|
|
2666
|
+
*/
|
|
2667
|
+
/* jshint ignore:end */
|
|
2668
|
+
SsmlLang.prototype.s = function s(attributes, words) {
|
|
2669
|
+
return new SsmlS(this.lang.ele('s', attributes, words));
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
/* jshint ignore:start */
|
|
2673
|
+
/**
|
|
2674
|
+
* Adding A Pause Between Sentences in <Say>
|
|
2675
|
+
*
|
|
2676
|
+
* @function ssmlS
|
|
2677
|
+
* @memberof SsmlLang#
|
|
2678
|
+
* @deprecated - Use s() instead.
|
|
2679
|
+
*
|
|
2680
|
+
* @param {object} attributes - TwiML attributes
|
|
2681
|
+
* @param {string} words - Words to speak
|
|
2682
|
+
*
|
|
2683
|
+
* @returns SsmlS
|
|
2684
|
+
*/
|
|
2685
|
+
/* jshint ignore:end */
|
|
2686
|
+
SsmlLang.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
|
|
2687
|
+
return this.s(attributes, words);
|
|
2688
|
+
}, 'ssmlS() is deprecated. Use s() instead.');
|
|
2689
|
+
|
|
2690
|
+
/* jshint ignore:start */
|
|
2691
|
+
/**
|
|
2692
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
2693
|
+
*
|
|
2694
|
+
* @function sayAs
|
|
2695
|
+
* @memberof SsmlLang#
|
|
2696
|
+
*
|
|
2697
|
+
* @param {object} attributes - TwiML attributes
|
|
2698
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
2699
|
+
* as] - Specify the type of words are spoken
|
|
2700
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
2701
|
+
* Specify the format of the date when interpret-as is set to date
|
|
2702
|
+
* @param {string} words - Words to be interpreted
|
|
2703
|
+
*
|
|
2704
|
+
* @returns SsmlSayAs
|
|
2705
|
+
*/
|
|
2706
|
+
/* jshint ignore:end */
|
|
2707
|
+
SsmlLang.prototype.sayAs = function sayAs(attributes, words) {
|
|
2708
|
+
return new SsmlSayAs(this.lang.ele('say-as', attributes, words));
|
|
2709
|
+
};
|
|
2710
|
+
|
|
2711
|
+
/* jshint ignore:start */
|
|
2712
|
+
/**
|
|
2713
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
2714
|
+
*
|
|
2715
|
+
* @function ssmlSayAs
|
|
2716
|
+
* @memberof SsmlLang#
|
|
2717
|
+
* @deprecated - Use sayAs() instead.
|
|
2718
|
+
*
|
|
2719
|
+
* @param {object} attributes - TwiML attributes
|
|
2720
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
2721
|
+
* as] - Specify the type of words are spoken
|
|
2722
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
2723
|
+
* Specify the format of the date when interpret-as is set to date
|
|
2724
|
+
* @param {string} words - Words to be interpreted
|
|
2725
|
+
*
|
|
2726
|
+
* @returns SsmlSayAs
|
|
2727
|
+
*/
|
|
2728
|
+
/* jshint ignore:end */
|
|
2729
|
+
SsmlLang.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes,
|
|
2730
|
+
words) {
|
|
2731
|
+
return this.sayAs(attributes, words);
|
|
2732
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
2733
|
+
|
|
2734
|
+
/* jshint ignore:start */
|
|
2735
|
+
/**
|
|
2736
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
2737
|
+
*
|
|
2738
|
+
* @function sub
|
|
2739
|
+
* @memberof SsmlLang#
|
|
2740
|
+
*
|
|
2741
|
+
* @param {object} attributes - TwiML attributes
|
|
2742
|
+
* @param {string} [attributes.alias] -
|
|
2743
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
2744
|
+
* @param {string} words - Words to be substituted
|
|
2745
|
+
*
|
|
2746
|
+
* @returns SsmlSub
|
|
2747
|
+
*/
|
|
2748
|
+
/* jshint ignore:end */
|
|
2749
|
+
SsmlLang.prototype.sub = function sub(attributes, words) {
|
|
2750
|
+
return new SsmlSub(this.lang.ele('sub', attributes, words));
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
/* jshint ignore:start */
|
|
2754
|
+
/**
|
|
2755
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
2756
|
+
*
|
|
2757
|
+
* @function ssmlSub
|
|
2758
|
+
* @memberof SsmlLang#
|
|
2759
|
+
* @deprecated - Use sub() instead.
|
|
2760
|
+
*
|
|
2761
|
+
* @param {object} attributes - TwiML attributes
|
|
2762
|
+
* @param {string} [attributes.alias] -
|
|
2763
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
2764
|
+
* @param {string} words - Words to be substituted
|
|
2765
|
+
*
|
|
2766
|
+
* @returns SsmlSub
|
|
2767
|
+
*/
|
|
2768
|
+
/* jshint ignore:end */
|
|
2769
|
+
SsmlLang.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes, words)
|
|
2770
|
+
{
|
|
2771
|
+
return this.sub(attributes, words);
|
|
2772
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
2773
|
+
|
|
2774
|
+
/* jshint ignore:start */
|
|
2775
|
+
/**
|
|
2776
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
2777
|
+
*
|
|
2778
|
+
* @function w
|
|
2779
|
+
* @memberof SsmlLang#
|
|
2780
|
+
*
|
|
2781
|
+
* @param {object} attributes - TwiML attributes
|
|
2782
|
+
* @param {string} [attributes.role] -
|
|
2783
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
2784
|
+
* @param {string} words - Words to speak
|
|
2785
|
+
*
|
|
2786
|
+
* @returns SsmlW
|
|
2787
|
+
*/
|
|
2788
|
+
/* jshint ignore:end */
|
|
2789
|
+
SsmlLang.prototype.w = function w(attributes, words) {
|
|
2790
|
+
return new SsmlW(this.lang.ele('w', attributes, words));
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
/* jshint ignore:start */
|
|
2794
|
+
/**
|
|
2795
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
2796
|
+
*
|
|
2797
|
+
* @function ssmlW
|
|
2798
|
+
* @memberof SsmlLang#
|
|
2799
|
+
* @deprecated - Use w() instead.
|
|
2800
|
+
*
|
|
2801
|
+
* @param {object} attributes - TwiML attributes
|
|
2802
|
+
* @param {string} [attributes.role] -
|
|
2803
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
2804
|
+
* @param {string} words - Words to speak
|
|
2805
|
+
*
|
|
2806
|
+
* @returns SsmlW
|
|
2807
|
+
*/
|
|
2808
|
+
/* jshint ignore:end */
|
|
2809
|
+
SsmlLang.prototype.ssmlW = util.deprecate(function ssmlW(attributes, words) {
|
|
2810
|
+
return this.w(attributes, words);
|
|
2811
|
+
}, 'ssmlW() is deprecated. Use w() instead.');
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
/* jshint ignore:start */
|
|
2815
|
+
/**
|
|
2816
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
2817
|
+
*
|
|
2818
|
+
* @constructor SsmlP
|
|
2819
|
+
*
|
|
2820
|
+
* @param {object} ssmlP - Adding a Pause Between Paragraphs in <Say>
|
|
2821
|
+
*/
|
|
2822
|
+
/* jshint ignore:end */
|
|
2823
|
+
function SsmlP(ssmlP) {
|
|
2824
|
+
this.ssmlP = ssmlP;
|
|
2825
|
+
this._propertyName = 'ssmlP';
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
SsmlP.prototype = Object.create(TwiML.prototype);
|
|
2829
|
+
SsmlP.prototype.constructor = SsmlP;
|
|
2830
|
+
|
|
2831
|
+
/* jshint ignore:start */
|
|
2832
|
+
/**
|
|
2833
|
+
* Adding a Pause in <Say>
|
|
2834
|
+
*
|
|
2835
|
+
* @function break_
|
|
2836
|
+
* @memberof SsmlP#
|
|
2837
|
+
*
|
|
2838
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2839
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2840
|
+
* Set a pause based on strength
|
|
2841
|
+
* @param {string} [attributes.time] -
|
|
2842
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2843
|
+
*
|
|
2844
|
+
* @returns SsmlBreak
|
|
2845
|
+
*/
|
|
2846
|
+
/* jshint ignore:end */
|
|
2847
|
+
SsmlP.prototype.break_ = function break_(attributes) {
|
|
2848
|
+
return new SsmlBreak(this.p.ele('break', attributes));
|
|
2849
|
+
};
|
|
2850
|
+
|
|
2851
|
+
/* jshint ignore:start */
|
|
2852
|
+
/**
|
|
2853
|
+
* Adding a Pause in <Say>
|
|
2854
|
+
*
|
|
2855
|
+
* @function ssmlBreak
|
|
2856
|
+
* @memberof SsmlP#
|
|
2857
|
+
* @deprecated - Use break_() instead.
|
|
2858
|
+
*
|
|
2859
|
+
* @param {object} [attributes] - TwiML attributes
|
|
2860
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
2861
|
+
* Set a pause based on strength
|
|
2862
|
+
* @param {string} [attributes.time] -
|
|
2863
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
2864
|
+
*
|
|
2865
|
+
* @returns SsmlBreak
|
|
2866
|
+
*/
|
|
2867
|
+
/* jshint ignore:end */
|
|
2868
|
+
SsmlP.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes) {
|
|
2869
|
+
return this.break_(attributes);
|
|
2870
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
2871
|
+
|
|
2872
|
+
/* jshint ignore:start */
|
|
2873
|
+
/**
|
|
2874
|
+
* Emphasizing Words in <Say>
|
|
2875
|
+
*
|
|
2876
|
+
* @function emphasis
|
|
2877
|
+
* @memberof SsmlP#
|
|
2878
|
+
*
|
|
2879
|
+
* @param {object} attributes - TwiML attributes
|
|
2880
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2881
|
+
* @param {string} words - Words to emphasize
|
|
2882
|
+
*
|
|
2883
|
+
* @returns SsmlEmphasis
|
|
2884
|
+
*/
|
|
2885
|
+
/* jshint ignore:end */
|
|
2886
|
+
SsmlP.prototype.emphasis = function emphasis(attributes, words) {
|
|
2887
|
+
return new SsmlEmphasis(this.p.ele('emphasis', attributes, words));
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
/* jshint ignore:start */
|
|
2891
|
+
/**
|
|
2892
|
+
* Emphasizing Words in <Say>
|
|
2893
|
+
*
|
|
2894
|
+
* @function ssmlEmphasis
|
|
2895
|
+
* @memberof SsmlP#
|
|
2896
|
+
* @deprecated - Use emphasis() instead.
|
|
2897
|
+
*
|
|
2898
|
+
* @param {object} attributes - TwiML attributes
|
|
2899
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
2900
|
+
* @param {string} words - Words to emphasize
|
|
2901
|
+
*
|
|
2902
|
+
* @returns SsmlEmphasis
|
|
2903
|
+
*/
|
|
2904
|
+
/* jshint ignore:end */
|
|
2905
|
+
SsmlP.prototype.ssmlEmphasis = util.deprecate(function ssmlEmphasis(attributes,
|
|
2906
|
+
words) {
|
|
2907
|
+
return this.emphasis(attributes, words);
|
|
2908
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
2909
|
+
|
|
2910
|
+
/* jshint ignore:start */
|
|
2911
|
+
/**
|
|
2912
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2913
|
+
*
|
|
2914
|
+
* @function lang
|
|
2915
|
+
* @memberof SsmlP#
|
|
2916
|
+
*
|
|
2917
|
+
* @param {object} attributes - TwiML attributes
|
|
2918
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2919
|
+
* @param {string} words - Words to speak
|
|
2920
|
+
*
|
|
2921
|
+
* @returns SsmlLang
|
|
2922
|
+
*/
|
|
2923
|
+
/* jshint ignore:end */
|
|
2924
|
+
SsmlP.prototype.lang = function lang(attributes, words) {
|
|
2925
|
+
return new SsmlLang(this.p.ele('lang', attributes, words));
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
/* jshint ignore:start */
|
|
2929
|
+
/**
|
|
2930
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
2931
|
+
*
|
|
2932
|
+
* @function ssmlLang
|
|
2933
|
+
* @memberof SsmlP#
|
|
2934
|
+
* @deprecated - Use lang() instead.
|
|
2935
|
+
*
|
|
2936
|
+
* @param {object} attributes - TwiML attributes
|
|
2937
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
2938
|
+
* @param {string} words - Words to speak
|
|
2939
|
+
*
|
|
2940
|
+
* @returns SsmlLang
|
|
2941
|
+
*/
|
|
2942
|
+
/* jshint ignore:end */
|
|
2943
|
+
SsmlP.prototype.ssmlLang = util.deprecate(function ssmlLang(attributes, words) {
|
|
2944
|
+
return this.lang(attributes, words);
|
|
2945
|
+
}, 'ssmlLang() is deprecated. Use lang() instead.');
|
|
2946
|
+
|
|
2947
|
+
/* jshint ignore:start */
|
|
2948
|
+
/**
|
|
2949
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2950
|
+
*
|
|
2951
|
+
* @function phoneme
|
|
2952
|
+
* @memberof SsmlP#
|
|
2953
|
+
*
|
|
2954
|
+
* @param {object} attributes - TwiML attributes
|
|
2955
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2956
|
+
* Specify the phonetic alphabet
|
|
2957
|
+
* @param {string} [attributes.ph] -
|
|
2958
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2959
|
+
* @param {string} words - Words to speak
|
|
2960
|
+
*
|
|
2961
|
+
* @returns SsmlPhoneme
|
|
2962
|
+
*/
|
|
2963
|
+
/* jshint ignore:end */
|
|
2964
|
+
SsmlP.prototype.phoneme = function phoneme(attributes, words) {
|
|
2965
|
+
return new SsmlPhoneme(this.p.ele('phoneme', attributes, words));
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
/* jshint ignore:start */
|
|
2969
|
+
/**
|
|
2970
|
+
* Using Phonetic Pronunciation in <Say>
|
|
2971
|
+
*
|
|
2972
|
+
* @function ssmlPhoneme
|
|
2973
|
+
* @memberof SsmlP#
|
|
2974
|
+
* @deprecated - Use phoneme() instead.
|
|
2975
|
+
*
|
|
2976
|
+
* @param {object} attributes - TwiML attributes
|
|
2977
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
2978
|
+
* Specify the phonetic alphabet
|
|
2979
|
+
* @param {string} [attributes.ph] -
|
|
2980
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
2981
|
+
* @param {string} words - Words to speak
|
|
2982
|
+
*
|
|
2983
|
+
* @returns SsmlPhoneme
|
|
2984
|
+
*/
|
|
2985
|
+
/* jshint ignore:end */
|
|
2986
|
+
SsmlP.prototype.ssmlPhoneme = util.deprecate(function ssmlPhoneme(attributes,
|
|
2987
|
+
words) {
|
|
2988
|
+
return this.phoneme(attributes, words);
|
|
2989
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
2990
|
+
|
|
2991
|
+
/* jshint ignore:start */
|
|
2992
|
+
/**
|
|
2993
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
2994
|
+
*
|
|
2995
|
+
* @function prosody
|
|
2996
|
+
* @memberof SsmlP#
|
|
2997
|
+
*
|
|
2998
|
+
* @param {object} attributes - TwiML attributes
|
|
2999
|
+
* @param {string} [attributes.volume] -
|
|
3000
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
3001
|
+
* @param {string} [attributes.rate] -
|
|
3002
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
3003
|
+
* @param {string} [attributes.pitch] -
|
|
3004
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
3005
|
+
* @param {string} words - Words to speak
|
|
3006
|
+
*
|
|
3007
|
+
* @returns SsmlProsody
|
|
3008
|
+
*/
|
|
3009
|
+
/* jshint ignore:end */
|
|
3010
|
+
SsmlP.prototype.prosody = function prosody(attributes, words) {
|
|
3011
|
+
return new SsmlProsody(this.p.ele('prosody', attributes, words));
|
|
3012
|
+
};
|
|
3013
|
+
|
|
3014
|
+
/* jshint ignore:start */
|
|
3015
|
+
/**
|
|
3016
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
3017
|
+
*
|
|
3018
|
+
* @function ssmlProsody
|
|
3019
|
+
* @memberof SsmlP#
|
|
3020
|
+
* @deprecated - Use prosody() instead.
|
|
3021
|
+
*
|
|
3022
|
+
* @param {object} attributes - TwiML attributes
|
|
3023
|
+
* @param {string} [attributes.volume] -
|
|
3024
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
3025
|
+
* @param {string} [attributes.rate] -
|
|
3026
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
3027
|
+
* @param {string} [attributes.pitch] -
|
|
3028
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
3029
|
+
* @param {string} words - Words to speak
|
|
3030
|
+
*
|
|
3031
|
+
* @returns SsmlProsody
|
|
3032
|
+
*/
|
|
3033
|
+
/* jshint ignore:end */
|
|
3034
|
+
SsmlP.prototype.ssmlProsody = util.deprecate(function ssmlProsody(attributes,
|
|
3035
|
+
words) {
|
|
3036
|
+
return this.prosody(attributes, words);
|
|
3037
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
3038
|
+
|
|
3039
|
+
/* jshint ignore:start */
|
|
3040
|
+
/**
|
|
3041
|
+
* Adding A Pause Between Sentences in <Say>
|
|
3042
|
+
*
|
|
3043
|
+
* @function s
|
|
3044
|
+
* @memberof SsmlP#
|
|
3045
|
+
*
|
|
3046
|
+
* @param {object} attributes - TwiML attributes
|
|
3047
|
+
* @param {string} words - Words to speak
|
|
3048
|
+
*
|
|
3049
|
+
* @returns SsmlS
|
|
3050
|
+
*/
|
|
3051
|
+
/* jshint ignore:end */
|
|
3052
|
+
SsmlP.prototype.s = function s(attributes, words) {
|
|
3053
|
+
return new SsmlS(this.p.ele('s', attributes, words));
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
/* jshint ignore:start */
|
|
3057
|
+
/**
|
|
3058
|
+
* Adding A Pause Between Sentences in <Say>
|
|
3059
|
+
*
|
|
3060
|
+
* @function ssmlS
|
|
3061
|
+
* @memberof SsmlP#
|
|
3062
|
+
* @deprecated - Use s() instead.
|
|
3063
|
+
*
|
|
3064
|
+
* @param {object} attributes - TwiML attributes
|
|
3065
|
+
* @param {string} words - Words to speak
|
|
3066
|
+
*
|
|
3067
|
+
* @returns SsmlS
|
|
3068
|
+
*/
|
|
3069
|
+
/* jshint ignore:end */
|
|
3070
|
+
SsmlP.prototype.ssmlS = util.deprecate(function ssmlS(attributes, words) {
|
|
3071
|
+
return this.s(attributes, words);
|
|
3072
|
+
}, 'ssmlS() is deprecated. Use s() instead.');
|
|
3073
|
+
|
|
3074
|
+
/* jshint ignore:start */
|
|
3075
|
+
/**
|
|
3076
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
3077
|
+
*
|
|
3078
|
+
* @function sayAs
|
|
3079
|
+
* @memberof SsmlP#
|
|
3080
|
+
*
|
|
3081
|
+
* @param {object} attributes - TwiML attributes
|
|
3082
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
3083
|
+
* as] - Specify the type of words are spoken
|
|
3084
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
3085
|
+
* Specify the format of the date when interpret-as is set to date
|
|
3086
|
+
* @param {string} words - Words to be interpreted
|
|
3087
|
+
*
|
|
3088
|
+
* @returns SsmlSayAs
|
|
3089
|
+
*/
|
|
3090
|
+
/* jshint ignore:end */
|
|
3091
|
+
SsmlP.prototype.sayAs = function sayAs(attributes, words) {
|
|
3092
|
+
return new SsmlSayAs(this.p.ele('say-as', attributes, words));
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3095
|
+
/* jshint ignore:start */
|
|
3096
|
+
/**
|
|
3097
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
3098
|
+
*
|
|
3099
|
+
* @function ssmlSayAs
|
|
3100
|
+
* @memberof SsmlP#
|
|
3101
|
+
* @deprecated - Use sayAs() instead.
|
|
3102
|
+
*
|
|
3103
|
+
* @param {object} attributes - TwiML attributes
|
|
3104
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
3105
|
+
* as] - Specify the type of words are spoken
|
|
3106
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
3107
|
+
* Specify the format of the date when interpret-as is set to date
|
|
3108
|
+
* @param {string} words - Words to be interpreted
|
|
3109
|
+
*
|
|
3110
|
+
* @returns SsmlSayAs
|
|
3111
|
+
*/
|
|
3112
|
+
/* jshint ignore:end */
|
|
3113
|
+
SsmlP.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes, words)
|
|
3114
|
+
{
|
|
3115
|
+
return this.sayAs(attributes, words);
|
|
3116
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
3117
|
+
|
|
3118
|
+
/* jshint ignore:start */
|
|
3119
|
+
/**
|
|
3120
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
3121
|
+
*
|
|
3122
|
+
* @function sub
|
|
3123
|
+
* @memberof SsmlP#
|
|
3124
|
+
*
|
|
3125
|
+
* @param {object} attributes - TwiML attributes
|
|
3126
|
+
* @param {string} [attributes.alias] -
|
|
3127
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
3128
|
+
* @param {string} words - Words to be substituted
|
|
3129
|
+
*
|
|
3130
|
+
* @returns SsmlSub
|
|
3131
|
+
*/
|
|
3132
|
+
/* jshint ignore:end */
|
|
3133
|
+
SsmlP.prototype.sub = function sub(attributes, words) {
|
|
3134
|
+
return new SsmlSub(this.p.ele('sub', attributes, words));
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3137
|
+
/* jshint ignore:start */
|
|
3138
|
+
/**
|
|
3139
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
3140
|
+
*
|
|
3141
|
+
* @function ssmlSub
|
|
3142
|
+
* @memberof SsmlP#
|
|
3143
|
+
* @deprecated - Use sub() instead.
|
|
3144
|
+
*
|
|
3145
|
+
* @param {object} attributes - TwiML attributes
|
|
3146
|
+
* @param {string} [attributes.alias] -
|
|
3147
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
3148
|
+
* @param {string} words - Words to be substituted
|
|
3149
|
+
*
|
|
3150
|
+
* @returns SsmlSub
|
|
3151
|
+
*/
|
|
3152
|
+
/* jshint ignore:end */
|
|
3153
|
+
SsmlP.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes, words) {
|
|
3154
|
+
return this.sub(attributes, words);
|
|
3155
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
3156
|
+
|
|
3157
|
+
/* jshint ignore:start */
|
|
3158
|
+
/**
|
|
3159
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
3160
|
+
*
|
|
3161
|
+
* @function w
|
|
3162
|
+
* @memberof SsmlP#
|
|
3163
|
+
*
|
|
3164
|
+
* @param {object} attributes - TwiML attributes
|
|
3165
|
+
* @param {string} [attributes.role] -
|
|
3166
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
3167
|
+
* @param {string} words - Words to speak
|
|
3168
|
+
*
|
|
3169
|
+
* @returns SsmlW
|
|
3170
|
+
*/
|
|
3171
|
+
/* jshint ignore:end */
|
|
3172
|
+
SsmlP.prototype.w = function w(attributes, words) {
|
|
3173
|
+
return new SsmlW(this.p.ele('w', attributes, words));
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
/* jshint ignore:start */
|
|
3177
|
+
/**
|
|
3178
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
3179
|
+
*
|
|
3180
|
+
* @function ssmlW
|
|
3181
|
+
* @memberof SsmlP#
|
|
3182
|
+
* @deprecated - Use w() instead.
|
|
3183
|
+
*
|
|
3184
|
+
* @param {object} attributes - TwiML attributes
|
|
3185
|
+
* @param {string} [attributes.role] -
|
|
3186
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
3187
|
+
* @param {string} words - Words to speak
|
|
3188
|
+
*
|
|
3189
|
+
* @returns SsmlW
|
|
3190
|
+
*/
|
|
3191
|
+
/* jshint ignore:end */
|
|
3192
|
+
SsmlP.prototype.ssmlW = util.deprecate(function ssmlW(attributes, words) {
|
|
3193
|
+
return this.w(attributes, words);
|
|
3194
|
+
}, 'ssmlW() is deprecated. Use w() instead.');
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
/* jshint ignore:start */
|
|
3198
|
+
/**
|
|
3199
|
+
* Emphasizing Words in <Say>
|
|
3200
|
+
*
|
|
3201
|
+
* @constructor SsmlEmphasis
|
|
3202
|
+
*
|
|
3203
|
+
* @param {object} ssmlEmphasis - Emphasizing Words in <Say>
|
|
3204
|
+
*/
|
|
3205
|
+
/* jshint ignore:end */
|
|
3206
|
+
function SsmlEmphasis(ssmlEmphasis) {
|
|
3207
|
+
this.ssmlEmphasis = ssmlEmphasis;
|
|
3208
|
+
this._propertyName = 'ssmlEmphasis';
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
SsmlEmphasis.prototype = Object.create(TwiML.prototype);
|
|
3212
|
+
SsmlEmphasis.prototype.constructor = SsmlEmphasis;
|
|
3213
|
+
|
|
3214
|
+
/* jshint ignore:start */
|
|
3215
|
+
/**
|
|
3216
|
+
* Adding a Pause in <Say>
|
|
3217
|
+
*
|
|
3218
|
+
* @function break_
|
|
3219
|
+
* @memberof SsmlEmphasis#
|
|
3220
|
+
*
|
|
3221
|
+
* @param {object} [attributes] - TwiML attributes
|
|
3222
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
3223
|
+
* Set a pause based on strength
|
|
3224
|
+
* @param {string} [attributes.time] -
|
|
3225
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
3226
|
+
*
|
|
3227
|
+
* @returns SsmlBreak
|
|
3228
|
+
*/
|
|
3229
|
+
/* jshint ignore:end */
|
|
3230
|
+
SsmlEmphasis.prototype.break_ = function break_(attributes) {
|
|
3231
|
+
return new SsmlBreak(this.emphasis.ele('break', attributes));
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
/* jshint ignore:start */
|
|
3235
|
+
/**
|
|
3236
|
+
* Adding a Pause in <Say>
|
|
3237
|
+
*
|
|
3238
|
+
* @function ssmlBreak
|
|
3239
|
+
* @memberof SsmlEmphasis#
|
|
3240
|
+
* @deprecated - Use break_() instead.
|
|
3241
|
+
*
|
|
3242
|
+
* @param {object} [attributes] - TwiML attributes
|
|
3243
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
3244
|
+
* Set a pause based on strength
|
|
3245
|
+
* @param {string} [attributes.time] -
|
|
3246
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
3247
|
+
*
|
|
3248
|
+
* @returns SsmlBreak
|
|
3249
|
+
*/
|
|
3250
|
+
/* jshint ignore:end */
|
|
3251
|
+
SsmlEmphasis.prototype.ssmlBreak = util.deprecate(function ssmlBreak(attributes)
|
|
3252
|
+
{
|
|
3253
|
+
return this.break_(attributes);
|
|
3254
|
+
}, 'ssmlBreak() is deprecated. Use break_() instead.');
|
|
3255
|
+
|
|
3256
|
+
/* jshint ignore:start */
|
|
3257
|
+
/**
|
|
3258
|
+
* Emphasizing Words in <Say>
|
|
3259
|
+
*
|
|
3260
|
+
* @function emphasis
|
|
3261
|
+
* @memberof SsmlEmphasis#
|
|
3262
|
+
*
|
|
3263
|
+
* @param {object} attributes - TwiML attributes
|
|
3264
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
3265
|
+
* @param {string} words - Words to emphasize
|
|
3266
|
+
*
|
|
3267
|
+
* @returns SsmlEmphasis
|
|
3268
|
+
*/
|
|
3269
|
+
/* jshint ignore:end */
|
|
3270
|
+
SsmlEmphasis.prototype.emphasis = function emphasis(attributes, words) {
|
|
3271
|
+
return new SsmlEmphasis(this.emphasis.ele('emphasis', attributes, words));
|
|
3272
|
+
};
|
|
3273
|
+
|
|
3274
|
+
/* jshint ignore:start */
|
|
3275
|
+
/**
|
|
3276
|
+
* Emphasizing Words in <Say>
|
|
3277
|
+
*
|
|
3278
|
+
* @function ssmlEmphasis
|
|
3279
|
+
* @memberof SsmlEmphasis#
|
|
3280
|
+
* @deprecated - Use emphasis() instead.
|
|
3281
|
+
*
|
|
3282
|
+
* @param {object} attributes - TwiML attributes
|
|
3283
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
3284
|
+
* @param {string} words - Words to emphasize
|
|
3285
|
+
*
|
|
3286
|
+
* @returns SsmlEmphasis
|
|
3287
|
+
*/
|
|
3288
|
+
/* jshint ignore:end */
|
|
3289
|
+
SsmlEmphasis.prototype.ssmlEmphasis = util.deprecate(function
|
|
3290
|
+
ssmlEmphasis(attributes, words) {
|
|
3291
|
+
return this.emphasis(attributes, words);
|
|
3292
|
+
}, 'ssmlEmphasis() is deprecated. Use emphasis() instead.');
|
|
3293
|
+
|
|
3294
|
+
/* jshint ignore:start */
|
|
3295
|
+
/**
|
|
3296
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
3297
|
+
*
|
|
3298
|
+
* @function lang
|
|
3299
|
+
* @memberof SsmlEmphasis#
|
|
3300
|
+
*
|
|
3301
|
+
* @param {object} attributes - TwiML attributes
|
|
3302
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
3303
|
+
* @param {string} words - Words to speak
|
|
3304
|
+
*
|
|
3305
|
+
* @returns SsmlLang
|
|
3306
|
+
*/
|
|
3307
|
+
/* jshint ignore:end */
|
|
3308
|
+
SsmlEmphasis.prototype.lang = function lang(attributes, words) {
|
|
3309
|
+
return new SsmlLang(this.emphasis.ele('lang', attributes, words));
|
|
3310
|
+
};
|
|
3311
|
+
|
|
3312
|
+
/* jshint ignore:start */
|
|
3313
|
+
/**
|
|
3314
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
3315
|
+
*
|
|
3316
|
+
* @function ssmlLang
|
|
3317
|
+
* @memberof SsmlEmphasis#
|
|
3318
|
+
* @deprecated - Use lang() instead.
|
|
3319
|
+
*
|
|
3320
|
+
* @param {object} attributes - TwiML attributes
|
|
3321
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
3322
|
+
* @param {string} words - Words to speak
|
|
3323
|
+
*
|
|
3324
|
+
* @returns SsmlLang
|
|
3325
|
+
*/
|
|
3326
|
+
/* jshint ignore:end */
|
|
3327
|
+
SsmlEmphasis.prototype.ssmlLang = util.deprecate(function ssmlLang(attributes,
|
|
3328
|
+
words) {
|
|
3329
|
+
return this.lang(attributes, words);
|
|
3330
|
+
}, 'ssmlLang() is deprecated. Use lang() instead.');
|
|
3331
|
+
|
|
3332
|
+
/* jshint ignore:start */
|
|
3333
|
+
/**
|
|
3334
|
+
* Using Phonetic Pronunciation in <Say>
|
|
3335
|
+
*
|
|
3336
|
+
* @function phoneme
|
|
3337
|
+
* @memberof SsmlEmphasis#
|
|
3338
|
+
*
|
|
3339
|
+
* @param {object} attributes - TwiML attributes
|
|
3340
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
3341
|
+
* Specify the phonetic alphabet
|
|
3342
|
+
* @param {string} [attributes.ph] -
|
|
3343
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
3344
|
+
* @param {string} words - Words to speak
|
|
3345
|
+
*
|
|
3346
|
+
* @returns SsmlPhoneme
|
|
3347
|
+
*/
|
|
3348
|
+
/* jshint ignore:end */
|
|
3349
|
+
SsmlEmphasis.prototype.phoneme = function phoneme(attributes, words) {
|
|
3350
|
+
return new SsmlPhoneme(this.emphasis.ele('phoneme', attributes, words));
|
|
3351
|
+
};
|
|
3352
|
+
|
|
3353
|
+
/* jshint ignore:start */
|
|
3354
|
+
/**
|
|
3355
|
+
* Using Phonetic Pronunciation in <Say>
|
|
3356
|
+
*
|
|
3357
|
+
* @function ssmlPhoneme
|
|
3358
|
+
* @memberof SsmlEmphasis#
|
|
3359
|
+
* @deprecated - Use phoneme() instead.
|
|
3360
|
+
*
|
|
3361
|
+
* @param {object} attributes - TwiML attributes
|
|
3362
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
3363
|
+
* Specify the phonetic alphabet
|
|
3364
|
+
* @param {string} [attributes.ph] -
|
|
3365
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
3366
|
+
* @param {string} words - Words to speak
|
|
3367
|
+
*
|
|
3368
|
+
* @returns SsmlPhoneme
|
|
3369
|
+
*/
|
|
3370
|
+
/* jshint ignore:end */
|
|
3371
|
+
SsmlEmphasis.prototype.ssmlPhoneme = util.deprecate(function
|
|
3372
|
+
ssmlPhoneme(attributes, words) {
|
|
3373
|
+
return this.phoneme(attributes, words);
|
|
3374
|
+
}, 'ssmlPhoneme() is deprecated. Use phoneme() instead.');
|
|
3375
|
+
|
|
3376
|
+
/* jshint ignore:start */
|
|
3377
|
+
/**
|
|
3378
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
3379
|
+
*
|
|
3380
|
+
* @function prosody
|
|
3381
|
+
* @memberof SsmlEmphasis#
|
|
3382
|
+
*
|
|
3383
|
+
* @param {object} attributes - TwiML attributes
|
|
3384
|
+
* @param {string} [attributes.volume] -
|
|
3385
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
3386
|
+
* @param {string} [attributes.rate] -
|
|
3387
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
3388
|
+
* @param {string} [attributes.pitch] -
|
|
3389
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
3390
|
+
* @param {string} words - Words to speak
|
|
3391
|
+
*
|
|
3392
|
+
* @returns SsmlProsody
|
|
3393
|
+
*/
|
|
3394
|
+
/* jshint ignore:end */
|
|
3395
|
+
SsmlEmphasis.prototype.prosody = function prosody(attributes, words) {
|
|
3396
|
+
return new SsmlProsody(this.emphasis.ele('prosody', attributes, words));
|
|
3397
|
+
};
|
|
3398
|
+
|
|
3399
|
+
/* jshint ignore:start */
|
|
3400
|
+
/**
|
|
3401
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
3402
|
+
*
|
|
3403
|
+
* @function ssmlProsody
|
|
3404
|
+
* @memberof SsmlEmphasis#
|
|
3405
|
+
* @deprecated - Use prosody() instead.
|
|
3406
|
+
*
|
|
3407
|
+
* @param {object} attributes - TwiML attributes
|
|
3408
|
+
* @param {string} [attributes.volume] -
|
|
3409
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
3410
|
+
* @param {string} [attributes.rate] -
|
|
3411
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
3412
|
+
* @param {string} [attributes.pitch] -
|
|
3413
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
3414
|
+
* @param {string} words - Words to speak
|
|
3415
|
+
*
|
|
3416
|
+
* @returns SsmlProsody
|
|
3417
|
+
*/
|
|
3418
|
+
/* jshint ignore:end */
|
|
3419
|
+
SsmlEmphasis.prototype.ssmlProsody = util.deprecate(function
|
|
3420
|
+
ssmlProsody(attributes, words) {
|
|
3421
|
+
return this.prosody(attributes, words);
|
|
3422
|
+
}, 'ssmlProsody() is deprecated. Use prosody() instead.');
|
|
3423
|
+
|
|
3424
|
+
/* jshint ignore:start */
|
|
3425
|
+
/**
|
|
3426
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
3427
|
+
*
|
|
3428
|
+
* @function sayAs
|
|
3429
|
+
* @memberof SsmlEmphasis#
|
|
3430
|
+
*
|
|
3431
|
+
* @param {object} attributes - TwiML attributes
|
|
3432
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
3433
|
+
* as] - Specify the type of words are spoken
|
|
3434
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
3435
|
+
* Specify the format of the date when interpret-as is set to date
|
|
3436
|
+
* @param {string} words - Words to be interpreted
|
|
3437
|
+
*
|
|
3438
|
+
* @returns SsmlSayAs
|
|
3439
|
+
*/
|
|
3440
|
+
/* jshint ignore:end */
|
|
3441
|
+
SsmlEmphasis.prototype.sayAs = function sayAs(attributes, words) {
|
|
3442
|
+
return new SsmlSayAs(this.emphasis.ele('say-as', attributes, words));
|
|
3443
|
+
};
|
|
3444
|
+
|
|
3445
|
+
/* jshint ignore:start */
|
|
3446
|
+
/**
|
|
3447
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
3448
|
+
*
|
|
3449
|
+
* @function ssmlSayAs
|
|
3450
|
+
* @memberof SsmlEmphasis#
|
|
3451
|
+
* @deprecated - Use sayAs() instead.
|
|
3452
|
+
*
|
|
3453
|
+
* @param {object} attributes - TwiML attributes
|
|
3454
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
3455
|
+
* as] - Specify the type of words are spoken
|
|
3456
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
3457
|
+
* Specify the format of the date when interpret-as is set to date
|
|
3458
|
+
* @param {string} words - Words to be interpreted
|
|
3459
|
+
*
|
|
3460
|
+
* @returns SsmlSayAs
|
|
3461
|
+
*/
|
|
3462
|
+
/* jshint ignore:end */
|
|
3463
|
+
SsmlEmphasis.prototype.ssmlSayAs = util.deprecate(function ssmlSayAs(attributes,
|
|
3464
|
+
words) {
|
|
3465
|
+
return this.sayAs(attributes, words);
|
|
3466
|
+
}, 'ssmlSayAs() is deprecated. Use sayAs() instead.');
|
|
3467
|
+
|
|
3468
|
+
/* jshint ignore:start */
|
|
3469
|
+
/**
|
|
3470
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
3471
|
+
*
|
|
3472
|
+
* @function sub
|
|
3473
|
+
* @memberof SsmlEmphasis#
|
|
3474
|
+
*
|
|
3475
|
+
* @param {object} attributes - TwiML attributes
|
|
3476
|
+
* @param {string} [attributes.alias] -
|
|
3477
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
3478
|
+
* @param {string} words - Words to be substituted
|
|
3479
|
+
*
|
|
3480
|
+
* @returns SsmlSub
|
|
3481
|
+
*/
|
|
3482
|
+
/* jshint ignore:end */
|
|
3483
|
+
SsmlEmphasis.prototype.sub = function sub(attributes, words) {
|
|
3484
|
+
return new SsmlSub(this.emphasis.ele('sub', attributes, words));
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
/* jshint ignore:start */
|
|
3488
|
+
/**
|
|
3489
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
3490
|
+
*
|
|
3491
|
+
* @function ssmlSub
|
|
3492
|
+
* @memberof SsmlEmphasis#
|
|
3493
|
+
* @deprecated - Use sub() instead.
|
|
3494
|
+
*
|
|
3495
|
+
* @param {object} attributes - TwiML attributes
|
|
3496
|
+
* @param {string} [attributes.alias] -
|
|
3497
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
3498
|
+
* @param {string} words - Words to be substituted
|
|
3499
|
+
*
|
|
3500
|
+
* @returns SsmlSub
|
|
3501
|
+
*/
|
|
3502
|
+
/* jshint ignore:end */
|
|
3503
|
+
SsmlEmphasis.prototype.ssmlSub = util.deprecate(function ssmlSub(attributes,
|
|
3504
|
+
words) {
|
|
3505
|
+
return this.sub(attributes, words);
|
|
3506
|
+
}, 'ssmlSub() is deprecated. Use sub() instead.');
|
|
3507
|
+
|
|
3508
|
+
/* jshint ignore:start */
|
|
3509
|
+
/**
|
|
3510
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
3511
|
+
*
|
|
3512
|
+
* @function w
|
|
3513
|
+
* @memberof SsmlEmphasis#
|
|
3514
|
+
*
|
|
3515
|
+
* @param {object} attributes - TwiML attributes
|
|
3516
|
+
* @param {string} [attributes.role] -
|
|
3517
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
3518
|
+
* @param {string} words - Words to speak
|
|
3519
|
+
*
|
|
3520
|
+
* @returns SsmlW
|
|
3521
|
+
*/
|
|
3522
|
+
/* jshint ignore:end */
|
|
3523
|
+
SsmlEmphasis.prototype.w = function w(attributes, words) {
|
|
3524
|
+
return new SsmlW(this.emphasis.ele('w', attributes, words));
|
|
3525
|
+
};
|
|
3526
|
+
|
|
3527
|
+
/* jshint ignore:start */
|
|
3528
|
+
/**
|
|
3529
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
3530
|
+
*
|
|
3531
|
+
* @function ssmlW
|
|
3532
|
+
* @memberof SsmlEmphasis#
|
|
3533
|
+
* @deprecated - Use w() instead.
|
|
3534
|
+
*
|
|
3535
|
+
* @param {object} attributes - TwiML attributes
|
|
3536
|
+
* @param {string} [attributes.role] -
|
|
3537
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
3538
|
+
* @param {string} words - Words to speak
|
|
3539
|
+
*
|
|
3540
|
+
* @returns SsmlW
|
|
3541
|
+
*/
|
|
3542
|
+
/* jshint ignore:end */
|
|
3543
|
+
SsmlEmphasis.prototype.ssmlW = util.deprecate(function ssmlW(attributes, words)
|
|
3544
|
+
{
|
|
3545
|
+
return this.w(attributes, words);
|
|
3546
|
+
}, 'ssmlW() is deprecated. Use w() instead.');
|
|
1459
3547
|
|
|
1460
3548
|
|
|
1461
3549
|
/* jshint ignore:start */
|