
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
text-to-speech-crawl
Advanced tools
This project allows you to convert text into speech by sending requests to the Google Cloud Text-to-Speech API.
*Note :
The returned audio content is in base64 format, which is then converted and saved as an MP3 file.
import path from "path";
import textToSpeech from "text-to-speech-crawl";
import { DeviceClass } from "text-to-speech-crawl/type/type";
export const exampleTextToSpeech = async () => {
try {
console.log("----------Start convert to mp3");
const token =
"03AFcWeA4gbhj2FDM8trHBZ72as-co49vscXq9RVFHxkRYnVv2khU4QngLUZz5VQJy7TV5ZSr862a2I7uciZERG5m0EjSTGBOPh7upvWh3pveKkF6xjfWsFsvh_uzWJ-bJl818mxm9dhS4a4V28lGipoTKcddHznKQjDViIhrczKULA9m2wJ0nThZ9gaKX6X52oCiw4z_zMaNVFQBraN6EDpduMdQ3XIDBSx6LeP_jf7Ehe5xLWCeHoFfrHsLCWAz4DyT_5ptYcX3NU6RsSgRPbJuyio9R7BwhHCIVgvgDzMWcvwbXdMNnC3uXhiGgzbK6iBTrt-bm9sNgIRbVMjYAumPu9a28G8gEOPeLXjcTqA3X3PdgVW1xNxPp2mOI2cMoB8DfklXrcWtURRDhf-GmYs6G74byl7Lspf3pbw_43iGUHVuOIdtO7oYWLQ7RlAn2zPAfU6W2Y_2YONAK7aRoWaSN31bp53HyuhTLbVO5VSRUzWC6QHSSxaRCYaulmd3V56O0GiJ79eImUcTeP6I2xPdAiQfFoBWCq09Lbl0Wj60-regijkoOfZ9azohdNi0hkereqTHJ5gzE5HQoJMZHyI_UMoqnZiKoRUrhlmPri8cX0-mtHszVu2U4BZ5u_sBAG41T2uBLCVGda6cl_Xg-vdbiGOtXhOyQ6C0gdhXSVBVgxwS2LfwUsjmPCGKWHwl4n3PesJbYGzikYrz-DTf8T1tWJAMHVWAlak-jV2_UheYKu3EVSiUezCgjnlyc1coiRg02JoIj9yVZKyi_AWKgWvlXcPSrgBxiJbhpbWw-6DfRsg_-l7uQoGiCQdb2LZRxBkd1reL3h3wG1poYyS76v0IQDj9TjPlJEuzU8_wbqnLjNDxtrdSJpS0PEE7RNQoG6mJsQHGUf7awf852R1VeFaWMNj7Fj5R-hNKc4QhZHH5yX0PiOL2Fa_o";
const response = await textToSpeech(
{
input: {
text: "Movies, oh my gosh, I just just absolutely love them. They're like time machines taking you to different worlds and landscapes, and um, and I just can't get enough of it.",
},
voice: {
languageCode: "en-US",
name: "en-US-Journey-F",
},
audioConfig: {
audioEncoding: "LINEAR16",
pitch: 0,
speakingRate: 0,
effectsProfileId: [DeviceClass.SMALL_BLUETOOTH_SPEAKER_CLASS_DEVICE],
},
},
path.join(__dirname, `example${new Date().getTime()}.mp3`),
token
);
} catch (error: any) {
console.log(error?.message);
}
};
wearable-class-device Smart watches and other wearables, like Apple Watch, Wear OS watch handset-class-device Smartphones, like Google Pixel, Samsung Galaxy, Apple iPhone headphone-class-device Earbuds or headphones for audio playback, like Sennheiser headphones small-bluetooth-speaker-class-device Small home speakers, like Google Home Mini medium-bluetooth-speaker-class-device Smart home speakers, like Google Home large-home-entertainment-class-device Home entertainment systems or smart TVs, like Google Home Max, LG TV large-automotive-class-device Car speakers telephony-class-application Interactive Voice Response (IVR) systems
** Please run Browser with Incognito
FAQs
text to speed crawler
The npm package text-to-speech-crawl receives a total of 8 weekly downloads. As such, text-to-speech-crawl popularity was classified as not popular.
We found that text-to-speech-crawl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.