Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tor-speech
Advanced tools
tor-speech - Speech synthesizer from text.
When I had the task to convert text from chat to voice, I wondered how to do it, but I did not find anything other than paid services or very resource-intensive scripts, during the experiments I managed to get access to the paid API of search services yandex and google free of charge. I hope my contribution will make it easier for someone life.
Install the npm module tor-speech
$ npm install tor-speech
or
$ yarn add tor-speech
Connecting the module
const TorSpeech = require('tor-speech')
The function TorSpeech initializes the connection to the Tor network takes the path to the tor binary file as a single parameter and returns an object with the keys: killTor, yandex, google, langCodes, saveFile. Don't forget to kill the Tor process if you don't use the module with killTor.
const TorSpeech = require('tor-speech')
;(async () => {
const { killTor } = await TorSpeech()
killTor()
})()
The function google is identical to the function yandex accepts an object whose keys include text and langCodes returns null or an audio file in base64.
key | value | default value | required | information |
---|---|---|---|---|
text | text | test tor-speech module | no | script |
langCode | object | langCodes. russian | no | script language |
const TorSpeech = require('tor-speech')
;(async () => {
const { killTor, google, langCodes } = await TorSpeech()
const result = await google({
text: 'Hi, how are you?',
langCode: langCodes.english
})
console.log(result)
killTor()
})()
The function yandex is identical to the function google accepts an object whose keys include text and langCodes returns null or an audio file in base64.
key | value | default value | required | information |
---|---|---|---|---|
text | text | test tor-speech module | no | script |
langCode | object | langCodes.russian | no | script language |
const TorSpeech = require('tor-speech')
;(async () => {
const { killTor, yandex, langCodes } = await TorSpeech()
const result = await yandex({
text: 'Hi, how are you?',
langCode: langCodes.english
})
console.log(result)
killTor()
})()
ObjectlangCode this is a set of language codes for yandex and google synthesizers.
key | yandex | |
---|---|---|
russian | ru_RU | ru |
english | en_EN | en |
const langCodes = {
russian: { yandex: 'ru_RU', google: 'ru' },
english: { yandex: 'en_EN', google: 'en' }
}
The saveFile function saves base64 as an audio file.
parameters | default value | required | information |
---|---|---|---|
string | null | yes | base64 string |
string | null | yes | path to save the audio file |
const TorSpeech = require('tor-speech')
;(async () => {
const { killTor, google, langCodes, saveFile } = await TorSpeech()
const base64 = await google({
text: 'Hi, how are you?',
langCode: langCodes.english
})
const isSave = await saveFile(base64, __dirname + '/google_hi_how_fuck_you.mp3')
console.log(isSave)
killTor()
})()
My Telegram: @prohetamine, channel
Email: prohetamine@gmail.com
Donat money: patreon
If you have any questions and/or suggestions, please email me in telegram, if you find any bugs also let me know, I will be very grateful.
FAQs
Text speech api Yandex & Google + Tor
The npm package tor-speech receives a total of 5 weekly downloads. As such, tor-speech popularity was classified as not popular.
We found that tor-speech demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.