Programmable Voice

  1. Home
  2. Docs
  3. Programmable Voice
  4. How do I
  5. Set Up Global Tones with Sample Code

Set Up Global Tones with Sample Code

How to Set Up Global Tones

A C# code sample of different Global Tones:

<setting name="GlobalTones" serializeAs="Xml">
  <value>
    <ArrayOfGlobalTone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <GlobalTone>
        <ToneId>X</ToneId>
        <Frequency1>850</Frequency1>
        <Frequency1Deviation>100</Frequency1Deviation>
        <Frequency2>0</Frequency2>
        <Frequency2Deviation>0</Frequency2Deviation>
        <OnTime>15</OnTime>
        <OnTimeDeviation>0</OnTimeDeviation>
        <OffTime>0</OffTime>
        <OffTimeDeviation>0</OffTimeDeviation>
        <Repeating>0</Repeating>
        <TrailingEdge>0</TrailingEdge>
      </GlobalTone>
      <GlobalTone>
        <ToneId>Y</ToneId>
        <Frequency1>1000</Frequency1>
        <Frequency1Deviation>100</Frequency1Deviation>
        <Frequency2>0</Frequency2>
        <Frequency2Deviation>0</Frequency2Deviation>
        <OnTime>15</OnTime>
        <OnTimeDeviation>0</OnTimeDeviation>
        <OffTime>0</OffTime>
        <OffTimeDeviation>0</OffTimeDeviation>
        <Repeating>0</Repeating>
        <TrailingEdge>0</TrailingEdge>
      </GlobalTone>
      <GlobalTone>
        <ToneId>Z</ToneId>
        <Frequency1>1400</Frequency1>
        <Frequency1Deviation>100</Frequency1Deviation>
        <Frequency2>0</Frequency2>
        <Frequency2Deviation>0</Frequency2Deviation>
        <OnTime>15</OnTime>
        <OnTimeDeviation>0</OnTimeDeviation>
        <OffTime>0</OffTime>
        <OffTimeDeviation>0</OffTimeDeviation>
        <Repeating>0</Repeating>
        <TrailingEdge>0</TrailingEdge>
      </GlobalTone>
    </ArrayOfGlobalTone>
  </value>
</setting>
Was this article helpful to you? Yes 8 No

How can we help?