florabtw / google-translate-tts Goto Github PK
View Code? Open in Web Editor NEWNode library for Google Translate TTS (Text-to-Speech) API
Node library for Google Translate TTS (Text-to-Speech) API
Been getting this error all of a sudden. Worked just fine up until a couple days ago, nothing changed on my end code-wise.
Error: Unable to parse audio data. Check your request params. at toBuffer (/home/runner/#PROJECTNAME#/node_modules/google-translate-tts/src/synthesize.js:65:13)
library should support a "slow" parameter to align with translate api
I'm using the Node Red module. When I set it up a few months ago it was working fine with the voice code set to "de-DE".
This stopped working in the last few weeks - not exactly sure when.
I had a look at the network traffic of translate.google.com when clicking the speaker icon and as it turns out it sends:
hl=de
Changing the voice code in Node Red to "de" made it work again. Looks like Google changed the code, at least for German?
I used to use an old google-tts but I'm getting alot of "get key failed from google" and reading around it seem like the node i use is out of date with the new Google tts changes.
So wanted to know is this could maybe replace it.
Seems like Google changed there stuff again. The node that I'm using is giving me the "Get key failed from google" again.
Will you be doing any updates to this node?
Recently my discord bot stopped functioning with the error "Error: Unable to parse audio data. Check your request params.
at toBuffer (/home/runner/PROJECTNAME/node_modules/google-translate-tts/src/synthesize.js:48:13)"
Worked flawlessly until recently.
This package should be compatible with the Browser environment, at least with respect to the voices
export.
soundoftext-api | GET /sounds/6854cf90-504b-11eb-966e-e52d1cd1ebcf 200 217.638 ms - 71
soundoftext-api | <TITLE>302 Moved</TITLE></HEAD><BODY><H1>302 Moved</H1>The document has moved<A HREF="https://www.google.com/sorry/index?continue=https://translate.google.com/_/TranslateWebserverUi/data/batchexecute&q=EgSlFpBxGL</BODY></HTML>S5BwrEFKQPEi4GstNTudFjUoAuIwMgFy">here</A>.
soundoftext-api | 2021-01-06T21:50:46.328Z - : Request could not be fulfilled: {
soundoftext-api | text: Nell'ottobre 2018 la Hasbro ha ufficialmente inserito il logo di: "Glitter Force" tra le varie serie che presenterà alla fiera degli addetti del settore, ovvero: "Mipcom",
soundoftext-api | id: 337054c0-5069-11eb-a3fd-2f0f9848c024
soundoftext-api | }
soundoftext-api | 2021-01-06T21:50:46.331Z - : message=Unexpected token < in JSON at position 0, stack=SyntaxError: Unexpected token < in JSON at position 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.