
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.
speech-into-text
Advanced tools
SpeechToText is a lightweight, multi-language voice-to-text tool for real-time transcription in web apps.
SpeechToText is a lightweight, multi-language voice-to-text conversion package designed for seamless integration into web applications. It supports customization, works with both <textarea> and <div>, and can be used via NPM or CDN. Demo
<textarea> and <div> elements for output.id, class, or tag for buttons and dropdowns.Install the package via NPM:
npm install speech-into-text
To use SpeechToText, ensure the following elements are in your HTML:
<div>
<!-- Text Output Area -->
<div class="indicator">
<textarea id="outPut" placeholder="Start speaking..." rows="5"></textarea>
</div>
<!-- works with div or any html tag -->
<!-- <div id="outPut"></div> -->
<!-- Control Buttons -->
<button id="startBtn">Start</button>
<button id="stopBtn">Stop</button> <!-- Optional -->
<!-- ----Optional Buttons----- -->
<!-- Language Selector -->
<select id="langSelection"></select>
<button id="clearBtn">Clear</button>
<button id="copyBtn">Copy</button>
</div>
Include the package via a CDN if installation is not preferred:
<script type="module" src="script.js"></script>
import { speechToText } from 'https://unpkg.com/speech-into-text@latest/index.js';
speechToText({
outPut:'#outPut',
startBtn:'#startBtn',
langSelection:'#langSelection'// or for specific langanguage use code like langSelection:"ne-NP"
// other are optional include any of those if required
stopBtn:'#stopBtn',
clearBtn:"#clearBtn",
copyBtn:"#copyBtn",
recIndicator:"#indicator", //optional add css to view change on its class "listening"
});
Initialize the speechToText function with the appropriate selectors:
import { speechToText } from 'speech-into-text';
speechToText({
outPut:'#outPut',
startBtn:'#startBtn',
langSelection:'#langSelection',// or for specific langanguage use code like langSelection:"ne-NP"
// other are optional include any of those if required
stopBtn:'#stopBtn',
clearBtn:"#clearBtn",
copyBtn:"#copyBtn",
recIndicator:"#indicator", //optional add css to view change on its class "listening"
});
stopBtn parameter to stop speech recognition.id, class, tag, or a combination (e.g., tag.class, tag#id).The package supports a wide variety of languages. You can pass the dropdown id/class or directly specify a language code.
| Code | Language | Region |
|---|---|---|
| en-US | English | United States |
| ne-NP | Nepali | Nepal |
| en-GB | English | United Kingdom |
| es-ES | Spanish | Spain |
| fr-FR | French | France |
| de-DE | German | Germany |
| hi-IN | Hindi | India |
| ja-JP | Japanese | Japan |
| ko-KR | Korean | Korea |
| zh-CN | Chinese | China |
| pt-PT | Portuguese | Portugal |
| ru-RU | Russian | Russia |
| ar-SA | Arabic | Saudi Arabia |
| it-IT | Italian | Italy |
| tr-TR | Turkish | Turkey |
| pl-PL | Polish | Poland |
| nl-NL | Dutch | Netherlands |
| sv-SE | Swedish | Sweden |
| da-DK | Danish | Denmark |
| cs-CZ | Czech | Czech Republic |
| fi-FI | Finnish | Finland |
| el-GR | Greek | Greece |
| th-TH | Thai | Thailand |
| hu-HU | Hungarian | Hungary |
| ro-RO | Romanian | Romania |
| sk-SK | Slovak | Slovakia |
| hr-HR | Croatian | Croatia |
| bg-BG | Bulgarian | Bulgaria |
| sr-RS | Serbian | Serbia |
| vi-VN | Vietnamese | Vietnam |
| ms-MY | Malay | Malaysia |
| id-ID | Indonesian | Indonesia |
| ta-IN | Tamil | India |
| ml-IN | Malayalam | India |
outPut.This package relies on the SpeechRecognition API, supported in:
Note: HTTPS is required for this API.
Developed with ❤️ by Darpan Adhikari.
This project is licensed under the Apache-2.0 License.
Elevate your web applications with seamless voice-to-text integration! 🚀
FAQs
SpeechToText is a lightweight, multi-language voice-to-text tool for real-time transcription in web apps.
The npm package speech-into-text receives a total of 191 weekly downloads. As such, speech-into-text popularity was classified as not popular.
We found that speech-into-text demonstrated a not healthy version release cadence and project activity because the last version was released 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.