Connection.SendMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendMessageAsync(String, String) |
Sends a message to the Speech service as an asynchronous operation. Added in 1.7.0 |
SendMessageAsync(String, Byte[], UInt32) |
Sends a binary message to the speech service as an asynchronous operation. Note: This method doesn't work for the connection of SpeechSynthesizer. Added in 1.10.0 |
SendMessageAsync(String, String)
Sends a message to the Speech service as an asynchronous operation. Added in 1.7.0
public System.Threading.Tasks.Task SendMessageAsync (string path, string payload);
member this.SendMessageAsync : string * string -> System.Threading.Tasks.Task
Public Function SendMessageAsync (path As String, payload As String) As Task
Parameters
- path
- String
The path of the message.
- payload
- String
The payload of the message. This is a JSON string.
Returns
A task representing the asynchronous operation that sends the message.
Applies to
SendMessageAsync(String, Byte[], UInt32)
Sends a binary message to the speech service as an asynchronous operation. Note: This method doesn't work for the connection of SpeechSynthesizer. Added in 1.10.0
public System.Threading.Tasks.Task SendMessageAsync (string path, byte[] payload, uint size);
member this.SendMessageAsync : string * byte[] * uint32 -> System.Threading.Tasks.Task
Public Function SendMessageAsync (path As String, payload As Byte(), size As UInteger) As Task
Parameters
- path
- String
The path of the message.
- payload
- Byte[]
The binary payload of the message.
- size
- UInt32
The size of the binary payload.
Returns
A task representing the asynchronous operation that sends the message.