| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using HySoft.IVRFlowEditor.Propretity;
- using HySoft.IVRFlowEditor.Model;
- using HySoft.IVRFlowEditor.IVRControl;
- namespace HySoft.IVRFlowEditor.IVRControlUtility
- {
- /// <summary>
- /// 放音收按键节点
- /// </summary>
- [IVRAttribute("CELL_AUDIODTMF", Model.IVRSerializerType.节点,1)]
- public class IVRAudioDTMF : IVRControlBase
- {
- public IVRAudioDTMF(string name)
- {
- this.Name = name;
- CtlProperty = new CtlIVRAudioDTMF(this);
- TTSSpeed = 1;
- TTSVolume = 1;
- }
- /// <summary>
- /// :放音类型,取值范围:1放音收号、2仅放音、3仅收号。
- /// </summary>
- [IVRAttribute("PlayType", Model.IVRSerializerType.元素,2)]
- public PlayType PlayType { get; set; }
- /// <summary>
- /// :放音内容类型,取值范围:1声音文件、2需TTS转换的字符串、 3需TTS转换的文本文件。
- /// </summary>
- [IVRAttribute("ContentType", Model.IVRSerializerType.元素,3)]
- public ContentType ContentType
- { get; set; }
- /// <summary>
- /// :放音内容,该字段可由多个变量组合而成,对于所有使用的变量均需 要在子节点Audio中列出。
- /// </summary>
- [IVRAttribute("Content", Model.IVRSerializerType.元素,4)]
- public string Content
- { get; set; }
- /// <summary>
- /// :TTS数字播报方式,取值范围:0,自动识别、1按值播报、2 按数字播报、3自动识别如果不能识别将按数字播报。
- /// </summary>
- [IVRAttribute("TTSNumMode", Model.IVRSerializerType.元素,5)]
- public TTSNumModeType TTSNumMode
- { get; set; }
- /// <summary>
- /// :TTS语速,取值1至100。
- /// </summary>
- [IVRAttribute("TTSSpeed", Model.IVRSerializerType.元素,6)]
- public int TTSSpeed
- { get; set; }
- /// <summary>
- /// :TTS音量,取值1至100。
- /// </summary>
- [IVRAttribute("TTSVolume", Model.IVRSerializerType.元素,7)]
- public int TTSVolume
- { get; set; }
- /// <summary>
- /// :TTS引擎库编号(目前未启用),默认为0。
- /// </summary>
- [IVRAttribute("TTSEngine", Model.IVRSerializerType.元素,8)]
- public TTSEngineType TTSEngine
- { get; set; }
- /// <summary>
- /// :是否允许按键打断放音,取值1允许、2不允许。
- /// </summary>
- [IVRAttribute("StopWhenDtmf", Model.IVRSerializerType.元素,9)]
- public bool StopWhenDtmf
- { get; set; }
- /// <summary>
- /// :放音收号时允许的最大按键数。
- /// </summary>
- [IVRAttribute("MaxKeyCount", Model.IVRSerializerType.元素,10)]
- public int MaxKeyCount
- { get; set; }
- /// <summary>
- /// :按键间隔,单位为秒。
- /// </summary>
- [IVRAttribute("KeyPressInterval", Model.IVRSerializerType.元素,11)]
- public int KeyPressInterval
- { get; set; }
- /// <summary>
- /// :收按键的结束键,取值‘*’、‘#’、‘0’至‘9’。
- /// </summary>
- [IVRAttribute("FinishKey", Model.IVRSerializerType.元素,12)]
- public FinishKeyType FinishKey
- { get; set; }
- /// <summary>
- /// :存储按键的变量。
- /// </summary>
- [IVRAttribute("KeyVar", Model.IVRSerializerType.元素,13)]
- public string KeyVar
- { get; set; }
- /// <summary>
- /// :挂机跳转节点位置编号(下同不再解释)。
- /// </summary>
- [IVRAttribute("HangupPos", Model.IVRSerializerType.元素,14, IsPosPoint = true)]
- public IVRControlBase HangupPos
- { get; set; }
- /// <summary>
- /// 成功跳转节点
- /// </summary>
- [IVRAttribute("SuccessPos", Model.IVRSerializerType.元素,15, IsPosPoint = true)]
- public IVRControlBase SuccessPos
- { get; set; }
- /// <summary>
- /// 失败跳转节点
- /// </summary>
- [IVRAttribute("FailPos", Model.IVRSerializerType.元素,16,IsPosPoint=true)]
- public IVRControlBase FailPos
- { get; set; }
-
- }
-
- }
|