voice-client
v1.0.5
Published
A voice command client for React applications
Downloads
13
Maintainers
Readme
🎤 Voice Client
A voice command client for React applications.
Features
- Voice command recognition
- Customizable commands
- React integration
- Code obfuscation for npm distribution
Code Protection
This package includes code obfuscation to protect your intellectual property when distributing via npm. For more information, see OBFUSCATION.md.
Installation
npm install voice-clientUsage
import { VoiceClient } from 'voice-client';
function App() {
return (
<div>
<VoiceClient
onCommand={(command) => {
// Handle voice commands
console.log('Command received:', command);
}}
/>
</div>
);
}Building
To build with code obfuscation:
npm run build:obfuscatedFor development builds without obfuscation:
npm run build:devTroubleshooting
"process is not defined" Error
If you encounter a process is not defined error when using the obfuscated package, add this polyfill before importing the package:
// Add this before importing the voice-client package
if (typeof process === 'undefined') {
window.process = { env: {} };
}
// Then import the package
import { VoiceClient } from 'voice-client';For more detailed troubleshooting information, see OBFUSCATION.md.
