Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to use this in nodered? #2

Closed
JuniorGamingTime opened this issue Dec 3, 2020 · 11 comments
Closed

Is there a way to use this in nodered? #2

JuniorGamingTime opened this issue Dec 3, 2020 · 11 comments
Assignees

Comments

@JuniorGamingTime
Copy link

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.

@florabtw
Copy link
Owner

florabtw commented Dec 3, 2020

Yes, this library should be able to be used as a replacement for google-tts. Though, it is missing some features such as the "slow" flag.

The biggest difference is that this library returns a Buffer full of the mp3 audio data, and google-tts returns a url.

@JuniorGamingTime
Copy link
Author

How would I install it? I'm using docker for nodered. And the mp3 shouldn't be an issue hopefully

@florabtw
Copy link
Owner

florabtw commented Dec 3, 2020

You should be able to install it the same way that you installed google-tts. Assuming you are using npm or yarn:

npm install ncpierson/google-translate-tts

or

yarn add ncpierson/google-translate-tts

@JuniorGamingTime
Copy link
Author

I tried installing it and it doesn't show up in the pallet (tried both and restarted too)

@florabtw
Copy link
Owner

florabtw commented Dec 3, 2020

Ah, sorry, I'm not familiar with Node Red. It looks like me (or someone) would need to publish this package to Node Red.

I now see your Issue filed in the original google tts package: DeanCording/node-red-contrib-google-tts#7

I'll see what I can do about node red.

edit: to clarify, this doesn't currently work with nodered, but I'll look into it.

@JuniorGamingTime
Copy link
Author

That would be amazing. I use it alot for my streams for a few things, and we've missed the fun with had with tts. Thanks alot in advance

@florabtw
Copy link
Owner

florabtw commented Dec 4, 2020

Hey @JuniorGamingTime , I just added this library to Node RED. Could you try it out and let me know if it is working for you?

@florabtw
Copy link
Owner

florabtw commented Dec 4, 2020

Closing this issue since it seems to be working.

@florabtw florabtw closed this as completed Dec 4, 2020
@florabtw florabtw self-assigned this Dec 4, 2020
@JuniorGamingTime
Copy link
Author

Sorry to reopen a old issues but seems like the TTS node is not working at all this time. i get no errors or anything now.
Nothing from the last setup has changed, it just stopped working like 2 days ago.

@florabtw
Copy link
Owner

Hi @JuniorGamingTime , this is a known issue. It's not specific to NodeRED. Google changed the voice parameter to accept different values, and it broke the library.

@JuniorGamingTime
Copy link
Author

Are you working on an update? If its possible. Ill try an look for an alternative. I use this node alot on my streams so wanna try and get something working on the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants