protocol.txt

来自「这是java 开发的的免费语音播放插件,很值得学习参考!!!!!!!!!!!!1」· 文本 代码 · 共 35 行

TXT
35
字号
# Copyright 2001 Sun Microsystems, Inc.# All Rights Reserved.  Use is subject to license terms.# # See the file "license.terms" for information on usage and# redistribution of this file, and for a DISCLAIMER OF ALL # WARRANTIES.#The protocol between client and server for the Client/Server demo isas follows:Client                              Server------                              ------1.                                  Waiting for connection.2. Opens socket connection   to Server.3.                                  Accepts connection request.4.                           <---   Send "READY\n" string.5. Send "TTS\n" string.      --->6. Send "<sample rate>\n".   --->7. Send "<text>\n".          --->8.                                  Perform TTS.9.                           <---   Send "<number of bytes in sample>\n".10.                          <---   Send sample bytes.11.                          <---   Send "-1\n" for "no more data".                                    Or send "-2\n" for error.12. For more TTS, do back to    step 5.13. Send "DONE\n" string.    --->14. Closes the socket connection.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?