
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
susurro-whisper-nextjs
Advanced tools
Real-time voice transcription using Whisper AI with Transformers.js for Next.js
A sleek, Matrix-themed web application for real-time voice transcription using OpenAI's Whisper model through Transformers.js.
Working Commit ID: f8d559d3d7c3c69fde502fa48ac3ea94ad03402b
npm install susurro-whisper-nextjs
# or
yarn add susurro-whisper-nextjs
# or
pnpm add susurro-whisper-nextjs
# Clone the repository
git clone https://github.com/yourusername/susurro.git
cd susurro
# Install dependencies
npm install
# Build the library
npm run build-lib
# Run development server (for demo)
npm run dev
import { useWhisper } from 'susurro-whisper-nextjs'
import 'susurro-whisper-nextjs/dist/styles.css'
function MyComponent() {
const {
transcribeAudio,
isTranscribing,
modelReady
} = useWhisper({ language: 'english' })
const handleFileUpload = async (file: File) => {
const result = await transcribeAudio(file)
if (result) {
console.log('Transcription:', result.text)
}
}
return (
<div>
{modelReady ? 'Ready to transcribe!' : 'Loading model...'}
</div>
)
}
Open http://localhost:3000 to see the demo application
The application uses the Xenova/whisper-tiny
model for fast performance. You can modify the language settings in:
// app/page.tsx
const { transcribeAudio } = useWhisper({ language: 'english' })
susurro/
├── app/
│ ├── page.tsx # Main application page
│ ├── layout.tsx # Root layout
│ └── globals.css # Global styles
├── src/
│ ├── components/
│ │ ├── WhisperRecorder.tsx # Recording component
│ │ └── styles.css # Component styles
│ ├── hooks/
│ │ └── useWhisperDirect.ts # Whisper hook implementation
│ └── lib/
│ └── types.ts # TypeScript types
├── public/
│ └── sample.wav # Sample audio file
└── package.json
The app is ready for deployment on Vercel:
# Build for production
npm run build
# Start production server
npm start
Or deploy directly to Vercel:
MIT License - feel free to use this project for your own purposes.
Made with 💚
FAQs
Real-time voice transcription using Whisper AI with Transformers.js for Next.js
The npm package susurro-whisper-nextjs receives a total of 0 weekly downloads. As such, susurro-whisper-nextjs popularity was classified as not popular.
We found that susurro-whisper-nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.