![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
txt2audio
A small lib to convert text strings to audio files (mp3 & ogg) using Google Text to Speech api.
It uses:
Important!
To use Google Text to Speech Api you should, first, enable the api and set up an authentication method. You can read more here.
npm install txt2audio
const Txt2Audio = require("txt2audio");
Then you should declare an object with the options you need.
const path = require("path");
let txt2audio = Txt2Audio({
text: "Fuck corona virus",
fileName: "fck-corona",
path: path.resolve(__dirname, "audio"),
gender: "female",
ogg: true,
debug: true
});
The Txt2Audio will return another function, generateAudio, which will generate the audio files and save them in the given path.
txt2audio.generateAudio();
Argument | Type | Default | Description |
---|---|---|---|
text | string | text from which the audio file will be generated | |
filename | string | name of the generated file | |
path | string | folder where the file will be saved | |
gender | string | female | male or female |
ogg | bool | false | generate ogg version from the audio file |
debug | bool | false | prints the request object in the terminal |
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
Gustavo Cardoso |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
A small lib to convert text strings to audio files (mp3 & ogg) using Google Text to Speech api.
The npm package txt2audio receives a total of 1 weekly downloads. As such, txt2audio popularity was classified as not popular.
We found that txt2audio 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.