
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-voice-feedback
Advanced tools
A React component library for voice feedback using Speech Recognition API with automatic language detection
A React component library for voice feedback using the Speech Recognition API with multi-language support.
npm install react-voice-feedback
import React from 'react';
import { VoiceFeedback } from 'react-voice-feedback';
function App() {
const handleTranscript = (text: string) => {
console.log('Voice input:', text);
};
return (
<div>
<VoiceFeedback onTranscript={handleTranscript} />
</div>
);
}
import React from 'react';
import { VoiceFeedback } from 'react-voice-feedback';
function App() {
return (
<div>
{/* Auto-stop mode (default) - stops automatically after speech */}
<VoiceFeedback
language="en-US"
onTranscript={(text) => console.log('Received:', text)}
autoStop={true}
continuous={false}
/>
{/* Continuous mode - keeps listening until manually stopped */}
<VoiceFeedback
onTranscript={(text) => console.log('Received:', text)}
continuous={true}
autoStop={false}
buttonTexts={{
start: '🎤 Start Continuous Recording',
stop: '🛑 Stop Recording'
}}
/>
{/* Custom configuration */}
<VoiceFeedback
language="tr-TR"
onStart={() => console.log('Recording started')}
onEnd={() => console.log('Recording ended')}
onError={(error) => console.error('Error:', error)}
showTranscript={true}
continuous={false}
autoStop={true}
/>
</div>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
language | string | Auto-detected | Language code (e.g., 'en-US', 'tr-TR') |
onTranscript | (text: string) => void | - | Callback when speech is recognized |
onStart | () => void | - | Callback when recording starts |
onEnd | () => void | - | Callback when recording ends |
onError | (error: string) => void | - | Callback when an error occurs |
buttonTexts | { start: string, stop: string } | Auto-detected | Custom button texts |
showTranscript | boolean | true | Whether to show transcript below button |
continuous | boolean | false | If true, keeps listening until manually stopped |
autoStop | boolean | true | If true, automatically stops after speech recognition |
continuous: false and autoStop: truecontinuous: true and autoStop: falsecontinuous: false and autoStop: falseThe component automatically detects the user's browser language. If no language is specified, it will use the browser's primary language.
Supported languages include:
This component requires browsers that support the Web Speech API:
# Install dependencies
npm install
# Start development server
npm run dev
# Build library
npm run build:lib
# Lint
npm run lint
MIT
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. { files: ['**/*.{ts,tsx}'], extends: [ // Other configs... // Enable lint rules for React reactX.configs['recommended-typescript'], // Enable lint rules for React DOM reactDom.configs.recommended, ], languageOptions: { parserOptions: { project: ['./tsconfig.node.json', './tsconfig.app.json'], tsconfigRootDir: import.meta.dirname, }, // other options... }, }, ])
FAQs
A React component library for voice feedback using Speech Recognition API with automatic language detection
The npm package react-voice-feedback receives a total of 0 weekly downloads. As such, react-voice-feedback popularity was classified as not popular.
We found that react-voice-feedback demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.