Package Exports
- voice-client
- voice-client/dist/voice-client.es.js
- voice-client/dist/voice-client.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (voice-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.