Skip to content

Commit 877a01d

Browse files
committed
Init.
1 parent d339c9b commit 877a01d

8 files changed

+573
-0
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-10-22 Version: 1.0.0
2+
- Init.
3+
14
2024-10-17 Version: 3.14.11
25
- 基于转移码的转出接口
36
- SaveSingleTaskForTransferOutByAuthorizationCode
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.EduInterpreting;
26+
using Aliyun.Acs.EduInterpreting.Transform;
27+
using Aliyun.Acs.EduInterpreting.Transform.V20240828;
28+
29+
namespace Aliyun.Acs.EduInterpreting.Model.V20240828
30+
{
31+
public class RecognizeAudioRequest : RpcAcsRequest<RecognizeAudioResponse>
32+
{
33+
public RecognizeAudioRequest()
34+
: base("EduInterpreting", "2024-08-28", "RecognizeAudio")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string outerBizId;
41+
42+
private bool? enableCallBack;
43+
44+
private string callbackUrl;
45+
46+
private string audioFileUrl;
47+
48+
public string OuterBizId
49+
{
50+
get
51+
{
52+
return outerBizId;
53+
}
54+
set
55+
{
56+
outerBizId = value;
57+
DictionaryUtil.Add(BodyParameters, "OuterBizId", value);
58+
}
59+
}
60+
61+
public bool? EnableCallBack
62+
{
63+
get
64+
{
65+
return enableCallBack;
66+
}
67+
set
68+
{
69+
enableCallBack = value;
70+
DictionaryUtil.Add(QueryParameters, "EnableCallBack", value.ToString());
71+
}
72+
}
73+
74+
public string CallbackUrl
75+
{
76+
get
77+
{
78+
return callbackUrl;
79+
}
80+
set
81+
{
82+
callbackUrl = value;
83+
DictionaryUtil.Add(BodyParameters, "CallbackUrl", value);
84+
}
85+
}
86+
87+
public string AudioFileUrl
88+
{
89+
get
90+
{
91+
return audioFileUrl;
92+
}
93+
set
94+
{
95+
audioFileUrl = value;
96+
DictionaryUtil.Add(BodyParameters, "AudioFileUrl", value);
97+
}
98+
}
99+
100+
public override bool CheckShowJsonItemName()
101+
{
102+
return false;
103+
}
104+
105+
public override RecognizeAudioResponse GetResponse(UnmarshallerContext unmarshallerContext)
106+
{
107+
return RecognizeAudioResponseUnmarshaller.Unmarshall(unmarshallerContext);
108+
}
109+
}
110+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.EduInterpreting.Model.V20240828
24+
{
25+
public class RecognizeAudioResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string taskId;
31+
32+
private List<RecognizeAudio_ItemListItem> itemList;
33+
34+
public string RequestId
35+
{
36+
get
37+
{
38+
return requestId;
39+
}
40+
set
41+
{
42+
requestId = value;
43+
}
44+
}
45+
46+
public string TaskId
47+
{
48+
get
49+
{
50+
return taskId;
51+
}
52+
set
53+
{
54+
taskId = value;
55+
}
56+
}
57+
58+
public List<RecognizeAudio_ItemListItem> ItemList
59+
{
60+
get
61+
{
62+
return itemList;
63+
}
64+
set
65+
{
66+
itemList = value;
67+
}
68+
}
69+
70+
public class RecognizeAudio_ItemListItem
71+
{
72+
73+
private string beginTime;
74+
75+
private string endTime;
76+
77+
private string text;
78+
79+
public string BeginTime
80+
{
81+
get
82+
{
83+
return beginTime;
84+
}
85+
set
86+
{
87+
beginTime = value;
88+
}
89+
}
90+
91+
public string EndTime
92+
{
93+
get
94+
{
95+
return endTime;
96+
}
97+
set
98+
{
99+
endTime = value;
100+
}
101+
}
102+
103+
public string Text
104+
{
105+
get
106+
{
107+
return text;
108+
}
109+
set
110+
{
111+
text = value;
112+
}
113+
}
114+
}
115+
}
116+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.EduInterpreting;
26+
using Aliyun.Acs.EduInterpreting.Transform;
27+
using Aliyun.Acs.EduInterpreting.Transform.V20240828;
28+
29+
namespace Aliyun.Acs.EduInterpreting.Model.V20240828
30+
{
31+
public class SubmitEvaluationTaskRequest : RpcAcsRequest<SubmitEvaluationTaskResponse>
32+
{
33+
public SubmitEvaluationTaskRequest()
34+
: base("EduInterpreting", "2024-08-28", "SubmitEvaluationTask")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string materialText;
41+
42+
private string suggestedAnswer;
43+
44+
private string outerBizId;
45+
46+
private string type;
47+
48+
private string audioUrl;
49+
50+
private string text;
51+
52+
private string callbackUrl;
53+
54+
public string MaterialText
55+
{
56+
get
57+
{
58+
return materialText;
59+
}
60+
set
61+
{
62+
materialText = value;
63+
DictionaryUtil.Add(BodyParameters, "MaterialText", value);
64+
}
65+
}
66+
67+
public string SuggestedAnswer
68+
{
69+
get
70+
{
71+
return suggestedAnswer;
72+
}
73+
set
74+
{
75+
suggestedAnswer = value;
76+
DictionaryUtil.Add(BodyParameters, "SuggestedAnswer", value);
77+
}
78+
}
79+
80+
public string OuterBizId
81+
{
82+
get
83+
{
84+
return outerBizId;
85+
}
86+
set
87+
{
88+
outerBizId = value;
89+
DictionaryUtil.Add(BodyParameters, "OuterBizId", value);
90+
}
91+
}
92+
93+
public string Type
94+
{
95+
get
96+
{
97+
return type;
98+
}
99+
set
100+
{
101+
type = value;
102+
DictionaryUtil.Add(BodyParameters, "Type", value);
103+
}
104+
}
105+
106+
public string AudioUrl
107+
{
108+
get
109+
{
110+
return audioUrl;
111+
}
112+
set
113+
{
114+
audioUrl = value;
115+
DictionaryUtil.Add(BodyParameters, "AudioUrl", value);
116+
}
117+
}
118+
119+
public string Text
120+
{
121+
get
122+
{
123+
return text;
124+
}
125+
set
126+
{
127+
text = value;
128+
DictionaryUtil.Add(BodyParameters, "Text", value);
129+
}
130+
}
131+
132+
public string CallbackUrl
133+
{
134+
get
135+
{
136+
return callbackUrl;
137+
}
138+
set
139+
{
140+
callbackUrl = value;
141+
DictionaryUtil.Add(BodyParameters, "CallbackUrl", value);
142+
}
143+
}
144+
145+
public override bool CheckShowJsonItemName()
146+
{
147+
return false;
148+
}
149+
150+
public override SubmitEvaluationTaskResponse GetResponse(UnmarshallerContext unmarshallerContext)
151+
{
152+
return SubmitEvaluationTaskResponseUnmarshaller.Unmarshall(unmarshallerContext);
153+
}
154+
}
155+
}

0 commit comments

Comments
 (0)