Canvas_x:
Dictionary data = new Dictionary();
data.Add("format", speechData.format);
data.Add("rate", speechData.rate);
data.Add("channel", speechData.channel);
data.Add("cuid", speechData.cuid);
data.Add("token", speechData.token);
data.Add("speech", speechData.speech);
string jsonDataPost = Json.Serialize(data);
Dictionary headers = new Dictionary();
headers.Add("Content-Type", "application/json");
byte[] body = System.Text.Encoding.UTF8.GetBytes(jsonDataPost);
WWW www = new WWW(speechUrl, body, headers);
yield return www;
Debug.Log(www.text);
返回值:{"err_msg":"parameters error.","err_no":3300,"sn":"858369483971459387237"}