Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

text-to-speech-crawl

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-to-speech-crawl - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

image-1.png

9

example.ts

@@ -8,2 +8,4 @@ import path from "path";

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(

@@ -25,6 +27,7 @@ {

},
path.join(__dirname, `example${new Date().getTime()}.mp3`)
path.join(__dirname, `example${new Date().getTime()}.mp3`),
token
);
} catch (error) {
console.log(error);
} catch (error: any) {
console.log(error?.message);
}

@@ -31,0 +34,0 @@ };

{
"name": "text-to-speech-crawl",
"version": "1.0.7",
"version": "1.0.8",
"description": "text to speed crawler",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -27,6 +27,8 @@ # text-to-speech-crawl

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: "They're like time machines taking you to different worlds and landscapes, and um, and I just can't get enough of it.",
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.",
},

@@ -44,6 +46,7 @@ voice: {

},
path.join(__dirname, `example${new Date().getTime()}.mp3`)
path.join(__dirname, `example${new Date().getTime()}.mp3`),
token
);
} catch (error) {
console.log(error);
} catch (error: any) {
console.log(error?.message);
}

@@ -53,5 +56,5 @@ };

## How to config ,detail here https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize
## How to config : https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize
### 2. voice ,detail here https://cloud.google.com/text-to-speech/docs/reference/rest/Shared.Types/StreamingSynthesizeConfig#VoiceSelectionParams
### 2. voice : https://cloud.google.com/text-to-speech/docs/reference/rest/Shared.Types/StreamingSynthesizeConfig#VoiceSelectionParams

@@ -61,3 +64,3 @@ 1. Supported voices and languages https://cloud.google.com/text-to-speech/docs/voices

### 3. audioConfig https://cloud.google.com/text-to-speech/docs/reference/rest/v1/AudioConfig
### 3. audioConfig : https://cloud.google.com/text-to-speech/docs/reference/rest/v1/AudioConfig

@@ -83,5 +86,9 @@ 1. pitch : from -20 to 20

1. Go to diablog at Put Text-to-Speech into action on https://cloud.google.com/text-to-speech
** Please run Browser with Incognito ![Incognito](image-2.png)
1. Go to diablog at Put Text-to-Speech into action on https://cloud.google.com/text-to-speech on ![Incognito](image-2.png)
![Click SPEAK IT](image.png)
2. Take button F12 =>>>>>> go to Network on new bottom board =>>>>>> Click to "SPEAK IT"
![Take a token](image-1.png)
3. Check request name "proxy?url ..............." and get token on "Request URL" .
4. put token to "textToSpeech" function .
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc