ivr流程编辑器

IVRAudioDTMF.cs 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HySoft.IVRFlowEditor.Propretity;
  6. using HySoft.IVRFlowEditor.Model;
  7. using HySoft.IVRFlowEditor.IVRControl;
  8. namespace HySoft.IVRFlowEditor.IVRControlUtility
  9. {
  10. /// <summary>
  11. /// 放音收按键节点
  12. /// </summary>
  13. [IVRAttribute("CELL_AUDIODTMF", Model.IVRSerializerType.节点,1)]
  14. public class IVRAudioDTMF : IVRControlBase
  15. {
  16. public IVRAudioDTMF(string name)
  17. {
  18. this.Name = name;
  19. CtlProperty = new CtlIVRAudioDTMF(this);
  20. TTSSpeed = 1;
  21. TTSVolume = 1;
  22. }
  23. /// <summary>
  24. /// :放音类型,取值范围:1放音收号、2仅放音、3仅收号。
  25. /// </summary>
  26. [IVRAttribute("PlayType", Model.IVRSerializerType.元素,2)]
  27. public PlayType PlayType { get; set; }
  28. /// <summary>
  29. /// :放音内容类型,取值范围:1声音文件、2需TTS转换的字符串、 3需TTS转换的文本文件。
  30. /// </summary>
  31. [IVRAttribute("ContentType", Model.IVRSerializerType.元素,3)]
  32. public ContentType ContentType
  33. { get; set; }
  34. /// <summary>
  35. /// :放音内容,该字段可由多个变量组合而成,对于所有使用的变量均需 要在子节点Audio中列出。
  36. /// </summary>
  37. [IVRAttribute("Content", Model.IVRSerializerType.元素,4)]
  38. public string Content
  39. { get; set; }
  40. /// <summary>
  41. /// :TTS数字播报方式,取值范围:0,自动识别、1按值播报、2 按数字播报、3自动识别如果不能识别将按数字播报。
  42. /// </summary>
  43. [IVRAttribute("TTSNumMode", Model.IVRSerializerType.元素,5)]
  44. public TTSNumModeType TTSNumMode
  45. { get; set; }
  46. /// <summary>
  47. /// :TTS语速,取值1至100。
  48. /// </summary>
  49. [IVRAttribute("TTSSpeed", Model.IVRSerializerType.元素,6)]
  50. public int TTSSpeed
  51. { get; set; }
  52. /// <summary>
  53. /// :TTS音量,取值1至100。
  54. /// </summary>
  55. [IVRAttribute("TTSVolume", Model.IVRSerializerType.元素,7)]
  56. public int TTSVolume
  57. { get; set; }
  58. /// <summary>
  59. /// :TTS引擎库编号(目前未启用),默认为0。
  60. /// </summary>
  61. [IVRAttribute("TTSEngine", Model.IVRSerializerType.元素,8)]
  62. public TTSEngineType TTSEngine
  63. { get; set; }
  64. /// <summary>
  65. /// :是否允许按键打断放音,取值1允许、2不允许。
  66. /// </summary>
  67. [IVRAttribute("StopWhenDtmf", Model.IVRSerializerType.元素,9)]
  68. public bool StopWhenDtmf
  69. { get; set; }
  70. /// <summary>
  71. /// :放音收号时允许的最大按键数。
  72. /// </summary>
  73. [IVRAttribute("MaxKeyCount", Model.IVRSerializerType.元素,10)]
  74. public int MaxKeyCount
  75. { get; set; }
  76. /// <summary>
  77. /// :按键间隔,单位为秒。
  78. /// </summary>
  79. [IVRAttribute("KeyPressInterval", Model.IVRSerializerType.元素,11)]
  80. public int KeyPressInterval
  81. { get; set; }
  82. /// <summary>
  83. /// :收按键的结束键,取值‘*’、‘#’、‘0’至‘9’。
  84. /// </summary>
  85. [IVRAttribute("FinishKey", Model.IVRSerializerType.元素,12)]
  86. public FinishKeyType FinishKey
  87. { get; set; }
  88. /// <summary>
  89. /// :存储按键的变量。
  90. /// </summary>
  91. [IVRAttribute("KeyVar", Model.IVRSerializerType.元素,13)]
  92. public string KeyVar
  93. { get; set; }
  94. /// <summary>
  95. /// :挂机跳转节点位置编号(下同不再解释)。
  96. /// </summary>
  97. [IVRAttribute("HangupPos", Model.IVRSerializerType.元素,14, IsPosPoint = true)]
  98. public IVRControlBase HangupPos
  99. { get; set; }
  100. /// <summary>
  101. /// 成功跳转节点
  102. /// </summary>
  103. [IVRAttribute("SuccessPos", Model.IVRSerializerType.元素,15, IsPosPoint = true)]
  104. public IVRControlBase SuccessPos
  105. { get; set; }
  106. /// <summary>
  107. /// 失败跳转节点
  108. /// </summary>
  109. [IVRAttribute("FailPos", Model.IVRSerializerType.元素,16,IsPosPoint=true)]
  110. public IVRControlBase FailPos
  111. { get; set; }
  112. }
  113. }