Skip to content

Commit dc402cb

Browse files
committed
refactor(SpeechToText): move authentication to WSConnector
1 parent 2f220b8 commit dc402cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Scripts/Services/SpeechToText/V1/SpeechToTextServiceExtension.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ private bool CreateListenConnector()
447447
}
448448

449449
_listenSocket = WSConnector.CreateConnector(Authenticator, "/v1/recognize", "?model=" + UnityWebRequest.EscapeURL(_recognizeModel) + parsedParams, serviceUrl);
450-
Authenticator.Authenticate(_listenSocket);
451450
Log.Debug("SpeechToText.CreateListenConnector()", "Created listen socket. Model: {0}, parsedParams: {1}", UnityWebRequest.EscapeURL(_recognizeModel), parsedParams);
452451
_listenSocket.DisableSslVerification = DisableSslVerification;
453452
if (_listenSocket == null)
@@ -560,7 +559,6 @@ private void OnListenMessage(WSConnector.Message msg)
560559
if (msg is WSConnector.TextMessage)
561560
{
562561
WSConnector.TextMessage tm = (WSConnector.TextMessage)msg;
563-
564562
IDictionary json = Json.Deserialize(tm.Text) as IDictionary;
565563
if (json != null)
566564
{

0 commit comments

Comments
 (0)