ConnectionMessage Class
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.
Represents implementation-specific messages sent to and received from the speech service. For debugging only. Added in 1.10.0
public class ConnectionMessage
type ConnectionMessage = class
Public Class ConnectionMessage
- Inheritance
-
ConnectionMessage
Remarks
These messages are provided for debugging purposes and should not be used for production use cases with the Azure Cognitive Services Speech Service. Messages sent to and received from the Speech Service are subject to change without notice. This includes message contents, headers, payloads, ordering, etc.
Properties
Path |
A string that specifies the message type. |
Properties |
A collection of properties and their values defined for this ConnectionMessage. Message headers can be accessed via this collection (e.g. "Content-Type"). |
Methods
GetBinaryMessage() |
Gets the binary message payload. |
GetTextMessage() |
Gets the text message payload. Typically the text message content-type is application/json. To determine other content-types use Properties.GetProperty("Content-Type"). |
IsBinaryMessage() |
Checks to see if the ConnectionMessage is a binary message. See also GetBinaryMessage(). |
IsTextMessage() |
Checks to see if the ConnectionMessage is a text message. See also IsBinaryMessage(). |
ToString() |
Returns a string that represents the connection message. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應