@tencent-rtc/mcp 1.2.9 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/resource/doc/chatuikit/faq/common/server.md +44 -0
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +57 -0
- package/resource/doc/chatuikit/react/integration.md +430 -49
- package/resource/doc/chatuikit/react/workflow.md +258 -0
- package/resource/doc/chatuikit/vue/integration.md +355 -144
- package/resource/doc/chatuikit/vue/workflow.md +395 -0
- package/resource/doc/livekit/vue/components/co-guest-panel.md +3 -3
- package/resource/doc/livekit/vue/components/live-view.md +4 -4
- package/resource/doc/livekit/vue/{components/live-list.md → live-list-integration.md} +7 -7
- package/resource/doc/livekit/vue/{components/live-player.md → live-player-desk-integration.md} +8 -8
- package/resource/doc/livekit/vue/live-player-h5-integration.md +269 -0
- package/resource/doc/livekit/vue/workflow.md +218 -0
- package/resource/doc/trtc/C++/ITRTCCloud.md +4119 -0
- package/resource/doc/trtc/C++/ITRTCStatistics.md +325 -0
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/C++/ITXDeviceManager.md +1028 -0
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +2650 -0
- package/resource/doc/trtc/C++/TRTCTypeDef.md +3600 -0
- package/resource/doc/trtc/C++/TXLiteAVCode.md +921 -0
- package/resource/doc/trtc/android/TRTCCloud.md +3782 -0
- package/resource/doc/trtc/android/TRTCCloudDef.md +3880 -0
- package/resource/doc/trtc/android/TRTCCloudListener.md +2431 -0
- package/resource/doc/trtc/android/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/android/TXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/android/TXBeautyManager.md +979 -0
- package/resource/doc/trtc/android/TXDeviceManager.md +440 -0
- package/resource/doc/trtc/android/TXLiteAVCode.md +905 -0
- package/resource/doc/trtc/iOS/TRTCCloud.md +4238 -0
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +3730 -0
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +2531 -0
- package/resource/doc/trtc/iOS/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +1100 -0
- package/resource/doc/trtc/iOS/TXBeautyManager.md +985 -0
- package/resource/doc/trtc/iOS/TXDeviceManager.md +1024 -0
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +928 -0
- package/tools/chat/get-web-chat-integration.js +31 -14
- package/tools/chat/get-web-chat-integration.js.map +1 -1
- package/tools/definitions/get_faq_def.js +4 -0
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_live_api_def.js +1 -1
- package/tools/definitions/get_trtc_native_api_def.js +16 -0
- package/tools/definitions/get_trtc_native_api_def.js.map +1 -0
- package/tools/definitions/get_web_chat_uikit_integration_def.js +19 -12
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +13 -8
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +32 -0
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -0
- package/tools/index.js +6 -4
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-uikit-integration.js +52 -0
- package/tools/live/get-web-live-uikit-integration.js.map +1 -0
- package/tools/trtc/get-trtc-native-api.js +31 -0
- package/tools/trtc/get-trtc-native-api.js.map +1 -0
- package/utils/generate-structured-result.js +34 -0
- package/utils/generate-structured-result.js.map +1 -0
- package/utils/handle-component-name.js +0 -8
- package/utils/handle-component-name.js.map +1 -1
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/react/chat_window_integration.md +0 -94
- package/resource/doc/chatuikit/vue/chat_window_integration.md +0 -156
- package/tools/chat/get-web-chat-window-integration.js +0 -28
- package/tools/chat/get-web-chat-window-integration.js.map +0 -1
- package/tools/definitions/get_web_chat_window_integration_def.js +0 -26
- package/tools/definitions/get_web_chat_window_integration_def.js.map +0 -1
- /package/resource/doc/livekit/vue/{components/broadcast.md → live-pusher-integration.md} +0 -0
|
@@ -0,0 +1,1100 @@
|
|
|
1
|
+
# TRTC Real-Time Communication (TRTC SDK) Documentation
|
|
2
|
+
## Feature Overview
|
|
3
|
+
`TXAudioEffectManager.h` is the manager class for handling background music, sound effects, and vocal effects on the TRTC Real-Time Communication (TRTC SDK) iOS platform. Use this class to configure and control background music, sound effects, and vocal processing features.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## TXAudioEffectManager
|
|
7
|
+
<table>
|
|
8
|
+
<tr>
|
|
9
|
+
<td rowspan="1" colSpan="1" >Function List</td>
|
|
10
|
+
|
|
11
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
12
|
+
</tr>
|
|
13
|
+
|
|
14
|
+
<tr>
|
|
15
|
+
<td rowspan="1" colSpan="1" >[enableVoiceEarMonitor:](https://write.woa.com/document/87029789200396288)</td>
|
|
16
|
+
|
|
17
|
+
<td rowspan="1" colSpan="1" >Enable ear return</td>
|
|
18
|
+
</tr>
|
|
19
|
+
|
|
20
|
+
<tr>
|
|
21
|
+
<td rowspan="1" colSpan="1" >[setVoiceEarMonitorVolume:](https://write.woa.com/document/87029789200396288)</td>
|
|
22
|
+
|
|
23
|
+
<td rowspan="1" colSpan="1" >Set ear return volume</td>
|
|
24
|
+
</tr>
|
|
25
|
+
|
|
26
|
+
<tr>
|
|
27
|
+
<td rowspan="1" colSpan="1" >[setVoiceReverbType:](https://write.woa.com/document/87029789200396288)</td>
|
|
28
|
+
|
|
29
|
+
<td rowspan="1" colSpan="1" >Set vocal reverb effect</td>
|
|
30
|
+
</tr>
|
|
31
|
+
|
|
32
|
+
<tr>
|
|
33
|
+
<td rowspan="1" colSpan="1" >[setVoiceChangerType:](https://write.woa.com/document/87029789200396288)</td>
|
|
34
|
+
|
|
35
|
+
<td rowspan="1" colSpan="1" >Set vocal voice changing effect</td>
|
|
36
|
+
</tr>
|
|
37
|
+
|
|
38
|
+
<tr>
|
|
39
|
+
<td rowspan="1" colSpan="1" >[setVoiceVolume:](https://write.woa.com/document/87029789200396288)</td>
|
|
40
|
+
|
|
41
|
+
<td rowspan="1" colSpan="1" >Set speech volume</td>
|
|
42
|
+
</tr>
|
|
43
|
+
|
|
44
|
+
<tr>
|
|
45
|
+
<td rowspan="1" colSpan="1" >[setVoicePitch:](https://write.woa.com/document/87029789200396288)</td>
|
|
46
|
+
|
|
47
|
+
<td rowspan="1" colSpan="1" >Set speech tone</td>
|
|
48
|
+
</tr>
|
|
49
|
+
|
|
50
|
+
<tr>
|
|
51
|
+
<td rowspan="1" colSpan="1" >[startPlayMusic:onStart:onProgress:onComplete:](https://write.woa.com/document/87029789200396288)</td>
|
|
52
|
+
|
|
53
|
+
<td rowspan="1" colSpan="1" >Start playing background music</td>
|
|
54
|
+
</tr>
|
|
55
|
+
|
|
56
|
+
<tr>
|
|
57
|
+
<td rowspan="1" colSpan="1" >[stopPlayMusic:](https://write.woa.com/document/87029789200396288)</td>
|
|
58
|
+
|
|
59
|
+
<td rowspan="1" colSpan="1" >Stop playing background music</td>
|
|
60
|
+
</tr>
|
|
61
|
+
|
|
62
|
+
<tr>
|
|
63
|
+
<td rowspan="1" colSpan="1" >[pausePlayMusic:](https://write.woa.com/document/87029789200396288)</td>
|
|
64
|
+
|
|
65
|
+
<td rowspan="1" colSpan="1" >Pause background music</td>
|
|
66
|
+
</tr>
|
|
67
|
+
|
|
68
|
+
<tr>
|
|
69
|
+
<td rowspan="1" colSpan="1" >[resumePlayMusic:](https://write.woa.com/document/87029789200396288)</td>
|
|
70
|
+
|
|
71
|
+
<td rowspan="1" colSpan="1" >Resume background music</td>
|
|
72
|
+
</tr>
|
|
73
|
+
|
|
74
|
+
<tr>
|
|
75
|
+
<td rowspan="1" colSpan="1" >[setAllMusicVolume:](https://write.woa.com/document/87029789200396288)</td>
|
|
76
|
+
|
|
77
|
+
<td rowspan="1" colSpan="1" >Set the local and remote volume of all background music</td>
|
|
78
|
+
</tr>
|
|
79
|
+
|
|
80
|
+
<tr>
|
|
81
|
+
<td rowspan="1" colSpan="1" >[setMusicPublishVolume:volume:](https://write.woa.com/document/87029789200396288)</td>
|
|
82
|
+
|
|
83
|
+
<td rowspan="1" colSpan="1" >Set the remote volume of a specific background music track</td>
|
|
84
|
+
</tr>
|
|
85
|
+
|
|
86
|
+
<tr>
|
|
87
|
+
<td rowspan="1" colSpan="1" >[setMusicPlayoutVolume:volume:](https://write.woa.com/document/87029789200396288)</td>
|
|
88
|
+
|
|
89
|
+
<td rowspan="1" colSpan="1" >Set the local volume of a specific background music track</td>
|
|
90
|
+
</tr>
|
|
91
|
+
|
|
92
|
+
<tr>
|
|
93
|
+
<td rowspan="1" colSpan="1" >[setMusicPitch:pitch:](https://write.woa.com/document/87029789200396288)</td>
|
|
94
|
+
|
|
95
|
+
<td rowspan="1" colSpan="1" >Adjust the pitch of background music</td>
|
|
96
|
+
</tr>
|
|
97
|
+
|
|
98
|
+
<tr>
|
|
99
|
+
<td rowspan="1" colSpan="1" >[setMusicSpeedRate:speedRate:](https://write.woa.com/document/87029789200396288)</td>
|
|
100
|
+
|
|
101
|
+
<td rowspan="1" colSpan="1" >Adjust the variable speed effect of background music</td>
|
|
102
|
+
</tr>
|
|
103
|
+
|
|
104
|
+
<tr>
|
|
105
|
+
<td rowspan="1" colSpan="1" >[getMusicCurrentPosInMS:](https://write.woa.com/document/87029789200396288)</td>
|
|
106
|
+
|
|
107
|
+
<td rowspan="1" colSpan="1" >Get the playback progress of background music (unit: milliseconds)</td>
|
|
108
|
+
</tr>
|
|
109
|
+
|
|
110
|
+
<tr>
|
|
111
|
+
<td rowspan="1" colSpan="1" >[getMusicDurationInMS:](https://write.woa.com/document/87029789200396288)</td>
|
|
112
|
+
|
|
113
|
+
<td rowspan="1" colSpan="1" >Get the total duration of background music (unit: milliseconds)</td>
|
|
114
|
+
</tr>
|
|
115
|
+
|
|
116
|
+
<tr>
|
|
117
|
+
<td rowspan="1" colSpan="1" >[seekMusicToPosInMS:pts:](https://write.woa.com/document/87029789200396288)</td>
|
|
118
|
+
|
|
119
|
+
<td rowspan="1" colSpan="1" >Set the playback progress of background music (unit: milliseconds)</td>
|
|
120
|
+
</tr>
|
|
121
|
+
|
|
122
|
+
<tr>
|
|
123
|
+
<td rowspan="1" colSpan="1" >[setMusicScratchSpeedRate:speedRate:](https://write.woa.com/document/87029789200396288)</td>
|
|
124
|
+
|
|
125
|
+
<td rowspan="1" colSpan="1" >Adjust the variable speed effect of scratching</td>
|
|
126
|
+
</tr>
|
|
127
|
+
|
|
128
|
+
<tr>
|
|
129
|
+
<td rowspan="1" colSpan="1" >[preloadMusic:onProgress:onError:](https://write.woa.com/document/87029789200396288)</td>
|
|
130
|
+
|
|
131
|
+
<td rowspan="1" colSpan="1" >Preload background music</td>
|
|
132
|
+
</tr>
|
|
133
|
+
|
|
134
|
+
<tr>
|
|
135
|
+
<td rowspan="1" colSpan="1" >[getMusicTrackCount:](https://write.woa.com/document/87029789200396288)</td>
|
|
136
|
+
|
|
137
|
+
<td rowspan="1" colSpan="1" >Obtain the number of background music tracks</td>
|
|
138
|
+
</tr>
|
|
139
|
+
|
|
140
|
+
<tr>
|
|
141
|
+
<td rowspan="1" colSpan="1" >[setMusicTrack:track:](https://write.woa.com/document/87029789200396288)</td>
|
|
142
|
+
|
|
143
|
+
<td rowspan="1" colSpan="1" >Specify the playback track of background music</td>
|
|
144
|
+
</tr>
|
|
145
|
+
</table>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Structural type
|
|
149
|
+
<table>
|
|
150
|
+
<tr>
|
|
151
|
+
<td rowspan="1" colSpan="1" >Function List</td>
|
|
152
|
+
|
|
153
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
154
|
+
</tr>
|
|
155
|
+
|
|
156
|
+
<tr>
|
|
157
|
+
<td rowspan="1" colSpan="1" >[TXAudioMusicParam](https://write.woa.com/document/87029789200396288)</td>
|
|
158
|
+
|
|
159
|
+
<td rowspan="1" colSpan="1" >Playback control information for background music</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</table>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## Enumeration Types
|
|
165
|
+
<table>
|
|
166
|
+
<tr>
|
|
167
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
168
|
+
|
|
169
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
170
|
+
</tr>
|
|
171
|
+
|
|
172
|
+
<tr>
|
|
173
|
+
<td rowspan="1" colSpan="1" >[TXVoiceReverbType](https://write.woa.com/document/87029789200396288)</td>
|
|
174
|
+
|
|
175
|
+
<td rowspan="1" colSpan="1" >Reverb effects</td>
|
|
176
|
+
</tr>
|
|
177
|
+
|
|
178
|
+
<tr>
|
|
179
|
+
<td rowspan="1" colSpan="1" >[TXVoiceChangeType](https://write.woa.com/document/87029789200396288)</td>
|
|
180
|
+
|
|
181
|
+
<td rowspan="1" colSpan="1" >Voice changing effects</td>
|
|
182
|
+
</tr>
|
|
183
|
+
</table>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## enableVoiceEarMonitor:
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
#### Enable ear return
|
|
191
|
+
|
|
192
|
+
After the host enables ear return, they can hear their own voice collected by the microphone in the headphones. This effect is suitable for scenarios where the host is singing.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
It should be noted that due to the high hardware latency of Bluetooth headphones, this effect cannot be enabled when the host is wearing Bluetooth headphones. Please try to prompt the host to wear wired headphones in the user interface.
|
|
197
|
+
|
|
198
|
+
Also, please note that not all mobile phones can achieve excellent ear return effects after enabling this feature. We have blocked this effect for phones with poor ear return performance.
|
|
199
|
+
<table>
|
|
200
|
+
<tr>
|
|
201
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
202
|
+
|
|
203
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
204
|
+
</tr>
|
|
205
|
+
|
|
206
|
+
<tr>
|
|
207
|
+
<td rowspan="1" colSpan="1" >enable</td>
|
|
208
|
+
|
|
209
|
+
<td rowspan="1" colSpan="1" >YES: On; NO: Off.</td>
|
|
210
|
+
</tr>
|
|
211
|
+
</table>
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
> **Note**
|
|
215
|
+
>
|
|
216
|
+
|
|
217
|
+
> This effect can only be enabled when the host is wearing headphones. Please also prompt the host to wear wired headphones.
|
|
218
|
+
>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
## setVoiceEarMonitorVolume:
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
#### Set ear return volume
|
|
226
|
+
|
|
227
|
+
Through this interface, you can set the volume of the sound in the ear return effect.
|
|
228
|
+
<table>
|
|
229
|
+
<tr>
|
|
230
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
231
|
+
|
|
232
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
233
|
+
</tr>
|
|
234
|
+
|
|
235
|
+
<tr>
|
|
236
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
237
|
+
|
|
238
|
+
<td rowspan="1" colSpan="1" >Volume. Value range: 0 - 100. Default value: 100.</td>
|
|
239
|
+
</tr>
|
|
240
|
+
</table>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
> **Note**
|
|
244
|
+
>
|
|
245
|
+
|
|
246
|
+
> If you still feel the volume is too low after setting it to 100, you can set the maximum volume to 150. However, a volume above 100 carries a risk of pop noise, so proceed with caution.
|
|
247
|
+
>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## setVoiceReverbType:
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
#### Set vocal reverb effect
|
|
255
|
+
|
|
256
|
+
Through this interface, you can set the vocal reverb effect. For specific effects, please refer to the enumeration Definition [TXVoiceReverbType](https://write.woa.com/document/87029789200396288).
|
|
257
|
+
|
|
258
|
+
> **Note**
|
|
259
|
+
>
|
|
260
|
+
|
|
261
|
+
> The set effect will automatically become invalid after leaving the room. If the corresponding effect is needed next time you enter the room, you need to call this interface to set it again.
|
|
262
|
+
>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
## setVoiceChangerType:
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
#### Set vocal voice changing effect
|
|
270
|
+
|
|
271
|
+
Through this interface, you can set the voice changing effect. For specific effects, please refer to the enumeration Definition [TXVoiceChangeType](https://write.woa.com/document/87029789200396288).
|
|
272
|
+
|
|
273
|
+
> **Note**
|
|
274
|
+
>
|
|
275
|
+
|
|
276
|
+
> The set effect will automatically become invalid after leaving the room. If the corresponding effect is needed next time you enter the room, you need to call this interface to set it again.
|
|
277
|
+
>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
## setVoiceVolume:
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
#### Set speech volume
|
|
285
|
+
|
|
286
|
+
This interface allows you to set the voice volume. It is generally used in conjunction with the music volume setting interface [setAllMusicVolume](https://write.woa.com/document/87029789200396288), to balance the respective volumes of voice and music before mixing.
|
|
287
|
+
<table>
|
|
288
|
+
<tr>
|
|
289
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
290
|
+
|
|
291
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
292
|
+
</tr>
|
|
293
|
+
|
|
294
|
+
<tr>
|
|
295
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
296
|
+
|
|
297
|
+
<td rowspan="1" colSpan="1" >Volume. Value range: 0-100. Default value: 100.</td>
|
|
298
|
+
</tr>
|
|
299
|
+
</table>
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
> **Note**
|
|
303
|
+
>
|
|
304
|
+
|
|
305
|
+
> If you still feel the volume is too low after setting it to 100, you can set the maximum volume to 150. However, a volume above 100 carries a risk of pop noise, so proceed with caution.
|
|
306
|
+
>
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
## setVoicePitch:
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
#### Set speech tone
|
|
314
|
+
|
|
315
|
+
This interface can set the voice pitch, achieving pitch change without speed variation.
|
|
316
|
+
<table>
|
|
317
|
+
<tr>
|
|
318
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
319
|
+
|
|
320
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
321
|
+
</tr>
|
|
322
|
+
|
|
323
|
+
<tr>
|
|
324
|
+
<td rowspan="1" colSpan="1" >pitch</td>
|
|
325
|
+
|
|
326
|
+
<td rowspan="1" colSpan="1" >Pitch, value range: -1.0f to 1.0f, default value: 0.0f.</td>
|
|
327
|
+
</tr>
|
|
328
|
+
</table>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## startPlayMusic:onStart:onProgress:onComplete:
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
#### Start playing background music
|
|
336
|
+
|
|
337
|
+
Each piece of music requires a specific ID. With this ID, you can control the start, stop, volume, etc., of the music.
|
|
338
|
+
<table>
|
|
339
|
+
<tr>
|
|
340
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
341
|
+
|
|
342
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
343
|
+
</tr>
|
|
344
|
+
|
|
345
|
+
<tr>
|
|
346
|
+
<td rowspan="1" colSpan="1" >completeBlock</td>
|
|
347
|
+
|
|
348
|
+
<td rowspan="1" colSpan="1" >Play end callback.</td>
|
|
349
|
+
</tr>
|
|
350
|
+
|
|
351
|
+
<tr>
|
|
352
|
+
<td rowspan="1" colSpan="1" >musicParam</td>
|
|
353
|
+
|
|
354
|
+
<td rowspan="1" colSpan="1" >Music parameters.</td>
|
|
355
|
+
</tr>
|
|
356
|
+
|
|
357
|
+
<tr>
|
|
358
|
+
<td rowspan="1" colSpan="1" >progressBlock</td>
|
|
359
|
+
|
|
360
|
+
<td rowspan="1" colSpan="1" >Playback progress callback.</td>
|
|
361
|
+
</tr>
|
|
362
|
+
|
|
363
|
+
<tr>
|
|
364
|
+
<td rowspan="1" colSpan="1" >startBlock</td>
|
|
365
|
+
|
|
366
|
+
<td rowspan="1" colSpan="1" >Playback start callback.</td>
|
|
367
|
+
</tr>
|
|
368
|
+
</table>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
> **Note**
|
|
372
|
+
>
|
|
373
|
+
|
|
374
|
+
> 1. If you need to play the same background music multiple times, do not assign a new ID each time. We recommend using the same ID.
|
|
375
|
+
>
|
|
376
|
+
|
|
377
|
+
> 2. If you want to play different pieces of music simultaneously, assign different IDs for each piece.
|
|
378
|
+
>
|
|
379
|
+
|
|
380
|
+
> 3. If you use the same ID to play different music, the SDK will stop the old music before playing the new one.
|
|
381
|
+
>
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
## stopPlayMusic:
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
#### Stop playing background music
|
|
389
|
+
<table>
|
|
390
|
+
<tr>
|
|
391
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
392
|
+
|
|
393
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
394
|
+
</tr>
|
|
395
|
+
|
|
396
|
+
<tr>
|
|
397
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
398
|
+
|
|
399
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
400
|
+
</tr>
|
|
401
|
+
</table>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
## pausePlayMusic:
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
#### Pause background music
|
|
409
|
+
<table>
|
|
410
|
+
<tr>
|
|
411
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
412
|
+
|
|
413
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
414
|
+
</tr>
|
|
415
|
+
|
|
416
|
+
<tr>
|
|
417
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
418
|
+
|
|
419
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
420
|
+
</tr>
|
|
421
|
+
</table>
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
## resumePlayMusic:
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
#### Resume background music
|
|
429
|
+
<table>
|
|
430
|
+
<tr>
|
|
431
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
432
|
+
|
|
433
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
434
|
+
</tr>
|
|
435
|
+
|
|
436
|
+
<tr>
|
|
437
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
438
|
+
|
|
439
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
440
|
+
</tr>
|
|
441
|
+
</table>
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
## setAllMusicVolume:
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
#### Set the local and remote volume of all background music
|
|
449
|
+
|
|
450
|
+
This interface allows you to set both the local and remote volume of all background music.
|
|
451
|
+
- Local Volume: The volume of background music that the host can hear locally.
|
|
452
|
+
|
|
453
|
+
- Remote Volume: The volume of background music that the audience can hear.
|
|
454
|
+
|
|
455
|
+
<table>
|
|
456
|
+
<tr>
|
|
457
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
458
|
+
|
|
459
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
460
|
+
</tr>
|
|
461
|
+
|
|
462
|
+
<tr>
|
|
463
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
464
|
+
|
|
465
|
+
<td rowspan="1" colSpan="1" >Volume range, value range is 0-100, default value: 60.</td>
|
|
466
|
+
</tr>
|
|
467
|
+
</table>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
> **Note**
|
|
471
|
+
>
|
|
472
|
+
|
|
473
|
+
> If you still feel the volume is too low after setting it to 100, you can set the maximum volume to 150. However, a volume above 100 carries a risk of pop noise, so proceed with caution.
|
|
474
|
+
>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
## setMusicPublishVolume:volume:
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
#### Set the remote volume of a specific background music track
|
|
482
|
+
|
|
483
|
+
This interface can finely control the remote volume for each background music track, which is the volume the audience can hear.
|
|
484
|
+
<table>
|
|
485
|
+
<tr>
|
|
486
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
487
|
+
|
|
488
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
489
|
+
</tr>
|
|
490
|
+
|
|
491
|
+
<tr>
|
|
492
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
493
|
+
|
|
494
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
495
|
+
</tr>
|
|
496
|
+
|
|
497
|
+
<tr>
|
|
498
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
499
|
+
|
|
500
|
+
<td rowspan="1" colSpan="1" >Volume range, value range is 0-100; default value: 60.</td>
|
|
501
|
+
</tr>
|
|
502
|
+
</table>
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
> **Note**
|
|
506
|
+
>
|
|
507
|
+
|
|
508
|
+
> If you still feel the volume is too low after setting it to 100, you can set the maximum volume to 150. However, a volume above 100 carries a risk of pop noise, so proceed with caution.
|
|
509
|
+
>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
## setMusicPlayoutVolume:volume:
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
#### Set the local volume of a specific background music track
|
|
517
|
+
|
|
518
|
+
This interface can finely control the local volume for each background music track, which is the volume the host can hear locally.
|
|
519
|
+
<table>
|
|
520
|
+
<tr>
|
|
521
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
522
|
+
|
|
523
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
524
|
+
</tr>
|
|
525
|
+
|
|
526
|
+
<tr>
|
|
527
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
528
|
+
|
|
529
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
530
|
+
</tr>
|
|
531
|
+
|
|
532
|
+
<tr>
|
|
533
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
534
|
+
|
|
535
|
+
<td rowspan="1" colSpan="1" >Volume range, value range is 0-100, default value: 60.</td>
|
|
536
|
+
</tr>
|
|
537
|
+
</table>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
> **Note**
|
|
541
|
+
>
|
|
542
|
+
|
|
543
|
+
> If you still feel the volume is too low after setting it to 100, you can set the maximum volume to 150. However, a volume above 100 carries a risk of pop noise, so proceed with caution.
|
|
544
|
+
>
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
## setMusicPitch:pitch:
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
#### Adjust the pitch of background music
|
|
552
|
+
<table>
|
|
553
|
+
<tr>
|
|
554
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
555
|
+
|
|
556
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
557
|
+
</tr>
|
|
558
|
+
|
|
559
|
+
<tr>
|
|
560
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
561
|
+
|
|
562
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
563
|
+
</tr>
|
|
564
|
+
|
|
565
|
+
<tr>
|
|
566
|
+
<td rowspan="1" colSpan="1" >pitch</td>
|
|
567
|
+
|
|
568
|
+
<td rowspan="1" colSpan="1" >Pitch, default value is 0.0f, value range is a floating point between [-1 ~ 1].</td>
|
|
569
|
+
</tr>
|
|
570
|
+
</table>
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
## setMusicSpeedRate:speedRate:
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
#### Adjust the variable speed effect of background music
|
|
578
|
+
<table>
|
|
579
|
+
<tr>
|
|
580
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
581
|
+
|
|
582
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
583
|
+
</tr>
|
|
584
|
+
|
|
585
|
+
<tr>
|
|
586
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
587
|
+
|
|
588
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
589
|
+
</tr>
|
|
590
|
+
|
|
591
|
+
<tr>
|
|
592
|
+
<td rowspan="1" colSpan="1" >speedRate</td>
|
|
593
|
+
|
|
594
|
+
<td rowspan="1" colSpan="1" >Speed, default value is 1.0f, value range is a floating point between [0.5 ~ 2].</td>
|
|
595
|
+
</tr>
|
|
596
|
+
</table>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
## getMusicCurrentPosInMS:
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
#### Get the playback progress of background music (unit: milliseconds)
|
|
604
|
+
<table>
|
|
605
|
+
<tr>
|
|
606
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
607
|
+
|
|
608
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
609
|
+
</tr>
|
|
610
|
+
|
|
611
|
+
<tr>
|
|
612
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
613
|
+
|
|
614
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
615
|
+
</tr>
|
|
616
|
+
</table>
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
#### Return value description:
|
|
620
|
+
|
|
621
|
+
On success, returns current playback time in milliseconds, on failure returns -1.
|
|
622
|
+
|
|
623
|
+
## getMusicDurationInMS:
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
#### Get the total duration of background music (unit: milliseconds)
|
|
628
|
+
<table>
|
|
629
|
+
<tr>
|
|
630
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
631
|
+
|
|
632
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
633
|
+
</tr>
|
|
634
|
+
|
|
635
|
+
<tr>
|
|
636
|
+
<td rowspan="1" colSpan="1" >path</td>
|
|
637
|
+
|
|
638
|
+
<td rowspan="1" colSpan="1" >Music file path.</td>
|
|
639
|
+
</tr>
|
|
640
|
+
</table>
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
#### Return value description:
|
|
644
|
+
|
|
645
|
+
On success, returns duration, on failure returns -1.
|
|
646
|
+
|
|
647
|
+
## seekMusicToPosInMS:pts:
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
#### Set the playback progress of background music (unit: milliseconds)
|
|
652
|
+
<table>
|
|
653
|
+
<tr>
|
|
654
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
655
|
+
|
|
656
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
657
|
+
</tr>
|
|
658
|
+
|
|
659
|
+
<tr>
|
|
660
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
661
|
+
|
|
662
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
663
|
+
</tr>
|
|
664
|
+
|
|
665
|
+
<tr>
|
|
666
|
+
<td rowspan="1" colSpan="1" >pts</td>
|
|
667
|
+
|
|
668
|
+
<td rowspan="1" colSpan="1" >Unit: milliseconds.</td>
|
|
669
|
+
</tr>
|
|
670
|
+
</table>
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
> **Note**
|
|
674
|
+
>
|
|
675
|
+
|
|
676
|
+
> Please avoid calling this interface too frequently as it may read and write music files again, which can be time-consuming.
|
|
677
|
+
>
|
|
678
|
+
|
|
679
|
+
> Therefore, when users drag the playback progress bar of the music, please call this interface after the user completes the drag operation.
|
|
680
|
+
>
|
|
681
|
+
|
|
682
|
+
> Because the progress bar control on the UI often feeds back the user's drag progress at a high frequency, it would lead to a poor user experience without frequency limitations.
|
|
683
|
+
>
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
## setMusicScratchSpeedRate:speedRate:
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
#### Adjust the variable speed effect of scratching
|
|
691
|
+
<table>
|
|
692
|
+
<tr>
|
|
693
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
694
|
+
|
|
695
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
696
|
+
</tr>
|
|
697
|
+
|
|
698
|
+
<tr>
|
|
699
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
700
|
+
|
|
701
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
702
|
+
</tr>
|
|
703
|
+
|
|
704
|
+
<tr>
|
|
705
|
+
<td rowspan="1" colSpan="1" >scratchSpeedRate</td>
|
|
706
|
+
|
|
707
|
+
<td rowspan="1" colSpan="1" >Scratching speed, the default value is 1.0f, the range is a floating point number between [-12.0 ~ 12.0], the positive/negative value represents the forward/reverse direction, and the absolute value represents the speed.</td>
|
|
708
|
+
</tr>
|
|
709
|
+
</table>
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
> **Note**
|
|
713
|
+
>
|
|
714
|
+
|
|
715
|
+
> Precondition: preloadMusic is successful.
|
|
716
|
+
>
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
## preloadMusic:onProgress:onError:
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
#### Preload background music
|
|
724
|
+
|
|
725
|
+
Each piece of music requires a specific ID. With this ID, you can control the start, stop, volume, etc., of the music.
|
|
726
|
+
<table>
|
|
727
|
+
<tr>
|
|
728
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
729
|
+
|
|
730
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
731
|
+
</tr>
|
|
732
|
+
|
|
733
|
+
<tr>
|
|
734
|
+
<td rowspan="1" colSpan="1" >preloadParam</td>
|
|
735
|
+
|
|
736
|
+
<td rowspan="1" colSpan="1" >Preload music parameters.</td>
|
|
737
|
+
</tr>
|
|
738
|
+
</table>
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
> **Note**
|
|
742
|
+
>
|
|
743
|
+
|
|
744
|
+
> 1. Preloading supports up to 2 different IDs simultaneously, and the preload duration does not exceed 10 minutes. After use, stopPlayMusic must be called to prevent memory from not being released.
|
|
745
|
+
>
|
|
746
|
+
|
|
747
|
+
> 2. If the music corresponding to this ID is playing, preloading will fail. You need to call stopPlayMusic first.
|
|
748
|
+
>
|
|
749
|
+
|
|
750
|
+
> 3. When the musicParam is exactly the same as the musicParam passed to startPlayMusic, preloading is effective.
|
|
751
|
+
>
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
## getMusicTrackCount:
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
#### Obtain the number of background music tracks
|
|
759
|
+
<table>
|
|
760
|
+
<tr>
|
|
761
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
762
|
+
|
|
763
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
764
|
+
</tr>
|
|
765
|
+
|
|
766
|
+
<tr>
|
|
767
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
768
|
+
|
|
769
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
770
|
+
</tr>
|
|
771
|
+
</table>
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
## setMusicTrack:track:
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
#### Specify the playback track of background music
|
|
779
|
+
<table>
|
|
780
|
+
<tr>
|
|
781
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
782
|
+
|
|
783
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
784
|
+
</tr>
|
|
785
|
+
|
|
786
|
+
<tr>
|
|
787
|
+
<td rowspan="1" colSpan="1" >id</td>
|
|
788
|
+
|
|
789
|
+
<td rowspan="1" colSpan="1" >Music ID.</td>
|
|
790
|
+
</tr>
|
|
791
|
+
|
|
792
|
+
<tr>
|
|
793
|
+
<td rowspan="1" colSpan="1" >index</td>
|
|
794
|
+
|
|
795
|
+
<td rowspan="1" colSpan="1" >By default, the first audio track is played. The range of values is [0, total number of tracks).</td>
|
|
796
|
+
</tr>
|
|
797
|
+
</table>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
> **Note**
|
|
801
|
+
>
|
|
802
|
+
|
|
803
|
+
> The total number of tracks can be obtained through the getMusicTrackCount interface.
|
|
804
|
+
>
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
## TXVoiceReverbType
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
#### Reverb effects
|
|
812
|
+
|
|
813
|
+
Reverb effects can be applied to vocals, using acoustic algorithms to overlap the sound and simulate various immersive experiences in different environments. Currently, the following reverb effects are supported:
|
|
814
|
+
|
|
815
|
+
0:Off; 1:KTV; 2:Small Room; 3:Hall; 4:Deep; 5:Loud; 6:Metallic; 7:Magnetic; 8:Ethereal; 9:Studio; 10:Melodious; 11:Studio2.
|
|
816
|
+
<table>
|
|
817
|
+
<tr>
|
|
818
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
819
|
+
|
|
820
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
821
|
+
|
|
822
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
823
|
+
</tr>
|
|
824
|
+
|
|
825
|
+
<tr>
|
|
826
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_0</td>
|
|
827
|
+
|
|
828
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
829
|
+
|
|
830
|
+
<td rowspan="1" colSpan="1" >Turn off effects</td>
|
|
831
|
+
</tr>
|
|
832
|
+
|
|
833
|
+
<tr>
|
|
834
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_1</td>
|
|
835
|
+
|
|
836
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
837
|
+
|
|
838
|
+
<td rowspan="1" colSpan="1" >KTV</td>
|
|
839
|
+
</tr>
|
|
840
|
+
|
|
841
|
+
<tr>
|
|
842
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_2</td>
|
|
843
|
+
|
|
844
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
845
|
+
|
|
846
|
+
<td rowspan="1" colSpan="1" >Small Room</td>
|
|
847
|
+
</tr>
|
|
848
|
+
|
|
849
|
+
<tr>
|
|
850
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_3</td>
|
|
851
|
+
|
|
852
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
853
|
+
|
|
854
|
+
<td rowspan="1" colSpan="1" >Hall</td>
|
|
855
|
+
</tr>
|
|
856
|
+
|
|
857
|
+
<tr>
|
|
858
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_4</td>
|
|
859
|
+
|
|
860
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
861
|
+
|
|
862
|
+
<td rowspan="1" colSpan="1" >Low-pitched</td>
|
|
863
|
+
</tr>
|
|
864
|
+
|
|
865
|
+
<tr>
|
|
866
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_5</td>
|
|
867
|
+
|
|
868
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
869
|
+
|
|
870
|
+
<td rowspan="1" colSpan="1" >Loud</td>
|
|
871
|
+
</tr>
|
|
872
|
+
|
|
873
|
+
<tr>
|
|
874
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_6</td>
|
|
875
|
+
|
|
876
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
877
|
+
|
|
878
|
+
<td rowspan="1" colSpan="1" >Metallic sound</td>
|
|
879
|
+
</tr>
|
|
880
|
+
|
|
881
|
+
<tr>
|
|
882
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_7</td>
|
|
883
|
+
|
|
884
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
885
|
+
|
|
886
|
+
<td rowspan="1" colSpan="1" >Magnetic</td>
|
|
887
|
+
</tr>
|
|
888
|
+
|
|
889
|
+
<tr>
|
|
890
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_8</td>
|
|
891
|
+
|
|
892
|
+
<td rowspan="1" colSpan="1" >8</td>
|
|
893
|
+
|
|
894
|
+
<td rowspan="1" colSpan="1" >Ethereal voice</td>
|
|
895
|
+
</tr>
|
|
896
|
+
|
|
897
|
+
<tr>
|
|
898
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_9</td>
|
|
899
|
+
|
|
900
|
+
<td rowspan="1" colSpan="1" >9</td>
|
|
901
|
+
|
|
902
|
+
<td rowspan="1" colSpan="1" >Recording studio</td>
|
|
903
|
+
</tr>
|
|
904
|
+
|
|
905
|
+
<tr>
|
|
906
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_10</td>
|
|
907
|
+
|
|
908
|
+
<td rowspan="1" colSpan="1" >10</td>
|
|
909
|
+
|
|
910
|
+
<td rowspan="1" colSpan="1" >Melodious</td>
|
|
911
|
+
</tr>
|
|
912
|
+
|
|
913
|
+
<tr>
|
|
914
|
+
<td rowspan="1" colSpan="1" >TXVoiceReverbType_11</td>
|
|
915
|
+
|
|
916
|
+
<td rowspan="1" colSpan="1" >11</td>
|
|
917
|
+
|
|
918
|
+
<td rowspan="1" colSpan="1" >Recording studio 2</td>
|
|
919
|
+
</tr>
|
|
920
|
+
</table>
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
## TXVoiceChangeType
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
#### Voice changing effects
|
|
928
|
+
|
|
929
|
+
Voice changing effect can be applied to vocals. By using acoustic algorithms for secondary processing, the voice can acquire a different sound quality from the original. Currently, the following voice changing effects are supported:
|
|
930
|
+
|
|
931
|
+
0: Off; 1: Naughty kid; 2: Lolita; 3: Uncle; 4: Heavy metal; 5: Cold; 6: Foreign accent; 7: Trapped beast; 8: Fat nerd; 9: Strong current; 10: Heavy machinery; 11: Ethereal.
|
|
932
|
+
<table>
|
|
933
|
+
<tr>
|
|
934
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
935
|
+
|
|
936
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
937
|
+
|
|
938
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
939
|
+
</tr>
|
|
940
|
+
|
|
941
|
+
<tr>
|
|
942
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_0</td>
|
|
943
|
+
|
|
944
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
945
|
+
|
|
946
|
+
<td rowspan="1" colSpan="1" >Off</td>
|
|
947
|
+
</tr>
|
|
948
|
+
|
|
949
|
+
<tr>
|
|
950
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_1</td>
|
|
951
|
+
|
|
952
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
953
|
+
|
|
954
|
+
<td rowspan="1" colSpan="1" >Naughty kid</td>
|
|
955
|
+
</tr>
|
|
956
|
+
|
|
957
|
+
<tr>
|
|
958
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_2</td>
|
|
959
|
+
|
|
960
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
961
|
+
|
|
962
|
+
<td rowspan="1" colSpan="1" >Lolita</td>
|
|
963
|
+
</tr>
|
|
964
|
+
|
|
965
|
+
<tr>
|
|
966
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_3</td>
|
|
967
|
+
|
|
968
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
969
|
+
|
|
970
|
+
<td rowspan="1" colSpan="1" >Uncle</td>
|
|
971
|
+
</tr>
|
|
972
|
+
|
|
973
|
+
<tr>
|
|
974
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_4</td>
|
|
975
|
+
|
|
976
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
977
|
+
|
|
978
|
+
<td rowspan="1" colSpan="1" >Heavy metal</td>
|
|
979
|
+
</tr>
|
|
980
|
+
|
|
981
|
+
<tr>
|
|
982
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_5</td>
|
|
983
|
+
|
|
984
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
985
|
+
|
|
986
|
+
<td rowspan="1" colSpan="1" >Cold</td>
|
|
987
|
+
</tr>
|
|
988
|
+
|
|
989
|
+
<tr>
|
|
990
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_6</td>
|
|
991
|
+
|
|
992
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
993
|
+
|
|
994
|
+
<td rowspan="1" colSpan="1" >Foreign accent</td>
|
|
995
|
+
</tr>
|
|
996
|
+
|
|
997
|
+
<tr>
|
|
998
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_7</td>
|
|
999
|
+
|
|
1000
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
1001
|
+
|
|
1002
|
+
<td rowspan="1" colSpan="1" >Trapped beast</td>
|
|
1003
|
+
</tr>
|
|
1004
|
+
|
|
1005
|
+
<tr>
|
|
1006
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_8</td>
|
|
1007
|
+
|
|
1008
|
+
<td rowspan="1" colSpan="1" >8</td>
|
|
1009
|
+
|
|
1010
|
+
<td rowspan="1" colSpan="1" >Otaku</td>
|
|
1011
|
+
</tr>
|
|
1012
|
+
|
|
1013
|
+
<tr>
|
|
1014
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_9</td>
|
|
1015
|
+
|
|
1016
|
+
<td rowspan="1" colSpan="1" >9</td>
|
|
1017
|
+
|
|
1018
|
+
<td rowspan="1" colSpan="1" >Strong electric current</td>
|
|
1019
|
+
</tr>
|
|
1020
|
+
|
|
1021
|
+
<tr>
|
|
1022
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_10</td>
|
|
1023
|
+
|
|
1024
|
+
<td rowspan="1" colSpan="1" >10</td>
|
|
1025
|
+
|
|
1026
|
+
<td rowspan="1" colSpan="1" >Heavy Machinery</td>
|
|
1027
|
+
</tr>
|
|
1028
|
+
|
|
1029
|
+
<tr>
|
|
1030
|
+
<td rowspan="1" colSpan="1" >TXVoiceChangeType_11</td>
|
|
1031
|
+
|
|
1032
|
+
<td rowspan="1" colSpan="1" >11</td>
|
|
1033
|
+
|
|
1034
|
+
<td rowspan="1" colSpan="1" >Ethereal voice</td>
|
|
1035
|
+
</tr>
|
|
1036
|
+
</table>
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
## TXAudioMusicParam
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
#### Playback control information for background music
|
|
1044
|
+
|
|
1045
|
+
This information is used to specify background music details in the interface [startPlayMusic](https://write.woa.com/document/87029789200396288), including play ID, file path, loop count, etc.:
|
|
1046
|
+
|
|
1047
|
+
1. If you need to play the same background music multiple times, do not assign a new ID each time. We recommend using the same ID.
|
|
1048
|
+
|
|
1049
|
+
2. If you want to play different pieces of music simultaneously, assign different IDs for each piece.
|
|
1050
|
+
|
|
1051
|
+
3. If you use the same ID to play different music, the SDK will stop the old music before playing the new one.
|
|
1052
|
+
<table>
|
|
1053
|
+
<tr>
|
|
1054
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
1055
|
+
|
|
1056
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1057
|
+
</tr>
|
|
1058
|
+
|
|
1059
|
+
<tr>
|
|
1060
|
+
<td rowspan="1" colSpan="1" >ID</td>
|
|
1061
|
+
|
|
1062
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Music ID.<br>[Special Instructions] The SDK allows playing multiple music tracks simultaneously, so IDs are needed to control start, stop, volume, etc.</td>
|
|
1063
|
+
</tr>
|
|
1064
|
+
|
|
1065
|
+
<tr>
|
|
1066
|
+
<td rowspan="1" colSpan="1" >endTimeMS</td>
|
|
1067
|
+
|
|
1068
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Music play end time, in milliseconds. 0 means play until the end of the file.</td>
|
|
1069
|
+
</tr>
|
|
1070
|
+
|
|
1071
|
+
<tr>
|
|
1072
|
+
<td rowspan="1" colSpan="1" >isShortFile</td>
|
|
1073
|
+
|
|
1074
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether the played file is a short music file.<br>[Recommended Value] YES: short music file that needs to be played repeatedly; NO: normal music file. Default: NO.</td>
|
|
1075
|
+
</tr>
|
|
1076
|
+
|
|
1077
|
+
<tr>
|
|
1078
|
+
<td rowspan="1" colSpan="1" >loopCount</td>
|
|
1079
|
+
|
|
1080
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] The number of times the music loops.<br>[Recommended Value] Value range is 0 to any positive integer. Default: 0. 0 means play the music once; 1 means play the music twice; and so on.</td>
|
|
1081
|
+
</tr>
|
|
1082
|
+
|
|
1083
|
+
<tr>
|
|
1084
|
+
<td rowspan="1" colSpan="1" >path</td>
|
|
1085
|
+
|
|
1086
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] The full path or URL of the audio file. Supported audio formats include MP3, AAC, M4A, WAV.</td>
|
|
1087
|
+
</tr>
|
|
1088
|
+
|
|
1089
|
+
<tr>
|
|
1090
|
+
<td rowspan="1" colSpan="1" >publish</td>
|
|
1091
|
+
|
|
1092
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether to transmit the music to the remote end.<br>[Recommended Value] YES: The music is played locally and is also heard by remote users; NO: The host hears the music locally, but remote audience cannot. Default: NO.</td>
|
|
1093
|
+
</tr>
|
|
1094
|
+
|
|
1095
|
+
<tr>
|
|
1096
|
+
<td rowspan="1" colSpan="1" >startTimeMS</td>
|
|
1097
|
+
|
|
1098
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Music start time, in milliseconds.</td>
|
|
1099
|
+
</tr>
|
|
1100
|
+
</table>
|