Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rtc-voice-changer
Advanced tools
The RTCVoiceChanger plugin can be used in conjunction with the TRTC Web SDK to change the voice on TRTC calls.
English | 简体中文
rtc-voice-changer is used to change the voice of TRTC's audio and video calls.
TRTC monthly subscription Premium and higher is required to use this plugin.
Supported browsers: Chrome 66+, Edge 79+, Safari 14.1+, Firefox 76+.
For better use of rtc-voice-changer
, it is recommended that you use the latest version of Chrome.
npm install rtc-voice-changer
import RTCVoiceChanger from 'rtc-voice-changer';
const voiceChanger = new RTCVoiceChanger();
A processor can only process one stream.
let localStream = TRTC.createStream({ audio: true, video: true });
await localStream.initialize();
const processor = voiceChanger.createProcessor({ userId, sdkAppId, userSig });
// 1-Brat 2-Loli 3-Uncle 4-Heavy Metal 5-Cold 6-Foreign Accent 7-Beast 8-Fat Otaku 9-Strong Current 10-Heavy Machinery 11-Ethereal
await processor.process(localStream, 1);
// Switch effects midway
processor.setEffect(3);
await client.leave();
voiceChangerProcessor.destroy();
Create a plugin instance
const rtcVoiceChanger = new RTCVoiceChanger();
Create a Processor instance
const voiceChangerProcessor = await rtcVoiceChanger.createProcessor({
sdkAppId,
userId,
userSig
});
Params:
Name | Type | Description |
---|---|---|
sdkAppId | number | sdkAppId Get the sdkAppId information in Application Information after creating a new application by clicking Application Management > Create Application in the Real-Time Audio and Video Console. |
userId | string | User ID It is recommended to limit the length to 32 bytes, and only allow uppercase and lowercase English letters (a-zA-Z), numbers (0-9), underscores, and hyphens. |
userSig | string | UserSig signature Refer to UserSig Related for how to calculate userSig. |
Add noise reduction effect to the audio of the local stream.
Params:
Name | Type | Description |
---|---|---|
localStream | LocalStream | Local stream. |
voiceType | number | 1-Brat 2-Loli 3-Uncle 4-Heavy Metal 5-Cold 6-Foreign Accent 7-Beast 8-Fat Otaku 9-Strong Current 10-Heavy Machinery 11-Ethereal. |
await voiceChangerProcessor.process(localStream, 1);
Switch effects.
Name | Type | Description |
---|---|---|
voiceType | number | 1-Brat 2-Loli 3-Uncle 4-Heavy Metal 5-Cold 6-Foreign Accent 7-Beast 8-Fat Otaku 9-Strong Current 10-Heavy Machinery 11-Ethereal. |
await voiceChangerProcessor.setEffect(2);
Turn off the voice changing effect.
voiceChangerProcessor.close();
Destroy the processor and release resources, ending the processor's lifecycle.
voiceChangerProcessor.destroy();
Optimising performance issues.
Official Release 1.0.0
FAQs
voice changer plugin for TRTC Web SDK
The npm package rtc-voice-changer receives a total of 0 weekly downloads. As such, rtc-voice-changer popularity was classified as not popular.
We found that rtc-voice-changer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.