tencent cloud

Tencent Cloud AI Digital Human

Product Overview
Overview
Product Features
Product Advantage
Purchase Guide
Pricing Guide
Purchase Guide
Process for Purchasing with Vouchers
Refund Instructions
Introduction of Avatar
Introduction to Image Categories
Basic Image Library
Guide on Avatar and Voice Clone
Digital Human Platform Operation Guide
Accessing Platform
Avatar Production and Asset Management
Digital Human Conversation Interaction Application and Management
Broadcast Digital Human Video Generation and Management
Operations Management and Analysis
Server API Integration
Digital Human API Access Mode Overview
Avatar aPaas API Calling Methods
Avatar Image Customization and Voice Clone API Documentation
Video Generation Service API Documentation
Interactive Digital Human Service API Documentation
Personal Asset Management API Documentation
Client SDK Integration
Overall Introduction
3D Client-Side Rendering SDK Integration
2D Client-Side Rendering SDK Integration
Digital Human SSML Markup Language Specification
Related Agreement
Privacy Policy
DSA (Data Sharing Agreement)
FAQs

Creating a Long Connection Channel

PDF
Focus Mode
Font Size
Last updated: 2024-07-19 10:11:28
Establish a WebSocket long connection channel to send drive instructions upstream and receive downstream messages.

Calling Protocol

WebSocket + JSON
WSS /v2/ws/ivh/interactdriver/interactdriverservice/commandchannel
Header Content-Type: application/json;charset=utf-8

Connection Establishment Method

websocket url: see Digital Human aPaas API Calling Method for organizing the URL.
Note:
It is particularly important to note that the requestid parameter should be filled with the value of the session ID (SessionId). For example:
wss://domin/v2/ws/ivh/interactdriver/interactdriverservice/commandchannel?appkey=xxx&requestid=m123&timestamp=xxx&signature=xxx
Websocket may disconnect due to network fluctuations, cloud service updates, etc. When a disconnection is detected, as long as the session status has not been closed, re-establishment is required.
Please call theStart Session API before establishing a WebSocket long connection; otherwise, the connection will fail. Only one long connection channel is allowed per session.



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback