HTTP Commands for Controlling Livestreaming
Virtual avatar livestreaming can be taken over by humans through the HTTP API. After the takeover by humans, virtual avatars can speak through:
- Text control: The corresponding command is INSERT_PLAY_SCRIPT, and the params structure is PlayTextInfo.
- Audio control: The corresponding command is INSERT_PLAY_AUDIO, and the params structure is PlayTextInfo.
When the command of the API for controlling virtual human livestreaming is GET_CURRENT_PLAYING_SCRIPTS, the response structure is LivePlayingScriptList.
PlayTextInfo
Parameter |
Mandatory (Yes/No) |
Type |
Description |
---|---|---|---|
text_config |
No |
Table 2 object |
Script configuration. |
play_type |
No |
String |
Playback mode. The options are as follows:
Default value: PLAY_NOW The value contains 0 to 32 characters. |
play_role |
No |
String |
Playback role. The options are as follows:
Default value: STREAMER The value contains 0 to 32 characters. |
rule_index |
No |
String |
When the interaction callback triggers the insertion of an audio reply, the index of the triggered interaction rule is carried. The value contains 0 to 64 characters. |
PlayAudioInfo
Parameter |
Mandatory (Yes/No) |
Type |
Description |
---|---|---|---|
audio_url |
No |
String |
Audio URL. The value contains 0 to 2,048 characters. |
play_type |
No |
String |
Playback mode. The options are as follows:
Default value: APPEND The value contains 0 to 32 characters. |
play_role |
No |
String |
Playback role. The options are as follows:
Default value: STREAMER The value contains 0 to 32 characters. |
rule_index |
No |
String |
When the interaction callback triggers the insertion of an audio reply, the index of the triggered interaction rule is carried. The value contains 0 to 64 characters. |
LivePlayingScriptList
Parameter |
Mandatory (Yes/No) |
Type |
Description |
---|---|---|---|
scene_scripts |
No |
Array of Table 5 |
Scripts. Array length: 1–100 |
Parameter |
Mandatory (Yes/No) |
Type |
Description |
---|---|---|---|
script_name |
No |
String |
Script name. The value contains 1 to 256 characters. |
model_asset_id |
No |
String |
Virtual human model asset ID. The value contains 0 to 64 characters. |
shoot_scripts |
No |
Array of Table 6 |
Video shooting scripts. Array length: 0–100 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot