2014-07-06, 19:42
Added a new version to my repository: 0.0.80.
Get it or the repository from the Downloads Page.
Changes:
Having the addon speak in this way, you should avoid using interrupt=True or calling stop() if possible, because it the user is using the addon for accessibility reasons, you may interrupt something important. There will certainly be instances where it would make sense though.
Eventually, if you want to require this, then you would add the following to your addon.xml
But you wouldn't want to do that yet as the addon is not on the official repository yet. For now you could do:
And the user could just get the addon from my repository if they wanted speech.
Get it or the repository from the Downloads Page.
Changes:
- Added 'Disable Interface Reader' to Settings:Options (Default=False)
- Now provides a module for other addons to use
(2014-07-06, 14:03)Bitboy Wrote: 1. Is it possible to disable speaking of xbmc menus and text?Now it is
(2014-07-06, 14:03)Bitboy Wrote: 2. Can i use the engine in another addon, so that i just pass a string to XBMC TTS and it is spoken out?Now you can
(2014-07-06, 14:03)Bitboy Wrote: If yes i would be happy if you could post an example.
Code:
import TextToSpeech as TTS
TTS.sayText(u'This is some text')
TTS.sayText(u'This should interrupt',interrupt=True)
TTS.stop() #Stop all speaking
Having the addon speak in this way, you should avoid using interrupt=True or calling stop() if possible, because it the user is using the addon for accessibility reasons, you may interrupt something important. There will certainly be instances where it would make sense though.
Eventually, if you want to require this, then you would add the following to your addon.xml
Code:
<import addon="service.xbmc.tts" version="0.0.80"/>
But you wouldn't want to do that yet as the addon is not on the official repository yet. For now you could do:
Code:
try:
import TextToSpeech as TTS
except ImportError:
TTS = None
if TTS: TTS.sayText(u'Blah blah blah')
And the user could just get the addon from my repository if they wanted speech.