Release - XBMC TTS (Text To Speech) [Alpha]

  Thread Rating:
  • 6 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #46
Ok Ruuk, I realize this isn't very helpful. After completely wiping XBMC and the User directory from my Win 7 x64 computer, downloading fresh and installing from scratch. I am not able to produce an error at all. XBMC TTS has been coming up and working right away. I did this twice, Once for the Executable addon installer and another time to try installing through adding the repo, Thinking there might be installation.

In a probably unrelated and probably useless bit of info, I can tell you thought that the Play through xbmc option that you have on by default is painfully laggy, once I disable it everything is wonderful.

If there is anything you would like me to try to help you figure out where the difference in your system vs my setup is, Let me know.
find quote
alexp4re Offline
Senior Member
Posts: 115
Joined: May 2014
Reputation: 0
Post: #47
@ Traker1001 - this was a fresh install of this addon from scratch. i tried the default tts engine & play w/ others, but not getting any audio w/ a script failed error. im new to this forum, so i don't know how to provide a log via pastebin. is this an isolated incident? is anyone else on win 7 gotham 13.1 experiencing this? hopefully, Ruuk will fix it on his end, bcuz this addon looks promising.
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #48
@alexp4re - Ruuk was able to reproduce the problem and I have no doubt he will be able to fix it. Just give him a bit of time. We had similar problem in the past and for a while and I was able to get around it by running the TTS installer Ruuk created.

You can get it Here:

http://ruuk.github.io/service.xbmc.tts/d...BMCTTS.exe

Give it a try and see if it makes a difference.
find quote
alexp4re Offline
Senior Member
Posts: 115
Joined: May 2014
Reputation: 0
Post: #49
@ Traker1001 - tried installer, but still gettin script failed. thanx for tryin. will wait for Ruuk to remedy this.
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,586
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Information  v0.0.77
Post: #50
Added a new version to my repository: 0.0.77.

Get it or the repository from the Downloads Page.

Changes:
  • Update comtypes to the latest dev version
  • SAPI: Clear generated files on startup: possibly fixes issues with Win 7/8

alexp4re: This may fix the issue you are having. It fixed my errors, but the errors I was having may be unrelated. If this doesn't work I will probably need a log.

(2014-06-28 13:12)jhall Wrote:  wow! talk about blink of an eye!

I may have missed it, but does google tts have a rate adjustment setting?

It doesn't, but I will add it. You will need to use either SOX or MPlayer which are the players with rate adjustment. The Google API doesn't support that natively.

[Image: sig.jpg]
(This post was last modified: 2014-06-30 00:23 by ruuk.)
find quote
alexp4re Offline
Senior Member
Posts: 115
Joined: May 2014
Reputation: 0
Post: #51
@ Ruuk - hi. im still gettin script failed with the latest update of ur addon. i also tried the installer method per Traker1001's suggestion & it didn't work either. i notice with this update in settings via sapi that i can see my tts speach engines on my computer whereas before it didn't show up & gave me an error. i provided a log for your review. hopefully i did it correctly, bcuz its my 1st time upload log.

http://xbmclogs.com/show.php?id=237835

THANKS for your help.
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #52
@Alexp4re, You might try installing NVDA, Check to make sure it works in outside of XBMC, then run XBMC and change the speech selection to NVDA in the XbmcTTS addon (Should auto detect it at though). I am wondering if there isn't something going on with your Sapi install. I have installed this onto a couple PC's that didn't actually have SAPI installed and I see similar error.

NVDA can be found here: http://sourceforge.net/projects/nvda/

Please note, I am not proposing this as a permanent solution, Just a means to diagnosis to see if we can get you up and running. So if you wish to do a portable install that should be fine as well.

@Ruuk
In unrelated post, I have been getting an error recently seemingly at random. It forces the speech to go into repetition and eventually crash. Restart of XBMC fixes it temporarily. The error is happening on both linux and windows.

Code:
00:04:41 T:140562183214848  NOTICE: service.xbmc.tts: Window ID: 12000 Handler: selectdialog
00:04:41 T:140562183214848  NOTICE: service.xbmc.tts: ERROR: start()
00:04:41 T:140562183214848   ERROR: Traceback (most recent call last):
00:04:41 T:140562183214848   ERROR:   File "/home/media/.xbmc/addons/service.xbmc.tts/service.py", line 170, in start
00:04:41 T:140562183214848   ERROR:     self.checkForText()
00:04:41 T:140562183214848   ERROR:   File "/home/media/.xbmc/addons/service.xbmc.tts/service.py", line 224, in checkForText
00:04:41 T:140562183214848   ERROR:     newW = self.checkWindow(newN)
00:04:41 T:140562183214848   ERROR:   File "/home/media/.xbmc/addons/service.xbmc.tts/service.py", line 328, in checkWindow
00:04:41 T:140562183214848   ERROR:     heading = self.windowReader.getHeading()
00:04:41 T:140562183214848   ERROR:   File "/home/media/.xbmc/addons/service.xbmc.tts/lib/windows/selectdialog.py", line 10, in getHeading
00:04:41 T:140562183214848   ERROR:     return WindowReaderBase.getHeading()
00:04:41 T:140562183214848   ERROR: TypeError: unbound method getHeading() must be called with WindowReaderBase instance as first argument (got nothing instead)
00:04:42 T:140562183214848  NOTICE: service.xbmc.tts: Window ID: 10101 Handler: progressdialog
00:04:42 T:140562183214848  NOTICE: service.xbmc.tts: Control: 10

If you need me to explore further into this and see if I can find a pattern let me know.
(This post was last modified: 2014-06-30 08:39 by Traker1001.)
find quote
alexp4re Offline
Senior Member
Posts: 115
Joined: May 2014
Reputation: 0
Post: #53
@ Traker1001/Ruuk - i installed NVDA per ur recommendation & it is workin with the addon on xbmc. But outside of xbmc, NVDA has so so much unnecessary dialog...annoucing every step i do on my computer & browsing on the internet. do you know how to disable all these features outside of xbmc on NVDA? i spent couple hours & can't figure it out.

@ Ruuk - can u please make the time to look at my log to see why ur addon is givin me script failed: it won't work with other tts engines available(sapi, google, etc.). im on win 7 x64 gotham 13.1.

http://xbmclogs.com/show.php?id=237898

p.s. love this addon. just a minor suggestion, it should have a delay feature (3 secs., 5 secs., etc.) before it announces. that way it doesn't try to say everything on your way before you get to ur selected item.

THANKS guys for your continue help.
(This post was last modified: 2014-06-30 12:57 by alexp4re.)
find quote
donkamillo Offline
Junior Member
Posts: 40
Joined: Mar 2011
Reputation: 0
Location: Germany
Post: #54
NVDA is a screen reading software for blind and visually impaired people like me. It is supposed to work that way. Otherwise I couldn't browse the net, read mails or write in forums like this. :-)

Regards!
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,586
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #55
alexp4re: http://windows.microsoft.com/en-us/windo...=windows-7

Try the instructions at this link and see if you need to do something to enable Windows speech.

[Image: sig.jpg]
find quote
alexp4re Offline
Senior Member
Posts: 115
Joined: May 2014
Reputation: 0
Post: #56
@ ruuk - in speech recog settings in windows, i was able to find the default 'microsoft anna' tts engine, but my primary tts engine that i prefer & use...does not show up. it does show up in xbmc under ur addon, but gives me script failed. did u get a chance to review my log?

http://pastebin.com/W6Brx63u

@ Traker1001 - thanx for reccommending NVDA, but it's too overwhelming. it works well with xbmc, but outside of it...it takes over every aspect of computer usage. there's so much unnecessary dialog. NVDA is intended for the visually impaired.

would love for this addon to work, but it doesn't look too promising.

UPDATE: if i disable it & then enable the addon, it works only until i exited out of xbmc then doesn't anymore with script failed.
(This post was last modified: 2014-06-30 23:43 by alexp4re.)
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #57
You could start NVDA with XBMC and exit NVDA when you exit xbmc, but even that is a stop gap. I think the problem lies in your system somewhere, Not in the Plugin or XBMC.

However, Just for the the sake of trying it, Could you change to the Quartz skin, Restart XBMC and see if that makes a difference. I may be completely off base, but its worth a try.

Also when you say
Quote:but my primary tts engine that i prefer & use...does not show up
What engine is that? Anna is the only TTS engine that is installed in windows by default, So unless or until you install another engine Anna is the only one that is going to show up. Also anna is the one I recommend getting going fist, Then when we know Sapi and Anna are working, we can move on to getting your proffered engine going.
(This post was last modified: 2014-07-01 02:50 by Traker1001.)
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #58
@ alexp4re - Something else I thought of. I have had issues in the past with XBMC addon's not updating properly. Please completely uninstall the TTS addon, Restart XBMC, And re-install the latest version of the XBMC addon and see if that changes anything.
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #59
Along with the error I posted above, I have been getting this error as well.

Code:
21:47:58 T:2348  NOTICE: service.xbmc.tts: Window ID: 10025 Handler: default
21:47:58 T:2348  NOTICE: service.xbmc.tts: ERROR: start()
21:47:58 T:2348   ERROR: Traceback (most recent call last):
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\service.py", line 170, in start
21:47:58 T:2348   ERROR:     self.checkForText()
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\service.py", line 224, in checkForText
21:47:58 T:2348   ERROR:     newW = self.checkWindow(newN)
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\service.py", line 323, in checkWindow
21:47:58 T:2348   ERROR:     self.sayText(u'Window: {0}'.format(name),interrupt=not newN)
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\service.py", line 276, in sayText
21:47:58 T:2348   ERROR:     self.tts.say(self.cleanText(text),interrupt)
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\lib\backends\base.py​", line 262, in say
21:47:58 T:2348   ERROR:     if interrupt: self._stop()
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\lib\backends\base.py​", line 393, in _stop
21:47:58 T:2348   ERROR:     ThreadedTTSBackend._stop(self)
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\lib\backends\base.py​", line 277, in _stop
21:47:58 T:2348   ERROR:     TTSBackendBase._stop(self)
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\lib\backends\base.py​", line 197, in _stop
21:47:58 T:2348   ERROR:     self.stop()
21:47:58 T:2348   ERROR:   File "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\lib\backends\sapi.py​", line 103, in stop
21:47:58 T:2348   ERROR:     if not self.inWavStreamMode: self.SpVoice.Speak('',3)
21:47:58 T:2348   ERROR: COMError: (-2147200966, None, (None, None, None, 0, None))
21:47:58 T:2348  NOTICE: service.xbmc.tts: Window ID: 10025 Handler: default
21:47:58 T:2348  NOTICE: service.xbmc.tts: ERROR: start()
21:47:59 T:2348  NOTICE: service.xbmc.tts: Window ID: 10025 Handler: default
21:47:59 T:2348  NOTICE: service.xbmc.tts: ERROR: start()

I can easily replicate this issue. It is directly related to Windows and Sapi. It seems when I leave my Windows system on and not active for a while when I wake it up this happens. I am unsure if this is related to the screen saver in XBMC or what. The power saving on my system is all off, The only thing that it is set to do is turn off the screen after 30 minutes.

I am disabling the screen off function of power saving to see if that makes a difference. And Ill let you know.

@Edit - So after some testing this specific problem is definitely directly related to Power Saving turning of the screen after 30 minutes. When I disabled that setting in windows Power Saving, The problem no longer happens. Because this is between SAPI and Power Saving in windows, I wondering if there is even actually anything that can be done here?
(This post was last modified: 2014-07-01 06:46 by Traker1001.)
find quote
Traker1001 Offline
Senior Member
Posts: 132
Joined: Jun 2013
Reputation: 3
Post: #60
Sorry for all the posts, I can reliably replicate the error that I posted 9 posts up.
Under Quartz skin, goto XBMC, Settings, Appearance, Scroll down to screen saver, Select Change Screensaver mode and Bam there you have it.

During that error it seems to be locked in a loop, until I get out of that menu and interrupt it. It will actually fill the log up crazy large, lol. I had a 19mb Log file last time i let it do that for a few minutes.

After that error, it doesn't read right at all, then when you goto shut down XBMC, It throws this error.

Code:
23:52:42 T:4080  NOTICE: service.xbmc.tts: TTSCLOSED
23:52:42 T:2656  NOTICE: service.xbmc.tts: Threaded TTS Finished: SAPI
23:52:42 T:4080  NOTICE: service.xbmc.tts: Remaining Threads:
23:52:42 T:4080  NOTICE: service.xbmc.tts:   MainThread
23:52:42 T:4080  NOTICE: service.xbmc.tts: SERVICE STOPPED
23:52:42 T:4080 WARNING: CPythonInvoker(2, C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\main.py): the python script "C:\Users\Admin\AppData\Roaming\XBMC\addons\service.xbmc.tts\main.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcgui::Window,class PythonBindings::XBMCAddon_xbmc_Monitor_Director
23:52:42 T:2524  NOTICE: breaking..........................

@Edit - Ok, So after some testing I can confirm this error started with the change between versions 75 and 76. After Downgrading to Version 75, I no longer get the error. However, The moment I upgrade to version 76 and/or 77, It starts throwing the error.
(This post was last modified: 2014-07-01 08:22 by Traker1001.)
find quote
Post Reply