Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
github.com/shrotavre/gotts
Golang Text To Speech package. Included CLI tool to generate sound file from text.
Basically a text-to-speech, and save it for you to a file. This tool works over Google Translate's API hence needing internet to actually work.
// main.go
package main
import (
"fmt"
"github.com/shrotavre/gotts"
)
func main() {
g := gotts.NewGotts()
// Make Speech URL
opt := gotts.Options{}.FillDefaults()
url, err := g.MakeSpeechURL("Hello world!", opt)
if err != nil {
panic(err)
}
fmt.Println("Speech URL acquired: ", url)
// Output: Speech URL acquired: https://translate.google.com/translate_tt...
// Make Speech File
opt = gotts.Options{Lang: "id"}.FillDefaults()
err = g.MakeSpeechFile("Halo dunia!", opt)
if err != nil {
panic(err)
}
fmt.Println("Speech file generated!")
// Output: Speech file generated!
}
Download binary version from release page matching your operating system.
You can use gotts
by executing the downloaded binary via your cli and supply the required arguments.
# BASIC ARGS:
# run this command for the most basic usage
# this will create 'Hello from Shrotavre.mpg' in your current directory
$ ./gotts text="Hello from Shrotavre!"
# OTHER ARGS:
# 'dir' and 'name' args to set where to save the files
$ ./gotts text="Hello!" dir="/Documents/voices" name="test.mpg"
# 'lang' arg to set voice language/locale
# see here for more information on available locales:
$ ./gotts text="Halo, apa kabar?" lang="id"
# 'speed' arg to set voice talking speed. default value is 2.5
$ ./gotts text="Hello!" speed=6
Documentation is an OPEN Open Source Project. This means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit.
FAQs
Unknown package
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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.