nodejs-text-to-speech | Node.js client for Google Cloud Text-to-Speech | Speech library
kandi X-RAY | nodejs-text-to-speech Summary
kandi X-RAY | nodejs-text-to-speech Summary
Cloud Text-to-Speech API client for Node.js. A comprehensive list of changes in each version may be found in the CHANGELOG. Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nodejs-text-to-speech
nodejs-text-to-speech Key Features
nodejs-text-to-speech Examples and Code Snippets
Community Discussions
Trending Discussions on nodejs-text-to-speech
QUESTION
When doing multiple requests at once, using Promise.all
, I seem to only get the audioContent
of the last resolving request.
I'm synthesizing large text's and need to split it up using the API's character limit.
I had this working before, so I know it should work, but stopped working recently.
I'm doing the exact same with Amazon's Polly, and there it works. It's exactly the same code, but with a different client and different request options.
So that made me think maybe it's a library thing? Or a Google service issue?
I'm using the latest version of: https://github.com/googleapis/nodejs-text-to-speech
...ANSWER
Answered 2019-Apr-30 at 07:10Got it working. The library seems to do things differently than I thought. Creating a copy of the synthesizerOptions
using Object.assign
did the trick
Working code: https://github.com/googleapis/nodejs-text-to-speech/issues/210#issuecomment-487832411
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nodejs-text-to-speech
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page