Thanks for this new plugin!
Maybe you could implement a cache of already tts’ified strings in order to lower number of request to Google servers…
-
Pimatic-TTS (Text to Speech) Released
pimatic rocks!
-
@yves911 said in Pimatic-TTS (Text to Speech) Released:
Thanks for this new plugin!
Maybe you could implement a cache of already tts’ified strings in order to lower number of request to Google servers…Good point (Although I wouldn’t be concerned with the amount of requests sent to the allmighty Google) !
Only messages with variables will need to be freshly converted. Static messages can be cached / saved indefinitely. Having a local repository also provides some resilience in cases where internet connectivity is disrupted.
Did think of this functionality, just wanted to get the initial version out as quickly as possible, and introduce functionality piece-meal, rather than waiting for a month to have a big-bang.Current priority is to integrate Pico2Wav (offline TTS). This already yields code which can be re-used for the caching mechanism used with online resources
Caching could follow soon after!If you have some time, I wouldn’t mind if you would log feature requests on Github as well. This helps me track and prioritize!
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Thanks I created a short ticket on GitHub for that.
pimatic rocks!
-
pimatic-tts v0.0.2 is available.
New Feature:- Support for Pico2Wave TTS added (as per discussion with @mwittig)
- Speech resources for text strings are cached on the filesystem (/tmp by default).
- Text strings including Pimatic variables will not be cached due to their volatile nature.
Pico2Wave is an offline TTS package which can be installed with the package manager (aptitude on Debian systems such as raspbian). The number of languages is limited, but does include EN, DE, FR, IT, ES.
Thoughts / Suggestions for feature enhancements are welcome!
Next priority is to implement caching of cloud based Speech resources.Please discuss features on the plugin page. I appreciate defects being logged (Alongside forum discussion) on Github
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins - Support for Pico2Wave TTS added (as per discussion with @mwittig)
-
Hey Dan,
don’t really now if I would declare it as failure, therefore I write it here. I today installed your plugin. Love it btw…After restart an error appear
[pimatic] error: Could not initialize the plugin "tts": Cannot find module './pico-device-config-schema'
I checked the plugin folder and really the file was missing. After downloading it from GitHub and put it on site everything was fine. No idea if it is only an local problem for me or something is missing in the download package.
-
@ortin Nope, you found my sloppiness. its missing from package.json! I’ll fix and release asap.
Just uploaded v0.0.3, which should include the file at install"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@tim Just had a chat with @leader21 re TTS.
If I understood correctly you are well experienced in the front-end? My skills in this area are insufficient. However there seems to be a desire in the community to bring TTS to the front-end as well. Just wanted to open a dialog to see if you would be interested in taking on some of the effort for the front-end. I am building my knowledge on integrating TTS systems while developing, and you seem to have done some cool stuff in this area in the past. Just PM me if you are open to a chat Rotterdam style"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@Dan. Works now thx!
Feature request:
Could you implement that loudness can be give as attribute within a rule like:when something happens then say "something" using google-tts with vol 30
With this the loudness is variabel for daily or chill times.
One question regarding the speech velocity of goolge tts. Even on 100 the good girl sounds a little dreamy. I think this is a google limitation and can’t be speed up little bit, right?
-
@ortin Agree to implement. Most of the required logic is still in place. Please log a feature request at Github for this.
Caching Cloud based TTS resources as per @Yves911 is now first on the list. yours is to follow straight after.
Re speech volume: I have fiddled around with google quite a bit, finding speed 40 to be quite allright for the Dutch voice. Not sure how this relates to other languages really. Let me perform some more tests. I have found the coding dependencies between the various audio streams to be quite unforgiving."Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Version 0.0.4 available - New Feature: Static TTS resources are now cached on the local filesystem
@yves911 said in Pimatic-TTS (Text to Speech) Released:
Thanks for this new plugin!
Maybe you could implement a cache of already tts’ified strings in order to lower number of request to Google servers…"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@ortin said in Pimatic-TTS (Text to Speech) Released:
Feature request:
Could you implement that loudness can be give as attribute within a rule like:when something happens then say "something" using google-tts with vol 30
@OrTiN and all: Implemented in version 0.0.5 with a slightly different rule syntax. Volume, Repeat, and Interval can now optionally be parameterized per rule. For parameters not provided parameter values from the device config will be used instead.
when something happens then <[say | speak]> "something really $useful" <using [tts_device_id | tts device name]> [[with volume nn] [repeating n times] [every n seconds]]
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
@dan said in Pimatic-TTS (Text to Speech) Released:
Version 0.0.4 available - New Feature: Static TTS resources are now cached on the local filesystem
@yves911 said in Pimatic-TTS (Text to Speech) Released:
Thanks for this new plugin!
Maybe you could implement a cache of already tts’ified strings in order to lower number of request to Google servers…Hi, just tried and it works very nicely I will certainly replace my own implementation of the Google API by yours
Again thankspimatic rocks!
-
@Yves911 Thanks for the feedback, much appreciated!
For the record: Pimatic-tts doesn’t do FS housekeeping tasks (yet). So small chance the cache could fill the partition up eventually if you are already low of free space (think size of an average speech resource is around 50k maybe less).
If I am bored I might implement something, but IMHO the system owner should run a tight ship@yves911 said in Pimatic-TTS (Text to Speech) Released:
Hi, just tried and it works very nicely I will certainly replace my own implementation of the Google API by yours
Again thanks"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Brief headsup: Development on tts is ongoing. Currently working on integration with UPNP media player devices on the network. Obviously this will greatly improve functionality for TTS. Initial tests against my samsung smart TV are succesful, but I have found some vendors do not completely adhere to the DLNA spec, or the NPM modules have not been written correctly. Rightnow considering whether to fix the dependencies, or just write the full stack myself…
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Hi, my pimatic setup under Pi3 has a weird behaviour with this plugin.
Even using GoogleTTS nor Pico2Wave, the voice reproduces SO SLOWLY that it’s hardly difficult to understand.
I’ve checked up that CPU/MEM are not high when reproducing.
¿Any clue about the cause of this?EDIT: I forgot to mention that i’m using the Google AIY Voice Hat and the included speaker
-
@cyberdie said in Pimatic-TTS (Text to Speech) Released:
Hi, my pimatic setup under Pi3 has a weird behaviour with this plugin.
Even using GoogleTTS nor Pico2Wave, the voice reproduces SO SLOWLY that it’s hardly difficult to understand.
I’ve checked up that CPU/MEM are not high when reproducing.
¿Any clue about the cause of this?EDIT: I forgot to mention that i’m using the Google AIY Voice Hat and the included speaker
Anyone?
-
@ortin said in Pimatic-TTS (Text to Speech) Released:
One question regarding the speech velocity of goolge tts. Even on 100 the good girl sounds a little dreamy. I think this is a google limitation and can’t be speed up little bit, right?
Same here. On 100% it is slow but OK. Would be nice to get it faster for sure. Seems @Dan ist currently offline here. When he comes back he will fix it if possible for sure!
-
@ortin said in Pimatic-TTS (Text to Speech) Released:
@ortin said in Pimatic-TTS (Text to Speech) Released:
One question regarding the speech velocity of goolge tts. Even on 100 the good girl sounds a little dreamy. I think this is a google limitation and can’t be speed up little bit, right?
Same here. On 100% it is slow but OK. Would be nice to get it faster for sure. Seems @Dan ist currently offline here. When he comes back he will fix it if possible for sure!
Hi @OrTiN , even at 100 my speech is not ok. See an example (in spanish, sorry) https://1drv.ms/u/s!AuWWBN1brMygkyWRQVrPH4DCylNJ
-
Wow, that is really slow!