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.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기