Created
March 4, 2016 06:14
-
-
Save teddy1004/9c11ffbb26ab7ebbb39d to your computer and use it in GitHub Desktop.
scorer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 需求说明 | |
# 后端调用打分服务,在 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