GithubHelp home page GithubHelp logo

Comments (11)

mamoonraja avatar mamoonraja commented on July 2, 2024

HI, thanks for opening the issue, we are looking into STT WebSocket related issues right now, and we are targeting patch fix by the end of next week.

from ruby-sdk.

germanattanasio avatar germanattanasio commented on July 2, 2024

Please provide a set of reproducible steps.

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 2, 2024

@yuyaito I am looking into WebSocket related issues, can you please provide more info on this issue as mentioned by @germanattanasio

from ruby-sdk.

yuyaito avatar yuyaito commented on July 2, 2024

Thank you for your confirmation.
Steps to reproduce as below.

  1. Modify ruby SDK as below.
    ibm_watson/websocket/speech_to_text_websocket_listener.rb l71
# before
EM.stop_event_loop
# after
EM.stop_event_loop if EM.present? && EM.connection_count <= 1

ibm_watson/websocket/speech_to_text_websocket_listener.rb l78

# before
EM&.reactor_thread&.join
# after
# EM&.reactor_thread&.join

ibm_watson/websocket/speech_to_text_websocket_listener.rb l158

# before
@bytes_sent += chunk.size
@client.send(chunk.bytes)
@client.send({ "action" => "stop" }.to_json) if final
@timer.cancel if @timer.respond_to?(:cancel) && final
# after
begin
  @bytes_sent += chunk.size
  @client.send(chunk.bytes)
  @client.send({ "action" => "stop" }.to_json) if final
  @timer.cancel if @timer.respond_to?(:cancel) && final
rescue => error
  Rails.logger.error("send_chunk_error: #{error.message}, #{error.backtrace_locations.inspect}")
  @callback.on_error(error: error)
end
  1. Open one or more websocket connection with Watson STT, and run real-time recognition several tens of minutes.

  2. (sorry don't know the cause) occured its typeerror.

from ruby-sdk.

yuyaito avatar yuyaito commented on July 2, 2024

Please answer the question about this issue.

Q1. Please tell me the progress for this issue.

Q2. Could you understand the reason of problem?

Q3. When is the release for fix this issue?

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 2, 2024

Hi @yuyaito, We are investigating issues related to STT WebSocket and we are planning to have a patch out by the end of this month, and we are tracking work here.

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 2, 2024

@yuyaito What's the reason behind modifying the SDK code as you mentioned in #50 (comment).

from ruby-sdk.

EikiWakamatsu avatar EikiWakamatsu commented on July 2, 2024

I will reply instead of Mr. yuyaito

I modified the library to allow multiple connections for Issue #39 .

#EM&.reactor_thread&.join

This error now occurs.

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 2, 2024

@EikiWakamatsu Why are you commenting the line out? Please try this example snippet.

from ruby-sdk.

EikiWakamatsu avatar EikiWakamatsu commented on July 2, 2024

@mamoonraja
When run according to the example, the connection was successful.
Thank you.

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 2, 2024

@EikiWakamatsu Thanks for the confirmation!

from ruby-sdk.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.