|
ChannelResourceVoiceResource Property |
The
Voice Resource associated with this channel. Use this for audio functions like play, record and getting digits.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public VoiceResource VoiceResource { get; set; }
Public Property VoiceResource As VoiceResource
Get
Set
public:
property VoiceResource^ VoiceResource {
VoiceResource^ get ();
void set (VoiceResource^ value);
}
member VoiceResource : VoiceResource with get, set
Property Value
Type:
VoiceResourceRemarks
Every Channel Resource is accompanied by a
Voice Resource through which many of the most common voice functions are executed. By
accessing this object, you can do the following and more:
Examples
The code snippets below illustrate basic and trimmed down executions of the common uses in the lists above.
public void ExecuteChannelMethods()
{
TelephonyServer m_TelephonyServer = new TelephonyServer();
ChannelResource m_ChannelResource = m_TelephonyServer.GetChannel();
string phoneNumber = "2135551212";
m_ChannelResource.Dial(phoneNumber);
m_ChannelResource.VoiceResource.Play(@"C:\Audio\Sample.wav");
TerminationCode terminationCode = m_ChannelResource.VoiceResource.GetDigits();
string m_Digits = m_ChannelResource.VoiceResource.DigitBuffer;
m_ChannelResource.VoiceResource.PlayTTS("Hello, this is your application speaking. Please say whatever you like.");
m_ChannelResource.VoiceResource.Record(@"C:\Audio\RecordedCall.wav");
}
Public Sub ExecuteChannelMethods()
Dim m_TelephonyServer As New TelephonyServer()
Dim m_ChannelResource As ChannelResource = m_TelephonyServer.GetChannel()
Dim phoneNumber As String = "2135551212"
m_ChannelResource.Dial(phoneNumber)
m_ChannelResource.VoiceResource.Play("C:\Audio\Sample.wav")
Dim terminationCode As TerminationCode = m_ChannelResource.VoiceResource.GetDigits()
Dim m_Digits As String = m_ChannelResource.VoiceResource.DigitBuffer
m_ChannelResource.VoiceResource.PlayTTS("Hello, this is your application speaking. Please say whatever you like.")
m_ChannelResource.VoiceResource.Record("C:\Audio\RecordedCall.wav")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also