Turn Discord mic processing off for TTS playback
This commit is contained in:
@@ -216,6 +216,19 @@ export class CoreClient {
|
||||
return this.request("voice.devices");
|
||||
}
|
||||
|
||||
/** Read/turn off Discord's mic processing gates (noise suppression, AGC, echo). */
|
||||
async voiceProcessing(
|
||||
settings: {
|
||||
noiseSuppression?: boolean;
|
||||
echoCancellation?: boolean;
|
||||
automaticGainControl?: boolean;
|
||||
noiseCancellation?: boolean;
|
||||
inputVolume?: number;
|
||||
} = {}
|
||||
) {
|
||||
return this.request("voice.processing", settings);
|
||||
}
|
||||
|
||||
async voiceSetDevices(inputDeviceId?: string, outputDeviceId?: string) {
|
||||
return this.request("voice.setDevices", {
|
||||
...(inputDeviceId ? { inputDeviceId } : {}),
|
||||
|
||||
Reference in New Issue
Block a user