File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -568,6 +568,7 @@ def recognize_using_websocket(
568568 require_relative ( "./websocket/speech_to_text_websocket_listener.rb" )
569569 headers = { }
570570 headers = conn . default_options . headers . to_hash unless conn . default_options . headers . to_hash . empty?
571+ @authenticator . authenticate ( headers )
571572 service_url = @service_url . gsub ( "https:" , "wss:" )
572573 params = {
573574 "model" => model ,
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ def test_recognize_websocket_as_chunks
189189 end
190190 thr = Thread . new { speech . start }
191191 thr . join
192+ assert ( atomic_boolean . false? )
192193 end
193194
194195 def test_recognize_websocket
@@ -206,6 +207,7 @@ def test_recognize_websocket
206207 )
207208 thr = Thread . new { speech . start }
208209 thr . join
210+ assert ( atomic_boolean . false? )
209211 end
210212
211213 def test_inactivity_timeout_using_websocket
You can’t perform that action at this time.
0 commit comments