mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
3be734fd84
commit
b5cbac7b28
2 changed files with 9 additions and 3 deletions
|
|
@ -17,6 +17,10 @@
|
||||||
export let transcribe = true;
|
export let transcribe = true;
|
||||||
export let displayMedia = false;
|
export let displayMedia = false;
|
||||||
|
|
||||||
|
export let echoCancellation = true;
|
||||||
|
export let noiseSuppression = true;
|
||||||
|
export let autoGainControl = true;
|
||||||
|
|
||||||
export let className = ' p-2.5 w-full max-w-full';
|
export let className = ' p-2.5 w-full max-w-full';
|
||||||
|
|
||||||
export let onCancel = () => {};
|
export let onCancel = () => {};
|
||||||
|
|
@ -192,9 +196,9 @@
|
||||||
} else {
|
} else {
|
||||||
stream = await navigator.mediaDevices.getUserMedia({
|
stream = await navigator.mediaDevices.getUserMedia({
|
||||||
audio: {
|
audio: {
|
||||||
echoCancellation: true,
|
echoCancellation: echoCancellation,
|
||||||
noiseSuppression: true,
|
noiseSuppression: noiseSuppression,
|
||||||
autoGainControl: true
|
autoGainControl: autoGainControl
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1142,6 +1142,8 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||||
className="p-1 w-full max-w-full"
|
className="p-1 w-full max-w-full"
|
||||||
transcribe={false}
|
transcribe={false}
|
||||||
displayMedia={displayMediaRecord}
|
displayMedia={displayMediaRecord}
|
||||||
|
echoCancellation={false}
|
||||||
|
noiseSuppression={false}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
recording = false;
|
recording = false;
|
||||||
displayMediaRecord = false;
|
displayMediaRecord = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue