Skip to content

Instantly share code, notes, and snippets.

@teddy1004
Created March 4, 2016 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teddy1004/9c11ffbb26ab7ebbb39d to your computer and use it in GitHub Desktop.
Save teddy1004/9c11ffbb26ab7ebbb39d to your computer and use it in GitHub Desktop.
scorer
# 需求说明
# 后端调用打分服务,在 Rails app 中和打分服务建立一个 WebSocket 连接
# 传输音频流数据到打分服务中
# 打分服务完成打分后会通过 WebSocket 传回打分数据
# 将拿到的打分数据返回到具体业务中
class Scorer
WS_URL = "ws://localhost:8081".freeze
# 实现打分的功能
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment