Comments (11)
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.
Please provide a set of reproducible steps.
from ruby-sdk.
@yuyaito I am looking into WebSocket related issues, can you please provide more info on this issue as mentioned by @germanattanasio
from ruby-sdk.
Thank you for your confirmation.
Steps to reproduce as below.
- 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
-
Open one or more websocket connection with Watson STT, and run real-time recognition several tens of minutes.
-
(sorry don't know the cause) occured its typeerror.
from ruby-sdk.
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.
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.
@yuyaito What's the reason behind modifying the SDK code as you mentioned in #50 (comment).
from ruby-sdk.
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.
@EikiWakamatsu Why are you commenting the line out? Please try this example snippet.
from ruby-sdk.
@mamoonraja
When run according to the example, the connection was successful.
Thank you.
from ruby-sdk.
@EikiWakamatsu Thanks for the confirmation!
from ruby-sdk.
Related Issues (18)
- Tone Analyzer: Invalid JSON input HOT 1
- Question about IAM authenticator token renewal HOT 1
- Issue with Ngrok and desactivating SSL
- Visual Recognition /classify classifier_ids should be array of strings, not string HOT 3
- Unnecessary deprecation warning for 'recognize_using_websocket' HOT 1
- IAMTokenManager leaks constants names HOT 3
- List the required dependencies along with their licenses HOT 2
- Disable Two or More Connection with Speech To Text Websocket (Real-Time) Recognition HOT 13
- Speaker labels unavailable HOT 4
- Cannot Delete Custom Words of Full-Size (Double Byte) Alphanumeric. HOT 5
- v1 Goals HOT 5
- "language_customization_id" does not work HOT 2
- Authentication fails using ibm-credentials.env file HOT 2
- Unauthorized error for NaturalLanguageUnderstandingV1 HOT 4
- Returns LoadError (cannot load such file -- ibm_watson/authenticators): HOT 11
- Speech to text not working with websockets HOT 2
- SpeechToTextV1 create_job Errno::EPIPE: Broken pipe HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-sdk.