![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.
@jackdbd/eleventy-plugin-text-to-speech
Advanced tools
Eleventy plugin for the Google Cloud Text-to-Speech API
Eleventy plugin that send messages to a Telegram chat of your choice.
npm install --save-dev @jackdbd/eleventy-plugin-text-to-speech
Before you can begin using the Text-to-Speech API, you must enable it. Using Cloud Shell, you can enable the API with the following command:
gcloud services enable texttospeech.googleapis.com
Create a service account that can use the Text-to-Speech API.
gcloud iam service-accounts create sa-text-to-speech-user \
--display-name "Text-to-Speech user SA"
const { textToSpeechPlugin } = require('@jackdbd/eleventy-plugin-text-to-speech')
module.exports = function (eleventyConfig) {
// some eleventy configuration...
eleventyConfig.addPlugin(textToSpeechPlugin, {
audioEncoding: 'OGG_OPUS',
keyFilename: process.env.GOOGLE_APPLICATION_CREDENTIALS,
regexPattern: '.*/posts/.*.html$',
voice: { languageCode: 'en-GB', name: 'en-GB-Wavenet-C' }
})
// some more eleventy configuration...
}
Option | Default | Explanation |
---|---|---|
audioEncoding | OGG_OPUS | Encoding for the audio file. It must be one of supported audio encodings of the Cloud Text-to-Speech API. |
regexPattern | .*.html$ | regex pattern to find text files to convert into speech. |
keyFilename | process.env.GOOGLE_APPLICATION_CREDENTIALS | credentials for the Cloud Text-to-Speech API. |
voiceLanguageCode | en-US | Name of the Text-to-Speech languageCode to use. See list here. |
voiceName | en-US-Standard-J | Name of the Text-to-Speech voice to use. See list here. |
:warning: Don't forget to set either
keyFilename
or theGOOGLE_APPLICATION_CREDENTIALS
environment variable on your build server. For example, if your build runs on the Github CI, use GitHub secrets; if the build runs on Netlify, use Build environment variables.
FAQs
Eleventy plugin that uses text-to-speech to generate audio assets for your website, then injects audio players in your HTML.
The npm package @jackdbd/eleventy-plugin-text-to-speech receives a total of 0 weekly downloads. As such, @jackdbd/eleventy-plugin-text-to-speech popularity was classified as not popular.
We found that @jackdbd/eleventy-plugin-text-to-speech demonstrated a healthy version release cadence and project activity because the last version was released less than 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.