LiveCaptionTranslator/LiveCaptionTranslator/Models/IBMWatson/IBMWatsonSpeechToTextWebsocketService.cs
/// <summary>
/// Open and Send audiofile to Speech to text websocket and recieve Transcript(and set property)
/// </summary>
/// <param name="filePath"></param>
/// <returns></returns>
Open and Send audiofile to Speech to text websocket and recieve Transcript(and set property)
Open and Send audiofile to Speech to text websocket and recieve Transcript ( and set property )
public async Task StartAudioFileSend(string filePath)
        {
            await Task.WhenAll(SendAudioFileToWatson(filePath), HandleCallback());
            await ws.CloseAsync(WebSocketCloseStatus.NormalClosure, "Close", CancellationToken.None);
        }
public async Task StartAudioFileSend ( string filePath ) { await Task . WhenAll ( SendAudioFileToWatson ( filePath ) , HandleCallback ( ) ) ; await ws . CloseAsync ( WebSocketCloseStatus . NormalClosure , " " , CancellationToken . None ) ; }
Open and Send audiofile to Speech to text websocket and recieve Transcript(and set property)
Open and Send audiofile to Speech to text websocket and recieve Transcript ( and set property )
None
filePath
string
None