twilio 3.23.0 → 3.25.0
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 +55 -0
- package/lib/rest/Api.d.ts +2 -0
- package/lib/rest/Api.js +9 -0
- package/lib/rest/Authy.js +5 -5
- package/lib/rest/Preview.d.ts +0 -2
- package/lib/rest/Preview.js +12 -23
- package/lib/rest/Twilio.d.ts +1 -0
- package/lib/rest/Twilio.js +9 -0
- package/lib/rest/Video.js +8 -8
- package/lib/rest/api/V2010.d.ts +3 -0
- package/lib/rest/api/V2010.js +9 -0
- package/lib/rest/api/v2010/account/balance.d.ts +87 -0
- package/lib/rest/api/v2010/account/balance.js +162 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -1
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +3 -3
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +3 -3
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +1 -1
- package/lib/rest/api/v2010/account.d.ts +8 -0
- package/lib/rest/api/v2010/account.js +25 -0
- package/lib/rest/authy/V1.d.ts +1 -1
- package/lib/rest/authy/V1.js +8 -8
- package/lib/rest/authy/v1/form.d.ts +13 -13
- package/lib/rest/authy/v1/form.js +17 -17
- package/lib/rest/authy/v1/service/entity/factor/challenge.d.ts +12 -13
- package/lib/rest/authy/v1/service/entity/factor/challenge.js +4 -6
- package/lib/rest/authy/v1/service/entity/factor.d.ts +9 -9
- package/lib/rest/authy/v1/service/entity/factor.js +7 -9
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +9 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/fieldType.js +8 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +5 -5
- package/lib/rest/autopilot/v1/assistant/modelBuild.js +8 -5
- package/lib/rest/autopilot/v1/assistant/query.d.ts +17 -17
- package/lib/rest/autopilot/v1/assistant/query.js +24 -18
- package/lib/rest/autopilot/v1/assistant/task/field.d.ts +11 -11
- package/lib/rest/autopilot/v1/assistant/task/field.js +15 -11
- package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +18 -18
- package/lib/rest/autopilot/v1/assistant/task/sample.js +23 -21
- package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +2 -2
- package/lib/rest/autopilot/v1/assistant/task/taskActions.js +4 -3
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +6 -6
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +7 -6
- package/lib/rest/autopilot/v1/assistant/task.d.ts +10 -10
- package/lib/rest/autopilot/v1/assistant/task.js +21 -12
- package/lib/rest/autopilot/v1/assistant.d.ts +15 -15
- package/lib/rest/autopilot/v1/assistant.js +25 -20
- package/lib/rest/chat/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/chat/v2/service/channel/member.js +13 -2
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +7 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +13 -2
- package/lib/rest/preview/Marketplace.d.ts +1 -1
- package/lib/rest/preview/Marketplace.js +9 -9
- package/lib/rest/proxy/v1/service.d.ts +7 -0
- package/lib/rest/proxy/v1/service.js +13 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +24 -5
- package/lib/rest/sync/v1/service/syncList.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncList.js +12 -5
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +10 -2
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +24 -6
- package/lib/rest/sync/v1/service/syncMap.d.ts +6 -2
- package/lib/rest/sync/v1/service/syncMap.js +12 -5
- package/lib/rest/verify/v1/service/verification.d.ts +4 -0
- package/lib/rest/verify/v1/service/verification.js +5 -1
- package/lib/rest/video/V1.d.ts +1 -1
- package/lib/rest/video/V1.js +10 -10
- package/lib/twiml/VoiceResponse.d.ts +124 -0
- package/lib/twiml/VoiceResponse.js +960 -0
- package/package.json +1 -1
- package/lib/rest/preview/Authy.d.ts +0 -27
- package/lib/rest/preview/Authy.js +0 -44
- package/lib/rest/preview/authy/service/entity.d.ts +0 -250
- package/lib/rest/preview/authy/service/entity.js +0 -514
- package/lib/rest/preview/authy/service.d.ts +0 -275
- package/lib/rest/preview/authy/service.js +0 -578
|
@@ -298,6 +298,966 @@ VoiceResponse.prototype.sms = function sms(attributes, message) {
|
|
|
298
298
|
return new Sms(this.response.ele('Sms', attributes, message));
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
+
/* jshint ignore:start */
|
|
302
|
+
/**
|
|
303
|
+
* <Pay> Twiml Verb
|
|
304
|
+
*
|
|
305
|
+
* @param {object} [attributes] - TwiML attributes
|
|
306
|
+
* @param {pay.input} [attributes.input] - Input type Twilio should accept
|
|
307
|
+
* @param {string} [attributes.action] - Action URL
|
|
308
|
+
* @param {string} [attributes.statusCallback] - Status callback URL
|
|
309
|
+
* @param {pay.status_callback_method} [attributes.statusCallbackMethod] -
|
|
310
|
+
* Status callback method
|
|
311
|
+
* @param {number} [attributes.timeout] - Time to wait to gather input
|
|
312
|
+
* @param {number} [attributes.maxAttempts] -
|
|
313
|
+
* Maximum number of allowed retries when gathering input
|
|
314
|
+
* @param {boolean} [attributes.securityCode] - Prompt for security code
|
|
315
|
+
* @param {string} [attributes.postalCode] -
|
|
316
|
+
* Prompt for postal code and it should be true/false or default postal code
|
|
317
|
+
* @param {string} [attributes.paymentConnector] -
|
|
318
|
+
* Unique name for payment connector
|
|
319
|
+
* @param {pay.token_type} [attributes.tokenType] - Type of token
|
|
320
|
+
* @param {string} [attributes.chargeAmount] -
|
|
321
|
+
* Amount to process. If value is greater than 0 then make the payment else create a payment token
|
|
322
|
+
* @param {pay.currency} [attributes.currency] - Currency of the amount attribute
|
|
323
|
+
* @param {string} [attributes.description] - Details regarding the payment
|
|
324
|
+
* @param {pay.valid_card_types} [attributes.validCardTypes] -
|
|
325
|
+
* Comma separated accepted card types
|
|
326
|
+
* @param {pay.language} [attributes.language] - Language to use
|
|
327
|
+
*
|
|
328
|
+
* @returns Pay
|
|
329
|
+
*/
|
|
330
|
+
/* jshint ignore:end */
|
|
331
|
+
VoiceResponse.prototype.pay = function pay(attributes) {
|
|
332
|
+
return new Pay(this.response.ele('Pay', attributes));
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
/* jshint ignore:start */
|
|
336
|
+
/**
|
|
337
|
+
* <Prompt> Twiml Verb
|
|
338
|
+
*
|
|
339
|
+
* @param {object} [attributes] - TwiML attributes
|
|
340
|
+
* @param {prompt.for} [attributes.for_] - Name of the credit card data element
|
|
341
|
+
* @param {prompt.error_type} [attributes.errorType] - Type of error
|
|
342
|
+
* @param {prompt.card_type} [attributes.cardType] - Type of the credit card
|
|
343
|
+
* @param {number} [attributes.attempt] - Current attempt count
|
|
344
|
+
*
|
|
345
|
+
* @returns Prompt
|
|
346
|
+
*/
|
|
347
|
+
/* jshint ignore:end */
|
|
348
|
+
VoiceResponse.prototype.prompt = function prompt(attributes) {
|
|
349
|
+
return new Prompt(this.response.ele('Prompt', attributes));
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
/* jshint ignore:start */
|
|
354
|
+
/**
|
|
355
|
+
* <Prompt> Twiml Verb
|
|
356
|
+
*
|
|
357
|
+
* @param {object} prompt - <Prompt> Twiml Verb
|
|
358
|
+
*/
|
|
359
|
+
/* jshint ignore:end */
|
|
360
|
+
function Prompt(prompt) {
|
|
361
|
+
this.prompt = prompt;
|
|
362
|
+
this._propertyName = 'prompt';
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
Prompt.prototype = Object.create(TwiML.prototype);
|
|
366
|
+
Prompt.prototype.constructor = Prompt;
|
|
367
|
+
|
|
368
|
+
/* jshint ignore:start */
|
|
369
|
+
/**
|
|
370
|
+
* <Say> TwiML Verb
|
|
371
|
+
*
|
|
372
|
+
* @param {object} attributes - TwiML attributes
|
|
373
|
+
* @param {say.voice} [attributes.voice] - Voice to use
|
|
374
|
+
* @param {number} [attributes.loop] - Times to loop message
|
|
375
|
+
* @param {say.language} [attributes.language] - Message langauge
|
|
376
|
+
* @param {string} message - Message to say
|
|
377
|
+
*
|
|
378
|
+
* @returns Say
|
|
379
|
+
*/
|
|
380
|
+
/* jshint ignore:end */
|
|
381
|
+
Prompt.prototype.say = function say(attributes, message) {
|
|
382
|
+
return new Say(this.prompt.ele('Say', attributes, message));
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/* jshint ignore:start */
|
|
386
|
+
/**
|
|
387
|
+
* <Play> TwiML Verb
|
|
388
|
+
*
|
|
389
|
+
* @param {object} [attributes] - TwiML attributes
|
|
390
|
+
* @param {number} [attributes.loop] - Times to loop media
|
|
391
|
+
* @param {string} [attributes.digits] - Play DTMF tones for digits
|
|
392
|
+
* @param {url} [url] - Media URL
|
|
393
|
+
*
|
|
394
|
+
* @returns Play
|
|
395
|
+
*/
|
|
396
|
+
/* jshint ignore:end */
|
|
397
|
+
Prompt.prototype.play = function play(attributes, url) {
|
|
398
|
+
return new Play(this.prompt.ele('Play', attributes, url));
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
/* jshint ignore:start */
|
|
402
|
+
/**
|
|
403
|
+
* <Pause> TwiML Verb
|
|
404
|
+
*
|
|
405
|
+
* @param {object} [attributes] - TwiML attributes
|
|
406
|
+
* @param {number} [attributes.length] - Length in seconds to pause
|
|
407
|
+
*
|
|
408
|
+
* @returns Pause
|
|
409
|
+
*/
|
|
410
|
+
/* jshint ignore:end */
|
|
411
|
+
Prompt.prototype.pause = function pause(attributes) {
|
|
412
|
+
return new Pause(this.prompt.ele('Pause', attributes));
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
/* jshint ignore:start */
|
|
417
|
+
/**
|
|
418
|
+
* <Pause> TwiML Verb
|
|
419
|
+
*
|
|
420
|
+
* @param {object} pause - <Pause> TwiML Verb
|
|
421
|
+
*/
|
|
422
|
+
/* jshint ignore:end */
|
|
423
|
+
function Pause(pause) {
|
|
424
|
+
this.pause = pause;
|
|
425
|
+
this._propertyName = 'pause';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
Pause.prototype = Object.create(TwiML.prototype);
|
|
429
|
+
Pause.prototype.constructor = Pause;
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
/* jshint ignore:start */
|
|
433
|
+
/**
|
|
434
|
+
* <Play> TwiML Verb
|
|
435
|
+
*
|
|
436
|
+
* @param {object} play - <Play> TwiML Verb
|
|
437
|
+
*/
|
|
438
|
+
/* jshint ignore:end */
|
|
439
|
+
function Play(play) {
|
|
440
|
+
this.play = play;
|
|
441
|
+
this._propertyName = 'play';
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
Play.prototype = Object.create(TwiML.prototype);
|
|
445
|
+
Play.prototype.constructor = Play;
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
/* jshint ignore:start */
|
|
449
|
+
/**
|
|
450
|
+
* <Say> TwiML Verb
|
|
451
|
+
*
|
|
452
|
+
* @param {object} say - <Say> TwiML Verb
|
|
453
|
+
*/
|
|
454
|
+
/* jshint ignore:end */
|
|
455
|
+
function Say(say) {
|
|
456
|
+
this.say = say;
|
|
457
|
+
this._propertyName = 'say';
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
Say.prototype = Object.create(TwiML.prototype);
|
|
461
|
+
Say.prototype.constructor = Say;
|
|
462
|
+
|
|
463
|
+
/* jshint ignore:start */
|
|
464
|
+
/**
|
|
465
|
+
* Adding a Pause in <Say>
|
|
466
|
+
*
|
|
467
|
+
* @param {object} [attributes] - TwiML attributes
|
|
468
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
469
|
+
* Set a pause based on strength
|
|
470
|
+
* @param {string} [attributes.time] -
|
|
471
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
472
|
+
*
|
|
473
|
+
* @returns SsmlBreak
|
|
474
|
+
*/
|
|
475
|
+
/* jshint ignore:end */
|
|
476
|
+
Say.prototype.ssmlBreak = function ssmlBreak(attributes) {
|
|
477
|
+
return new SsmlBreak(this.say.ele('break', attributes));
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/* jshint ignore:start */
|
|
481
|
+
/**
|
|
482
|
+
* Emphasizing Words in <Say>
|
|
483
|
+
*
|
|
484
|
+
* @param {object} attributes - TwiML attributes
|
|
485
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
486
|
+
* @param {string} words - Words to emphasize
|
|
487
|
+
*
|
|
488
|
+
* @returns SsmlEmphasis
|
|
489
|
+
*/
|
|
490
|
+
/* jshint ignore:end */
|
|
491
|
+
Say.prototype.ssmlEmphasis = function ssmlEmphasis(attributes, words) {
|
|
492
|
+
return new SsmlEmphasis(this.say.ele('emphasis', attributes, words));
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
/* jshint ignore:start */
|
|
496
|
+
/**
|
|
497
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
498
|
+
*
|
|
499
|
+
* @param {object} attributes - TwiML attributes
|
|
500
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
501
|
+
* @param {string} words - Words to speak
|
|
502
|
+
*
|
|
503
|
+
* @returns SsmlLang
|
|
504
|
+
*/
|
|
505
|
+
/* jshint ignore:end */
|
|
506
|
+
Say.prototype.ssmlLang = function ssmlLang(attributes, words) {
|
|
507
|
+
return new SsmlLang(this.say.ele('lang', attributes, words));
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
/* jshint ignore:start */
|
|
511
|
+
/**
|
|
512
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
513
|
+
*
|
|
514
|
+
* @param {object} attributes - TwiML attributes
|
|
515
|
+
* @param {string} words - Words to speak
|
|
516
|
+
*
|
|
517
|
+
* @returns SsmlP
|
|
518
|
+
*/
|
|
519
|
+
/* jshint ignore:end */
|
|
520
|
+
Say.prototype.ssmlP = function ssmlP(attributes, words) {
|
|
521
|
+
return new SsmlP(this.say.ele('p', attributes, words));
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
/* jshint ignore:start */
|
|
525
|
+
/**
|
|
526
|
+
* Using Phonetic Pronunciation in <Say>
|
|
527
|
+
*
|
|
528
|
+
* @param {object} attributes - TwiML attributes
|
|
529
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
530
|
+
* Specify the phonetic alphabet
|
|
531
|
+
* @param {string} [attributes.ph] -
|
|
532
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
533
|
+
* @param {string} words - Words to speak
|
|
534
|
+
*
|
|
535
|
+
* @returns SsmlPhoneme
|
|
536
|
+
*/
|
|
537
|
+
/* jshint ignore:end */
|
|
538
|
+
Say.prototype.ssmlPhoneme = function ssmlPhoneme(attributes, words) {
|
|
539
|
+
return new SsmlPhoneme(this.say.ele('phoneme', attributes, words));
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
/* jshint ignore:start */
|
|
543
|
+
/**
|
|
544
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
545
|
+
*
|
|
546
|
+
* @param {object} attributes - TwiML attributes
|
|
547
|
+
* @param {string} [attributes.volume] -
|
|
548
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
549
|
+
* @param {string} [attributes.rate] -
|
|
550
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
551
|
+
* @param {string} [attributes.pitch] -
|
|
552
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
553
|
+
* @param {string} words - Words to speak
|
|
554
|
+
*
|
|
555
|
+
* @returns SsmlProsody
|
|
556
|
+
*/
|
|
557
|
+
/* jshint ignore:end */
|
|
558
|
+
Say.prototype.ssmlProsody = function ssmlProsody(attributes, words) {
|
|
559
|
+
return new SsmlProsody(this.say.ele('prosody', attributes, words));
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
/* jshint ignore:start */
|
|
563
|
+
/**
|
|
564
|
+
* Adding A Pause Between Sentences in <Say>
|
|
565
|
+
*
|
|
566
|
+
* @param {object} attributes - TwiML attributes
|
|
567
|
+
* @param {string} words - Words to speak
|
|
568
|
+
*
|
|
569
|
+
* @returns SsmlS
|
|
570
|
+
*/
|
|
571
|
+
/* jshint ignore:end */
|
|
572
|
+
Say.prototype.ssmlS = function ssmlS(attributes, words) {
|
|
573
|
+
return new SsmlS(this.say.ele('s', attributes, words));
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/* jshint ignore:start */
|
|
577
|
+
/**
|
|
578
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
579
|
+
*
|
|
580
|
+
* @param {object} attributes - TwiML attributes
|
|
581
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
582
|
+
* as] - Specify the type of words are spoken
|
|
583
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
584
|
+
* Specify the format of the date when interpret-as is set to date
|
|
585
|
+
* @param {string} words - Words to be interpreted
|
|
586
|
+
*
|
|
587
|
+
* @returns SsmlSayAs
|
|
588
|
+
*/
|
|
589
|
+
/* jshint ignore:end */
|
|
590
|
+
Say.prototype.ssmlSayAs = function ssmlSayAs(attributes, words) {
|
|
591
|
+
return new SsmlSayAs(this.say.ele('say-as', attributes, words));
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
/* jshint ignore:start */
|
|
595
|
+
/**
|
|
596
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
597
|
+
*
|
|
598
|
+
* @param {object} attributes - TwiML attributes
|
|
599
|
+
* @param {string} [attributes.alias] -
|
|
600
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
601
|
+
* @param {string} words - Words to be substituted
|
|
602
|
+
*
|
|
603
|
+
* @returns SsmlSub
|
|
604
|
+
*/
|
|
605
|
+
/* jshint ignore:end */
|
|
606
|
+
Say.prototype.ssmlSub = function ssmlSub(attributes, words) {
|
|
607
|
+
return new SsmlSub(this.say.ele('sub', attributes, words));
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
/* jshint ignore:start */
|
|
611
|
+
/**
|
|
612
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
613
|
+
*
|
|
614
|
+
* @param {object} attributes - TwiML attributes
|
|
615
|
+
* @param {string} [attributes.role] -
|
|
616
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
617
|
+
* @param {string} words - Words to speak
|
|
618
|
+
*
|
|
619
|
+
* @returns SsmlW
|
|
620
|
+
*/
|
|
621
|
+
/* jshint ignore:end */
|
|
622
|
+
Say.prototype.ssmlW = function ssmlW(attributes, words) {
|
|
623
|
+
return new SsmlW(this.say.ele('w', attributes, words));
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
/* jshint ignore:start */
|
|
628
|
+
/**
|
|
629
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
630
|
+
*
|
|
631
|
+
* @param {object} ssmlW -
|
|
632
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
633
|
+
*/
|
|
634
|
+
/* jshint ignore:end */
|
|
635
|
+
function SsmlW(ssmlW) {
|
|
636
|
+
this.ssmlW = ssmlW;
|
|
637
|
+
this._propertyName = 'ssmlW';
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
SsmlW.prototype = Object.create(TwiML.prototype);
|
|
641
|
+
SsmlW.prototype.constructor = SsmlW;
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
/* jshint ignore:start */
|
|
645
|
+
/**
|
|
646
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
647
|
+
*
|
|
648
|
+
* @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in <Say>
|
|
649
|
+
*/
|
|
650
|
+
/* jshint ignore:end */
|
|
651
|
+
function SsmlSub(ssmlSub) {
|
|
652
|
+
this.ssmlSub = ssmlSub;
|
|
653
|
+
this._propertyName = 'ssmlSub';
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
SsmlSub.prototype = Object.create(TwiML.prototype);
|
|
657
|
+
SsmlSub.prototype.constructor = SsmlSub;
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/* jshint ignore:start */
|
|
661
|
+
/**
|
|
662
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
663
|
+
*
|
|
664
|
+
* @param {object} ssmlSayAs -
|
|
665
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
666
|
+
*/
|
|
667
|
+
/* jshint ignore:end */
|
|
668
|
+
function SsmlSayAs(ssmlSayAs) {
|
|
669
|
+
this.ssmlSayAs = ssmlSayAs;
|
|
670
|
+
this._propertyName = 'ssmlSayAs';
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
SsmlSayAs.prototype = Object.create(TwiML.prototype);
|
|
674
|
+
SsmlSayAs.prototype.constructor = SsmlSayAs;
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
/* jshint ignore:start */
|
|
678
|
+
/**
|
|
679
|
+
* Adding A Pause Between Sentences in <Say>
|
|
680
|
+
*
|
|
681
|
+
* @param {object} ssmlS - Adding A Pause Between Sentences in <Say>
|
|
682
|
+
*/
|
|
683
|
+
/* jshint ignore:end */
|
|
684
|
+
function SsmlS(ssmlS) {
|
|
685
|
+
this.ssmlS = ssmlS;
|
|
686
|
+
this._propertyName = 'ssmlS';
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
SsmlS.prototype = Object.create(TwiML.prototype);
|
|
690
|
+
SsmlS.prototype.constructor = SsmlS;
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/* jshint ignore:start */
|
|
694
|
+
/**
|
|
695
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
696
|
+
*
|
|
697
|
+
* @param {object} ssmlProsody -
|
|
698
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
699
|
+
*/
|
|
700
|
+
/* jshint ignore:end */
|
|
701
|
+
function SsmlProsody(ssmlProsody) {
|
|
702
|
+
this.ssmlProsody = ssmlProsody;
|
|
703
|
+
this._propertyName = 'ssmlProsody';
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
SsmlProsody.prototype = Object.create(TwiML.prototype);
|
|
707
|
+
SsmlProsody.prototype.constructor = SsmlProsody;
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/* jshint ignore:start */
|
|
711
|
+
/**
|
|
712
|
+
* Using Phonetic Pronunciation in <Say>
|
|
713
|
+
*
|
|
714
|
+
* @param {object} ssmlPhoneme - Using Phonetic Pronunciation in <Say>
|
|
715
|
+
*/
|
|
716
|
+
/* jshint ignore:end */
|
|
717
|
+
function SsmlPhoneme(ssmlPhoneme) {
|
|
718
|
+
this.ssmlPhoneme = ssmlPhoneme;
|
|
719
|
+
this._propertyName = 'ssmlPhoneme';
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
SsmlPhoneme.prototype = Object.create(TwiML.prototype);
|
|
723
|
+
SsmlPhoneme.prototype.constructor = SsmlPhoneme;
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
/* jshint ignore:start */
|
|
727
|
+
/**
|
|
728
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
729
|
+
*
|
|
730
|
+
* @param {object} ssmlP - Adding a Pause Between Paragraphs in <Say>
|
|
731
|
+
*/
|
|
732
|
+
/* jshint ignore:end */
|
|
733
|
+
function SsmlP(ssmlP) {
|
|
734
|
+
this.ssmlP = ssmlP;
|
|
735
|
+
this._propertyName = 'ssmlP';
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
SsmlP.prototype = Object.create(TwiML.prototype);
|
|
739
|
+
SsmlP.prototype.constructor = SsmlP;
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
/* jshint ignore:start */
|
|
743
|
+
/**
|
|
744
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
745
|
+
*
|
|
746
|
+
* @param {object} ssmlLang -
|
|
747
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
748
|
+
*/
|
|
749
|
+
/* jshint ignore:end */
|
|
750
|
+
function SsmlLang(ssmlLang) {
|
|
751
|
+
this.ssmlLang = ssmlLang;
|
|
752
|
+
this._propertyName = 'ssmlLang';
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
SsmlLang.prototype = Object.create(TwiML.prototype);
|
|
756
|
+
SsmlLang.prototype.constructor = SsmlLang;
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
/* jshint ignore:start */
|
|
760
|
+
/**
|
|
761
|
+
* Emphasizing Words in <Say>
|
|
762
|
+
*
|
|
763
|
+
* @param {object} ssmlEmphasis - Emphasizing Words in <Say>
|
|
764
|
+
*/
|
|
765
|
+
/* jshint ignore:end */
|
|
766
|
+
function SsmlEmphasis(ssmlEmphasis) {
|
|
767
|
+
this.ssmlEmphasis = ssmlEmphasis;
|
|
768
|
+
this._propertyName = 'ssmlEmphasis';
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
SsmlEmphasis.prototype = Object.create(TwiML.prototype);
|
|
772
|
+
SsmlEmphasis.prototype.constructor = SsmlEmphasis;
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
/* jshint ignore:start */
|
|
776
|
+
/**
|
|
777
|
+
* Adding a Pause in <Say>
|
|
778
|
+
*
|
|
779
|
+
* @param {object} ssmlBreak - Adding a Pause in <Say>
|
|
780
|
+
*/
|
|
781
|
+
/* jshint ignore:end */
|
|
782
|
+
function SsmlBreak(ssmlBreak) {
|
|
783
|
+
this.ssmlBreak = ssmlBreak;
|
|
784
|
+
this._propertyName = 'ssmlBreak';
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
SsmlBreak.prototype = Object.create(TwiML.prototype);
|
|
788
|
+
SsmlBreak.prototype.constructor = SsmlBreak;
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/* jshint ignore:start */
|
|
792
|
+
/**
|
|
793
|
+
* <Pay> Twiml Verb
|
|
794
|
+
*
|
|
795
|
+
* @param {object} pay - <Pay> Twiml Verb
|
|
796
|
+
*/
|
|
797
|
+
/* jshint ignore:end */
|
|
798
|
+
function Pay(pay) {
|
|
799
|
+
this.pay = pay;
|
|
800
|
+
this._propertyName = 'pay';
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
Pay.prototype = Object.create(TwiML.prototype);
|
|
804
|
+
Pay.prototype.constructor = Pay;
|
|
805
|
+
|
|
806
|
+
/* jshint ignore:start */
|
|
807
|
+
/**
|
|
808
|
+
* <Prompt> Twiml Verb
|
|
809
|
+
*
|
|
810
|
+
* @param {object} [attributes] - TwiML attributes
|
|
811
|
+
* @param {prompt.for} [attributes.for_] - Name of the credit card data element
|
|
812
|
+
* @param {prompt.error_type} [attributes.errorType] - Type of error
|
|
813
|
+
* @param {prompt.card_type} [attributes.cardType] - Type of the credit card
|
|
814
|
+
* @param {number} [attributes.attempt] - Current attempt count
|
|
815
|
+
*
|
|
816
|
+
* @returns Prompt
|
|
817
|
+
*/
|
|
818
|
+
/* jshint ignore:end */
|
|
819
|
+
Pay.prototype.prompt = function prompt(attributes) {
|
|
820
|
+
return new Prompt(this.pay.ele('Prompt', attributes));
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
/* jshint ignore:start */
|
|
825
|
+
/**
|
|
826
|
+
* <Prompt> Twiml Verb
|
|
827
|
+
*
|
|
828
|
+
* @param {object} prompt - <Prompt> Twiml Verb
|
|
829
|
+
*/
|
|
830
|
+
/* jshint ignore:end */
|
|
831
|
+
function Prompt(prompt) {
|
|
832
|
+
this.prompt = prompt;
|
|
833
|
+
this._propertyName = 'prompt';
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
Prompt.prototype = Object.create(TwiML.prototype);
|
|
837
|
+
Prompt.prototype.constructor = Prompt;
|
|
838
|
+
|
|
839
|
+
/* jshint ignore:start */
|
|
840
|
+
/**
|
|
841
|
+
* <Say> TwiML Verb
|
|
842
|
+
*
|
|
843
|
+
* @param {object} attributes - TwiML attributes
|
|
844
|
+
* @param {say.voice} [attributes.voice] - Voice to use
|
|
845
|
+
* @param {number} [attributes.loop] - Times to loop message
|
|
846
|
+
* @param {say.language} [attributes.language] - Message langauge
|
|
847
|
+
* @param {string} message - Message to say
|
|
848
|
+
*
|
|
849
|
+
* @returns Say
|
|
850
|
+
*/
|
|
851
|
+
/* jshint ignore:end */
|
|
852
|
+
Prompt.prototype.say = function say(attributes, message) {
|
|
853
|
+
return new Say(this.prompt.ele('Say', attributes, message));
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
/* jshint ignore:start */
|
|
857
|
+
/**
|
|
858
|
+
* <Play> TwiML Verb
|
|
859
|
+
*
|
|
860
|
+
* @param {object} [attributes] - TwiML attributes
|
|
861
|
+
* @param {number} [attributes.loop] - Times to loop media
|
|
862
|
+
* @param {string} [attributes.digits] - Play DTMF tones for digits
|
|
863
|
+
* @param {url} [url] - Media URL
|
|
864
|
+
*
|
|
865
|
+
* @returns Play
|
|
866
|
+
*/
|
|
867
|
+
/* jshint ignore:end */
|
|
868
|
+
Prompt.prototype.play = function play(attributes, url) {
|
|
869
|
+
return new Play(this.prompt.ele('Play', attributes, url));
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
/* jshint ignore:start */
|
|
873
|
+
/**
|
|
874
|
+
* <Pause> TwiML Verb
|
|
875
|
+
*
|
|
876
|
+
* @param {object} [attributes] - TwiML attributes
|
|
877
|
+
* @param {number} [attributes.length] - Length in seconds to pause
|
|
878
|
+
*
|
|
879
|
+
* @returns Pause
|
|
880
|
+
*/
|
|
881
|
+
/* jshint ignore:end */
|
|
882
|
+
Prompt.prototype.pause = function pause(attributes) {
|
|
883
|
+
return new Pause(this.prompt.ele('Pause', attributes));
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
/* jshint ignore:start */
|
|
888
|
+
/**
|
|
889
|
+
* <Pause> TwiML Verb
|
|
890
|
+
*
|
|
891
|
+
* @param {object} pause - <Pause> TwiML Verb
|
|
892
|
+
*/
|
|
893
|
+
/* jshint ignore:end */
|
|
894
|
+
function Pause(pause) {
|
|
895
|
+
this.pause = pause;
|
|
896
|
+
this._propertyName = 'pause';
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
Pause.prototype = Object.create(TwiML.prototype);
|
|
900
|
+
Pause.prototype.constructor = Pause;
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
/* jshint ignore:start */
|
|
904
|
+
/**
|
|
905
|
+
* <Play> TwiML Verb
|
|
906
|
+
*
|
|
907
|
+
* @param {object} play - <Play> TwiML Verb
|
|
908
|
+
*/
|
|
909
|
+
/* jshint ignore:end */
|
|
910
|
+
function Play(play) {
|
|
911
|
+
this.play = play;
|
|
912
|
+
this._propertyName = 'play';
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
Play.prototype = Object.create(TwiML.prototype);
|
|
916
|
+
Play.prototype.constructor = Play;
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
/* jshint ignore:start */
|
|
920
|
+
/**
|
|
921
|
+
* <Say> TwiML Verb
|
|
922
|
+
*
|
|
923
|
+
* @param {object} say - <Say> TwiML Verb
|
|
924
|
+
*/
|
|
925
|
+
/* jshint ignore:end */
|
|
926
|
+
function Say(say) {
|
|
927
|
+
this.say = say;
|
|
928
|
+
this._propertyName = 'say';
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
Say.prototype = Object.create(TwiML.prototype);
|
|
932
|
+
Say.prototype.constructor = Say;
|
|
933
|
+
|
|
934
|
+
/* jshint ignore:start */
|
|
935
|
+
/**
|
|
936
|
+
* Adding a Pause in <Say>
|
|
937
|
+
*
|
|
938
|
+
* @param {object} [attributes] - TwiML attributes
|
|
939
|
+
* @param {ssml_break.strength} [attributes.strength] -
|
|
940
|
+
* Set a pause based on strength
|
|
941
|
+
* @param {string} [attributes.time] -
|
|
942
|
+
* Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
|
|
943
|
+
*
|
|
944
|
+
* @returns SsmlBreak
|
|
945
|
+
*/
|
|
946
|
+
/* jshint ignore:end */
|
|
947
|
+
Say.prototype.ssmlBreak = function ssmlBreak(attributes) {
|
|
948
|
+
return new SsmlBreak(this.say.ele('break', attributes));
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
/* jshint ignore:start */
|
|
952
|
+
/**
|
|
953
|
+
* Emphasizing Words in <Say>
|
|
954
|
+
*
|
|
955
|
+
* @param {object} attributes - TwiML attributes
|
|
956
|
+
* @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis
|
|
957
|
+
* @param {string} words - Words to emphasize
|
|
958
|
+
*
|
|
959
|
+
* @returns SsmlEmphasis
|
|
960
|
+
*/
|
|
961
|
+
/* jshint ignore:end */
|
|
962
|
+
Say.prototype.ssmlEmphasis = function ssmlEmphasis(attributes, words) {
|
|
963
|
+
return new SsmlEmphasis(this.say.ele('emphasis', attributes, words));
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
/* jshint ignore:start */
|
|
967
|
+
/**
|
|
968
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
969
|
+
*
|
|
970
|
+
* @param {object} attributes - TwiML attributes
|
|
971
|
+
* @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language
|
|
972
|
+
* @param {string} words - Words to speak
|
|
973
|
+
*
|
|
974
|
+
* @returns SsmlLang
|
|
975
|
+
*/
|
|
976
|
+
/* jshint ignore:end */
|
|
977
|
+
Say.prototype.ssmlLang = function ssmlLang(attributes, words) {
|
|
978
|
+
return new SsmlLang(this.say.ele('lang', attributes, words));
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
/* jshint ignore:start */
|
|
982
|
+
/**
|
|
983
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
984
|
+
*
|
|
985
|
+
* @param {object} attributes - TwiML attributes
|
|
986
|
+
* @param {string} words - Words to speak
|
|
987
|
+
*
|
|
988
|
+
* @returns SsmlP
|
|
989
|
+
*/
|
|
990
|
+
/* jshint ignore:end */
|
|
991
|
+
Say.prototype.ssmlP = function ssmlP(attributes, words) {
|
|
992
|
+
return new SsmlP(this.say.ele('p', attributes, words));
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
/* jshint ignore:start */
|
|
996
|
+
/**
|
|
997
|
+
* Using Phonetic Pronunciation in <Say>
|
|
998
|
+
*
|
|
999
|
+
* @param {object} attributes - TwiML attributes
|
|
1000
|
+
* @param {ssml_phoneme.alphabet} [attributes.alphabet] -
|
|
1001
|
+
* Specify the phonetic alphabet
|
|
1002
|
+
* @param {string} [attributes.ph] -
|
|
1003
|
+
* Specifiy the phonetic symbols for pronunciation
|
|
1004
|
+
* @param {string} words - Words to speak
|
|
1005
|
+
*
|
|
1006
|
+
* @returns SsmlPhoneme
|
|
1007
|
+
*/
|
|
1008
|
+
/* jshint ignore:end */
|
|
1009
|
+
Say.prototype.ssmlPhoneme = function ssmlPhoneme(attributes, words) {
|
|
1010
|
+
return new SsmlPhoneme(this.say.ele('phoneme', attributes, words));
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
/* jshint ignore:start */
|
|
1014
|
+
/**
|
|
1015
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1016
|
+
*
|
|
1017
|
+
* @param {object} attributes - TwiML attributes
|
|
1018
|
+
* @param {string} [attributes.volume] -
|
|
1019
|
+
* Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
|
|
1020
|
+
* @param {string} [attributes.rate] -
|
|
1021
|
+
* Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
|
|
1022
|
+
* @param {string} [attributes.pitch] -
|
|
1023
|
+
* Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
|
|
1024
|
+
* @param {string} words - Words to speak
|
|
1025
|
+
*
|
|
1026
|
+
* @returns SsmlProsody
|
|
1027
|
+
*/
|
|
1028
|
+
/* jshint ignore:end */
|
|
1029
|
+
Say.prototype.ssmlProsody = function ssmlProsody(attributes, words) {
|
|
1030
|
+
return new SsmlProsody(this.say.ele('prosody', attributes, words));
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
/* jshint ignore:start */
|
|
1034
|
+
/**
|
|
1035
|
+
* Adding A Pause Between Sentences in <Say>
|
|
1036
|
+
*
|
|
1037
|
+
* @param {object} attributes - TwiML attributes
|
|
1038
|
+
* @param {string} words - Words to speak
|
|
1039
|
+
*
|
|
1040
|
+
* @returns SsmlS
|
|
1041
|
+
*/
|
|
1042
|
+
/* jshint ignore:end */
|
|
1043
|
+
Say.prototype.ssmlS = function ssmlS(attributes, words) {
|
|
1044
|
+
return new SsmlS(this.say.ele('s', attributes, words));
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
/* jshint ignore:start */
|
|
1048
|
+
/**
|
|
1049
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1050
|
+
*
|
|
1051
|
+
* @param {object} attributes - TwiML attributes
|
|
1052
|
+
* @param {ssml_say_as.interpret_as} [attributes.interpret-
|
|
1053
|
+
* as] - Specify the type of words are spoken
|
|
1054
|
+
* @param {ssml_say_as.role} [attributes.role] -
|
|
1055
|
+
* Specify the format of the date when interpret-as is set to date
|
|
1056
|
+
* @param {string} words - Words to be interpreted
|
|
1057
|
+
*
|
|
1058
|
+
* @returns SsmlSayAs
|
|
1059
|
+
*/
|
|
1060
|
+
/* jshint ignore:end */
|
|
1061
|
+
Say.prototype.ssmlSayAs = function ssmlSayAs(attributes, words) {
|
|
1062
|
+
return new SsmlSayAs(this.say.ele('say-as', attributes, words));
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
/* jshint ignore:start */
|
|
1066
|
+
/**
|
|
1067
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1068
|
+
*
|
|
1069
|
+
* @param {object} attributes - TwiML attributes
|
|
1070
|
+
* @param {string} [attributes.alias] -
|
|
1071
|
+
* Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
|
|
1072
|
+
* @param {string} words - Words to be substituted
|
|
1073
|
+
*
|
|
1074
|
+
* @returns SsmlSub
|
|
1075
|
+
*/
|
|
1076
|
+
/* jshint ignore:end */
|
|
1077
|
+
Say.prototype.ssmlSub = function ssmlSub(attributes, words) {
|
|
1078
|
+
return new SsmlSub(this.say.ele('sub', attributes, words));
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
/* jshint ignore:start */
|
|
1082
|
+
/**
|
|
1083
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
1084
|
+
*
|
|
1085
|
+
* @param {object} attributes - TwiML attributes
|
|
1086
|
+
* @param {string} [attributes.role] -
|
|
1087
|
+
* Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
|
|
1088
|
+
* @param {string} words - Words to speak
|
|
1089
|
+
*
|
|
1090
|
+
* @returns SsmlW
|
|
1091
|
+
*/
|
|
1092
|
+
/* jshint ignore:end */
|
|
1093
|
+
Say.prototype.ssmlW = function ssmlW(attributes, words) {
|
|
1094
|
+
return new SsmlW(this.say.ele('w', attributes, words));
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/* jshint ignore:start */
|
|
1099
|
+
/**
|
|
1100
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
1101
|
+
*
|
|
1102
|
+
* @param {object} ssmlW -
|
|
1103
|
+
* Improving Pronunciation by Specifying Parts of Speech in <Say>
|
|
1104
|
+
*/
|
|
1105
|
+
/* jshint ignore:end */
|
|
1106
|
+
function SsmlW(ssmlW) {
|
|
1107
|
+
this.ssmlW = ssmlW;
|
|
1108
|
+
this._propertyName = 'ssmlW';
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
SsmlW.prototype = Object.create(TwiML.prototype);
|
|
1112
|
+
SsmlW.prototype.constructor = SsmlW;
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/* jshint ignore:start */
|
|
1116
|
+
/**
|
|
1117
|
+
* Pronouncing Acronyms and Abbreviations in <Say>
|
|
1118
|
+
*
|
|
1119
|
+
* @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in <Say>
|
|
1120
|
+
*/
|
|
1121
|
+
/* jshint ignore:end */
|
|
1122
|
+
function SsmlSub(ssmlSub) {
|
|
1123
|
+
this.ssmlSub = ssmlSub;
|
|
1124
|
+
this._propertyName = 'ssmlSub';
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
SsmlSub.prototype = Object.create(TwiML.prototype);
|
|
1128
|
+
SsmlSub.prototype.constructor = SsmlSub;
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
/* jshint ignore:start */
|
|
1132
|
+
/**
|
|
1133
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1134
|
+
*
|
|
1135
|
+
* @param {object} ssmlSayAs -
|
|
1136
|
+
* Controlling How Special Types of Words Are Spoken in <Say>
|
|
1137
|
+
*/
|
|
1138
|
+
/* jshint ignore:end */
|
|
1139
|
+
function SsmlSayAs(ssmlSayAs) {
|
|
1140
|
+
this.ssmlSayAs = ssmlSayAs;
|
|
1141
|
+
this._propertyName = 'ssmlSayAs';
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
SsmlSayAs.prototype = Object.create(TwiML.prototype);
|
|
1145
|
+
SsmlSayAs.prototype.constructor = SsmlSayAs;
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
/* jshint ignore:start */
|
|
1149
|
+
/**
|
|
1150
|
+
* Adding A Pause Between Sentences in <Say>
|
|
1151
|
+
*
|
|
1152
|
+
* @param {object} ssmlS - Adding A Pause Between Sentences in <Say>
|
|
1153
|
+
*/
|
|
1154
|
+
/* jshint ignore:end */
|
|
1155
|
+
function SsmlS(ssmlS) {
|
|
1156
|
+
this.ssmlS = ssmlS;
|
|
1157
|
+
this._propertyName = 'ssmlS';
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
SsmlS.prototype = Object.create(TwiML.prototype);
|
|
1161
|
+
SsmlS.prototype.constructor = SsmlS;
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
/* jshint ignore:start */
|
|
1165
|
+
/**
|
|
1166
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1167
|
+
*
|
|
1168
|
+
* @param {object} ssmlProsody -
|
|
1169
|
+
* Controling Volume, Speaking Rate, and Pitch in <Say>
|
|
1170
|
+
*/
|
|
1171
|
+
/* jshint ignore:end */
|
|
1172
|
+
function SsmlProsody(ssmlProsody) {
|
|
1173
|
+
this.ssmlProsody = ssmlProsody;
|
|
1174
|
+
this._propertyName = 'ssmlProsody';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
SsmlProsody.prototype = Object.create(TwiML.prototype);
|
|
1178
|
+
SsmlProsody.prototype.constructor = SsmlProsody;
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
/* jshint ignore:start */
|
|
1182
|
+
/**
|
|
1183
|
+
* Using Phonetic Pronunciation in <Say>
|
|
1184
|
+
*
|
|
1185
|
+
* @param {object} ssmlPhoneme - Using Phonetic Pronunciation in <Say>
|
|
1186
|
+
*/
|
|
1187
|
+
/* jshint ignore:end */
|
|
1188
|
+
function SsmlPhoneme(ssmlPhoneme) {
|
|
1189
|
+
this.ssmlPhoneme = ssmlPhoneme;
|
|
1190
|
+
this._propertyName = 'ssmlPhoneme';
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
SsmlPhoneme.prototype = Object.create(TwiML.prototype);
|
|
1194
|
+
SsmlPhoneme.prototype.constructor = SsmlPhoneme;
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
/* jshint ignore:start */
|
|
1198
|
+
/**
|
|
1199
|
+
* Adding a Pause Between Paragraphs in <Say>
|
|
1200
|
+
*
|
|
1201
|
+
* @param {object} ssmlP - Adding a Pause Between Paragraphs in <Say>
|
|
1202
|
+
*/
|
|
1203
|
+
/* jshint ignore:end */
|
|
1204
|
+
function SsmlP(ssmlP) {
|
|
1205
|
+
this.ssmlP = ssmlP;
|
|
1206
|
+
this._propertyName = 'ssmlP';
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
SsmlP.prototype = Object.create(TwiML.prototype);
|
|
1210
|
+
SsmlP.prototype.constructor = SsmlP;
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
/* jshint ignore:start */
|
|
1214
|
+
/**
|
|
1215
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
1216
|
+
*
|
|
1217
|
+
* @param {object} ssmlLang -
|
|
1218
|
+
* Specifying Another Language for Specific Words in <Say>
|
|
1219
|
+
*/
|
|
1220
|
+
/* jshint ignore:end */
|
|
1221
|
+
function SsmlLang(ssmlLang) {
|
|
1222
|
+
this.ssmlLang = ssmlLang;
|
|
1223
|
+
this._propertyName = 'ssmlLang';
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
SsmlLang.prototype = Object.create(TwiML.prototype);
|
|
1227
|
+
SsmlLang.prototype.constructor = SsmlLang;
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
/* jshint ignore:start */
|
|
1231
|
+
/**
|
|
1232
|
+
* Emphasizing Words in <Say>
|
|
1233
|
+
*
|
|
1234
|
+
* @param {object} ssmlEmphasis - Emphasizing Words in <Say>
|
|
1235
|
+
*/
|
|
1236
|
+
/* jshint ignore:end */
|
|
1237
|
+
function SsmlEmphasis(ssmlEmphasis) {
|
|
1238
|
+
this.ssmlEmphasis = ssmlEmphasis;
|
|
1239
|
+
this._propertyName = 'ssmlEmphasis';
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
SsmlEmphasis.prototype = Object.create(TwiML.prototype);
|
|
1243
|
+
SsmlEmphasis.prototype.constructor = SsmlEmphasis;
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/* jshint ignore:start */
|
|
1247
|
+
/**
|
|
1248
|
+
* Adding a Pause in <Say>
|
|
1249
|
+
*
|
|
1250
|
+
* @param {object} ssmlBreak - Adding a Pause in <Say>
|
|
1251
|
+
*/
|
|
1252
|
+
/* jshint ignore:end */
|
|
1253
|
+
function SsmlBreak(ssmlBreak) {
|
|
1254
|
+
this.ssmlBreak = ssmlBreak;
|
|
1255
|
+
this._propertyName = 'ssmlBreak';
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
SsmlBreak.prototype = Object.create(TwiML.prototype);
|
|
1259
|
+
SsmlBreak.prototype.constructor = SsmlBreak;
|
|
1260
|
+
|
|
301
1261
|
|
|
302
1262
|
/* jshint ignore:start */
|
|
303
1263
|
/**
|