We have moved at community.getvera.com

Author Topic: New TTS engines  (Read 12019 times)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
New TTS engines
« on: January 18, 2014, 12:16:17 pm »
I open a new topic after a short discussion in private with one of you.

Apparently it exists alternatives to Google TTS engine like Cepstral or the OSX TTS engine that we could easily use in the plugin (in place of Google).

First I changed a little the code to make it more easy to add an alternative TTS engine (mainly put the specific code for Google in a function).

I hope we can have good news soon.

Offline flyveleder

  • Full Member
  • ***
  • Posts: 191
  • Karma: +5/-14
Re: New TTS engines
« Reply #1 on: January 18, 2014, 01:20:11 pm »
One of the best engines I have come across is this one : http://demo.acapela-group.com/

Sounds perfect in my language (Danish)

/Martin

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #2 on: January 18, 2014, 01:28:04 pm »
Of course, we need an engine offering an API and if possible through a simple HTTP request.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #3 on: January 18, 2014, 01:37:07 pm »
One of the best engines I have come across is this one : http://demo.acapela-group.com/

Sounds perfect in my language (Danish)

Oh yes, not too bad in French too 8)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #4 on: January 18, 2014, 01:40:07 pm »
Google TTS is a free service available on the Internet.

We could imagine to use a TTS engine not directly on the Internet but running on a server in our LAN network.
I think this is what will be explained for example with the OSX TTS engine.
What we need here is an HTTP API to request the engine to produce the audio file.

Offline flyveleder

  • Full Member
  • ***
  • Posts: 191
  • Karma: +5/-14
Re: New TTS engines
« Reply #5 on: January 18, 2014, 01:46:44 pm »
Vera being Linux - maybe installed straight onto the device itself ? ;-) ...

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #6 on: January 18, 2014, 01:48:06 pm »
One of the best engines I have come across is this one : http://demo.acapela-group.com/

A cloud service seems to be available.
I imagine it is not free ?

Offline ericonvera

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: New TTS engines
« Reply #7 on: January 19, 2014, 01:43:09 pm »
I've succeeded in implementing this using the TTS Server provided here -> http://wolfpaulus.com/jounal/mac/ttsserver/

The big benefits of using this are that it doesn't require an internet connection, it will always exist (meaning google can't just pull the plug), it's customizeable (you can select from many voices and adjust the speech rate), and it's just cool.

I have an implementation file for @lolodomo to review as I'm not sure of the best way to implement this in a way without my hardcoded values pointing at my server.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #8 on: January 19, 2014, 02:26:21 pm »
I've succeeded in implementing this using the TTS Server provided here -> http://wolfpaulus.com/jounal/mac/ttsserver/

That's really a great news. 8)

Quote
The big benefits of using this are that it doesn't require an internet connection, it will always exist (meaning google can't just pull the plug), it's customizeable (you can select from many voices and adjust the speech rate), and it's just cool.

I am curious to know if it exists available TTS engine, free if possible, that could be run for example on a raspberry Pi ?

Quote
I have an implementation file for @lolodomo to review as I'm not sure of the best way to implement this in a way without my hardcoded values pointing at my server.

I have to see your code but I think a simple variable to define the URL of the TTS server could probably solve this problem.

Offline ericonvera

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: New TTS engines
« Reply #9 on: January 19, 2014, 02:43:50 pm »
Cepstral works on a raspberry pi. They have a page on their website talking about this. It's quite inexpensive from what I understand. The API could probably be put together in a few lines of python.

Sent from my SCH-I545 using Tapatalk

Edit: here's the link -> http://www.cepstral.com/en/raspberrypi
« Last Edit: January 19, 2014, 02:52:30 pm by ericonvera »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #10 on: January 19, 2014, 03:09:17 pm »
Cepstral works on a raspberry pi. They have a page on their website talking about this. It's quite inexpensive from what I understand. The API could probably be put together in a few lines of python.

I tried the demo voices from Cepstral and I am not fully convinced by the quality ! Plus there is no French voices of France :)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #11 on: January 19, 2014, 03:57:40 pm »
I just tested patched version by @ericonvera and it is working very well ... but you don't have the choice of the language.

The way to request TTS is absolutely similar to what we do with Google, but in this case you point to a personal TTS server rather than Google.

I will make the required changes and then commit that very soon. 8)


Integration of other TTS engines is of course welcome.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engines
« Reply #12 on: January 19, 2014, 04:06:39 pm »
http://wolfpaulus.com/jounal/mac/ttsserver/

This article has a link to LumenVox: http://www.lumenvox.com/products/tts/
You can try TTS and it is working pretty well. But prices seem to be very high. Maybe not a solution for personal use.

Offline ericonvera

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: New TTS engines
« Reply #13 on: January 19, 2014, 04:22:05 pm »
I just tested patched version by @ericonvera and it is working very well ... but you don't have the choice of the language.

I just downloaded a French voice on my mac. If you choose "Audrey" from the list of available voices in that admin panel I linked you, you'll get French support. I've set it up as the default just so you can hear it. Let me know if it works for you.

Offline SM2k

  • Full Member
  • ***
  • Posts: 179
  • Karma: +4/-0
Re: New TTS engines
« Reply #14 on: January 19, 2014, 08:58:06 pm »
Some time ago, I built a TTS replacement using python's SimpleHTTPServer and OSX's say command, just in case google's service ever went away. If anybody's interested, I can find the code and post it.