tencent cloud

Feedback

Cloud Application Rendering

Enabling Mic

Last updated: 2024-01-26 11:54:09
This document describes how to enable the mic. If your business needs to play back audio through a mic, you can use the SDK to enable the mic feature.

Sequence diagram



Directions

1. The cloud application can capture the audio of the system mic.
2. The business client calls the TCGSDK.init() API and sets the mic parameter to true to complete initialization.
3. The business client must be granted the permission to access the mic.
Note:
Taking a browser as an example, the system first needs to enable the mic permission of the browser. The browser then needs to enable the mic permission of the accessed page, so that the business client can enable the mic permission.
4. When the business client uses the mic, the data will be transferred to the cloud application through the SDK.
5. If the business needs to turn on/off the mic during connection, the business client can call TCGSDK.switchMic() to do this.

Catalog

In The Article

Enabling Mic

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 avaliable.

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