Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Text To Speech

sven
Registered User
Quote
2023-08-21 13:09:36

Video:
https://www.youtube.com/watch?v=...
Download:
https://5v3n.itch.io/simple-text...

Made just for fun so dont expect anything too fancy here :D

Added second download that has Volume and Rate parameters.


Dieter
Guest
Quote
2023-08-21 15:27:58

This might come in very handy, thanks a lot!


andgameplay
Registered User
Quote
2023-08-21 16:57:43

Very interesting, thanks!


sven
Registered User
Quote
2023-08-21 22:54:54

Glad you find it useful.

Next version will have XML support -with that you can set volume/rate/gender/age/pitch and much more.

Updated:
Download link is same.
Youtube video:
https://www.youtube.com/watch?v=...


VP
Guest
Quote
2023-08-22 11:04:38

Fantastic work! This is great.


sven
Registered User
Quote
2023-08-22 21:40:58

Thanks VP

Updated:

Now it have SAVE command to save speech to a .wav file
(so you can modify it if needed)


just_in_case
Moderator
Quote
2023-08-23 06:11:50

Nice one @Sven, you should really try playing with CC source, as most of the people including me as well, don't prefer third party integration. You can already add libraries and all in the native version.

As you are so skilled I beleive you can bring more to the native engine of CC.


sven
Registered User
Quote
2023-08-23 10:30:24

Thanks for your feedback just_in_case
Coppercube sourcecode will be my next step for sure.

Here is version that doesnt require external exe file.
It creates vbs script and runs it.


/*
<action jsname="action_svcSpeak" description="svcSpeak">
<property name="txt" type="string" default="Hello" />
</action>
*/

action_svcSpeak = function()
{
}

action_svcSpeak.prototype.execute = function()
{

var c='Dim Message, Speak \n' +
'Message="' + this.txt + ' " \n' +
'Set Speak=CreateObject("sapi.spvoice") \n' +
'Speak.Speak Message \n';

ccbWriteFileContent("bleh.vbs", c);
system("bleh.vbs", true);
//ccbFileDelete("bleh.vbs");

return true;
}



Dieter
Guest
Quote
2023-08-23 13:21:57

That's really cool. But it also shows that none should ever assume the JS that runs within CC provides any sandbox-like security. Even tho, I would assume it fails on the webgl target.


okeoke
Registered User
Quote
2023-08-23 13:47:24

Hi Dieter,

You don't need to use any external tools to generate speech inside browsers:https://developer.mozilla.org/en...

Demo:https://codepen.io/groundtutoria...


sven
Registered User
Quote
2023-08-23 13:47:36

Yes its for windows app only.


Dieter
Guest
Quote
2023-08-23 21:22:03

Ok, thanks, also very useful.
I remember back in the days when I had that speech app on the atari ST, sounded just like Steven Hawkins. ^^


veganpete
Registered User
Quote
2023-08-24 09:25:21

@Dieter It's no coincidence that Stephen Hawking suddenly became a genius once he got the text-2-speech app installed on his wheelchair....


"Alexa, find: latest quantum physics theory".

"OK, here's what I found......All the evidence seems to indicate, that the universe has not existed forever, but that it had a beginning, about 15 billion years ago. This is probably the most remarkable discovery of modern cosmology. Yet it is now taken for granted. We are not yet certain whether the universe will have an end......"


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact