mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Add local session recording (Aufnahme)
Wires up the Extras menu's Aufnahme starten/beenden items: mixes the incoming voice playback and outgoing mic signal into a MediaRecorder and downloads the result as webm on stop. Multitrack recording stays disabled (needs a plugin-equivalent per-client split not modeled here). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7bcced06fd
commit
67c4bc1072
3 files changed
+110
-11
No files matched your search
@@ -134,6 +134,11 @@ export class MicCapture {
|
||||
this.silence.connect(this.context.destination);
|
||||
}
|
||||
|
||||
/** The raw mic input node, e.g. to additionally route it into a recorder. */
|
||||
getSourceNode(): AudioNode | null {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
/** Routes the raw mic signal to `destination` too, so you can hear yourself (a mic test), until disabled again. */
|
||||
setMonitoring(enabled: boolean, destination: AudioNode): void {
|
||||
if (!this.source) return;
|
||||
|
||||
Reference in new issue
Block a user