tencent cloud

All product documents
Tencent Real-Time Communication
VoiceRoomKit
Last updated: 2024-12-05 17:06:33
VoiceRoomKit
Last updated: 2024-12-05 17:06:33

API Introduction

VoiceRoomKit is a component of the voice chat room including UI interface, using the VoiceRoomKit API, you can quickly implement a voice chat room through simple interfaces. If you want to experience and debug the voice chat room effect, please read Run demo. If you want to directly integrate our features into your project, please read Quick Integration (TUILiveKit).
Note:
If you have your own UI design and want to develop it yourself in combination with VoiceRoomKit, we also provide a more flexible and feature-complete RTC Room Engine SDK. You can learn more about the features by viewing the RTC Room Engine SDK API documentation.

API Overview

API
Description
Obtain a VoiceRoomKit object instance.
Create a voice chat room live streaming room.
enterRoom
Enter a voice chat room live streaming room using roomId.
Note:
If this set of APIs including the UI does not meet your needs, we also provide a more flexible and feature-complete RTC Room Engine SDK. You can learn more about the features by viewing our API Documentation.

API Details

createInstance

Obtain a VoiceRoomKit object instance.
static func createInstance() -> VoiceRoomKit
Return Value:VoiceRoomKit

createRoom

Create a voice chat room live streaming room.
func createRoom(roomId: String, params: CreateRoomParams)
Parameter:
Parameter
Type
Description
Default Value
Meaning
roomId
String
Mandatory
-
Live Streaming Room ID
params
Mandatory
-
Create Live Room Parameters
Return Value:void

enterRoom

Enter a voice chat room live streaming room using roomId.
func enterRoom(roomId: String)
Parameter:
Parameter
Type
Description
Default Value
Meaning
roomId
String
Mandatory
-
Live Streaming Room ID
Return Value:void

VoiceRoomDefine Introduction

VoiceRoomKit is the UIKit layer data model class for voice chat rooms, mainly including the following data structures:

CreateRoomParams

Parameters object when creating a voice chat room live streaming, mainly including the following configuration parameters:
Parameter
Type
Description
Default Value
Meaning
roomName
String

""
Voice chat room name
maxAnchorCount
Int

10
Maximum number of users on stage
seatMode


Mandatory

Mic On Mode is divided into the following two types:
TUISeatModeFreeToTake: Free taking seat on mode, audience can freely take seat without applying.
TUISeatModeApplyToTake: Apply taking seat on mode, audience needs the approval of the anchor or administrator before getting on the seat.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon