G33kLabs / node-tts-speak

Request a TTS service and diffuse it through your speaker !
http://www.js2node.com/tts/text-to-speech-for-nodejs
33 stars 7 forks source link

No sound #5

Open staminna opened 8 years ago

staminna commented 8 years ago

I thought it play strings of text. I am using google as tts and I see logs.

[0;90m[04:41:31] [tts-speak] Detect tts engine... -- Called from /project/node_modules/tts-speak/index.js:39:10(function new Core) client.js:63 [[04:41:31] [tts-speak] TTS engine found : google -- Called from /project/node_modules/tts-speak/index.js:46:14(function new Core) client.js:63 [04:41:31] [tts-speak-speaker] Instanciate speaker -- Called from project/node_modules/tts-speak/speak/index.js:27:9(function new speak) client.js:63 [04:41:31] [tts-speak] Queue : {"src":"Hello and welcome here !"} -- Called from project/node_modules/tts-speak/index.js:80:10(function Core.say) client.js:63 [04:41:31] [tts-speak] Queue : {"wait":1000} -- Called from project/node_modules/tts-speak/index.js:80:10(function Core.say) client.js:63 [04:41:31] [tts-google] Request sound file "Hello and welcome here !" -- Called from //project/node_modules/tts-speak/tts/google.js:66:10(function TTS.exec) client.js:63 [[04:41:32] [tts-google] Store cache file at "false/google/en-us/6b/hello-and-welcome-here-6b330f35b45b918aa4f112e2bdd4d928.mp3" -- Called from /project/node_modules/tts-speak/tts/google.js:80:22(function Request._callback) client.js:63 [[04:41:33] [tts-speak] Play : {"file":"false/google/en-us/6b/hello-and-welcome-here-6b330f35b45b918aa4f112e2bdd4d928.mp3","src":"Hello and welcome here !"} -- Called from project/node_modules/tts-speak/index.js:128:26

staminna commented 8 years ago

hmm I found out some hints. The mp3 files generated contain google html requiring captchas to authenticate and lead to not authorized. Shouldn't there be a key for this? Can't find the google service for it.