JSPM

voice-client

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 458
  • Score
    100M100P100Q65278F
  • License MIT

A voice command client for React applications

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-client

Usage

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:obfuscated

For development builds without obfuscation:

npm run build:dev

Troubleshooting

"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.