bool | IsReadyForInput[Get] Callback when the server is ready to upload audio |
Action | OnReadyForInput ( ) Callback action when ready for input is toggled on |
WitWebSocketSpeechRequest ( string endpoint, Dictionary< string, string > parameters, string requestId ) Constructor for request that posts binary audio data | |
override void | HandleUpload ( UploadChunkDelegate uploadChunk ) Called once from the main thread to begin the upload process. Sends a single post chunk. |
override void | Called multiple times as partial responses are received. Determines if ready for input and if so, performs the appropriate callback following the application of data. |
void | Public method for sending binary audio data |
void | CloseAudioStream ( ) Stop sending audio data |
override void | HandleComplete ( ) Remove upload handler on completion |
bool Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.IsReadyForInput |
---|
Callback when the server is ready to upload audio |
Action Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.OnReadyForInput ( ) |
---|
Callback action when ready for input is toggled on |
Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.WitWebSocketSpeechRequest ( string endpoint, Dictionary< string, string > parameters, string requestId ) |
---|
Constructor for request that posts binary audio data Parameters endpoint The endpoint to be used for the request parametersAll additional data required for the request requestIdA unique id to be used for the request |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.HandleUpload ( UploadChunkDelegate uploadChunk ) |
---|
Called once from the main thread to begin the upload process. Sends a single post chunk. Parameters uploadChunk The method to be called as each json and/or binary chunk is ready to be uploaded |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.HandleDownload ( WitResponseNode jsonData, byte [] binaryData ) |
---|
Called multiple times as partial responses are received. Determines if ready for input and if so, performs the appropriate callback following the application of data. Parameters jsonData Decoded json data object. binaryDataDecoded binary data chunk which should be null or empty. |
void Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.SendAudioData ( byte [] buffer, int offset, int length ) |
---|
Public method for sending binary audio data Parameters buffer The buffer used for uploading data offsetThe starting offset of the buffer selection lengthThe length of the buffer to be used |
void Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.CloseAudioStream ( ) |
---|
Stop sending audio data |
override void Meta.Voice.Net.WebSockets.Requests.WitWebSocketSpeechRequest.HandleComplete ( ) |
---|
Remove upload handler on completion |