LiveCaptionTranslator/LiveCaptionTranslator/Models/IBMWatson/IBMWatsonSpeechToTextWebsocketService.cs
/// <summary>
/// send audio stream to Speech to text websocket and recieve Transctiot (and set property)
/// </summary>
/// <param name="bytes"></param>
/// <returns></returns>
send audio stream to Speech to text websocket and recieve Transctiot (and set property)
send audio stream to Speech to text websocket and recieve Transctiot ( and set property )
public async Task SendAudioToWatson(byte[] bytes)
        {
            await ws.SendAsync(new ArraySegment<byte>(bytes), WebSocketMessageType.Binary, true, CancellationToken.None);
            return;
        }
public async Task SendAudioToWatson ( byte [ ] bytes ) { await ws . SendAsync ( new ArraySegment < byte > ( bytes ) , WebSocketMessageType . Binary , true , CancellationToken . None ) ; return ; }
send audio stream to Speech to text websocket and recieve Transctiot (and set property)
send audio stream to Speech to text websocket and recieve Transctiot ( and set property )
None
bytes
byte[]
None