Skip to content

v1.135.235 NETFORY WEB4.0

Choose a tag to compare

@technologiespro technologiespro released this 11 Oct 23:17
image

NETFORY Messenger 1.0.8

Added speakerphone calls: real echo cancellation and auto gain

  • New shared chat/dsp.rs (pure Rust, rustfft): Aec partitioned-block frequency-domain NLMS (overlap-save, 20 ms blocks, 24 partitions ~480 ms tail covering output->mic latency on Windows/Android plus room reverb), double-talk control by error/mic energy ratio, ERLE tracking, residual-echo Wiener suppressor driven by the echo estimate × leakage, and a startup-only energy guard. Agc -18 dBFS target, 0.25…20×, noise-floor tracker, gain hold while the far end is playing, soft limiter. Reference signal is the exact 48 kHz mix pushed to the output device. Simulation: echo at -18 dBFS -> -41...-48 dB within 1-2 s, 20-25 dB ERLE after 5 s, near-end loss during double talk 0.1–3 dB, ~2.4 % realtime.
  • Audio panel (🎧): toggles "Echo cancellation (AEC)" and "Microphone auto gain" (chat:cfg:aec, chat:cfg:agc, both on by default; ru/en/id).

Changed group voice channel (mesh ≤ 6)

  • Channel is registered before dialing, so a simultaneous join from a peer gets in instead of out; duplicate links to the same peer are replaced; the mesh re-dials unlinked known members every 15 s (late joiners / peers unreachable at entry).
  • Handshake carries the member's address (offer/join/in, members = [{node, addr}], legacy string lists still parsed); voice-speaking peers include addr -> the call bar shows names with speaking highlight.
  • A member outside the channel receiving a join emits voice-group-invite -> toast "name is in the voice channel" and a pulsing "Voice channel" button for 90 s.

Added Android (Messenger)

  • lib.rs: on_permission_request allows Microphone; UI calls getUserMedia({audio}) before call/answer/join on Android so wry requests the system RECORD_AUDIO/MODIFY_AUDIO_SETTINGS permission for cpal/oboe.
  • messenger/android-permissions.sh (idempotent) adds CAMERA, RECORD_AUDIO, MODIFY_AUDIO_SETTINGS, POST_NOTIFICATIONS, WAKE_LOCK and camera/microphone features to the generated manifest (android-camera-permission.sh now delegates to it).
  • Standalone shell (messenger/ui/App.vue): OS notifications for incoming messages and calls when the window is not focused (tauri-plugin-notification).

Fixed Windows build

  • audiopus_sys (libopus for the opus crate) failed to configure under CMake 4.x (Visual Studio 2026): "Compatibility with CMake < 3.5 has been removed".

Added echo suppression + AGC, group voice channel, call history

  • Echo suppressor + AGC (chat/voice.rs): the output callback tracks a far-end envelope (fast attack / slow decay); when speakers are loud and the mic is not clearly louder than the far end, the mic frame is attenuated by −30 dB (speakerphone echo). AGC targets −20 dBFS (gain 1–16×, fast attack / slow release) with a hard limiter. Chain: echo suppressor -> RNNoise -> AGC -> Opus.
  • Group voice channel (mesh ≤ 6): voice_group_join(room) dials known members with join{room,auth} over the voice ALPN; members already in the channel reply in{members} (the joiner then dials those too) and keep the connection as a media link; others reply out, a full channel replies full. Every link receives the same Opus datagrams; playback mixes all links' jitter rings. Members and speaking indicators (voice-speaking, 5 Hz: per-peer VAD + own VAD) are shown in the call bar; "Voice channel" button in the group header.
  • Call history: on hang-up a local line "Call · mm:ss" (or "Voice Channel · mm:ss") is written to the chat; missed-call lines get a "Recall" button. 1-on-1 call bar now also highlights the peer's name while they speak.

@technologiespro @bratunya2019