![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
google-translate-tts
Advanced tools
This package is for using Google Translate to create audio clips in node js.
This library has been updated to work with the new changes to the Translate API introduced by Google in November 2020.
A spiritual successor to google-tts-api which worked with the previous Translate API.
npm install google-translate-tts
or
yarn add google-translate-tts
Find a voice to use:
const tts = require('google-translate-tts');
// lookup by name
const voice = tts.voices.findByName('English (United States)');
// lookup by code
const voice = tts.voices.findByCode('en-US');
// an array of all voices
console.log(tts.voices);
/* Voice example:
* {
* code: 'en-US',
* name: 'English (United States)'
* }
*/
Download an audio clip:
const fs = require('fs');
const tts = require('google-translate-tts');
// notice that `tts.synthesize` returns a Promise<Buffer>
const saveFile = async () => {
const buffer = await tts.synthesize({
text: 'Hello, world!',
voice: 'en-US',
slow: false // optional
});
fs.writeFileSync('hello-world.mp3', buffer);
};
saveFile();
FAQs
Text-to-speech using Google Translate
The npm package google-translate-tts receives a total of 1,155 weekly downloads. As such, google-translate-tts popularity was classified as popular.
We found that google-translate-tts 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.