Voice Mode MobX is a lightweight, scalable, and reactive state management solution for real-time voice modes, audio streaming, and voice assistant integrations. Powered by MobX, your microphone states, audio effects, and active sessions stay perfectly synchronized with the UI with zero unnecessary re-renders.
- Reactive Voice State: Seamless management of microphone inputs, audio tracks, and volume levels using MobX stores.
- Web Audio API Integration: Out-of-the-box infrastructure to capture, analyze, and process real-time audio streams.
- Voice Activity Detection (VAD): Built-in
@computedproperties to dynamically track and display when a user is actively speaking. - Low Latency Architecture: Optimized for real-time web communication platforms like WebRTC and WebSockets.
- Structured Store Pattern: Clean separation of concerns split into
AudioStore,SessionStore, andDeviceStore.
npm install mobx mobx-react-lite
# or
yarn add mobx mobx-react-liteimport { makeAutoObservable } from "mobx";
class VoiceModeStore {
isMuted = false;
isSpeaking = false;
volume = 80;
constructor() {
makeAutoObservable(this);
}
toggleMute() {
this.isMuted = !this.isMuted;
}
setSpeaking(status: boolean) {
this.isSpeaking = status;
}
}
export const voiceStore = new VoiceModeStore();This project is licensed under the MIT License.