Text to speech

For developers using the Construct 2 Javascript SDK

Post » Mon Jun 27, 2016 12:09 pm

Has anyone been thinking of creating or has created a C2 plugin to enable text to speech within games?

It would probably involve using the Web Speech API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API

Thanks for any insights.
B
10
S
3
Posts: 87
Reputation: 957

Post » Mon Jun 27, 2016 12:50 pm

I made a plugin awhile ago for android for TTS. Never advanced it all the way... its not too hard to do but it sometimes is very platform dependent.
B
42
S
18
G
8
Posts: 495
Reputation: 8,410

Post » Tue Jun 28, 2016 12:21 pm

The User Media object already supports this. There's a "speech synthesis" demo built-in to C2 that demonstrates it.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Mon Jul 04, 2016 4:19 pm

@Ashley Great, hadn't noticed this. Thanks for the great work.
B
10
S
3
Posts: 87
Reputation: 957

Post » Wed Oct 19, 2016 11:51 pm

@Ashley

Im testing the usermedia speech synthesis in NW.
It then only has 1 voice, but with normal chrome it has multiple.
Can i add more voice into NW?
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Thu Oct 20, 2016 10:45 am

I don't think so. Presumably the custom voices are proprietary and part of Chrome but not Chromium.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Thu Oct 20, 2016 12:26 pm

Thank you for the answer.
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Wed Feb 01, 2017 5:30 am

@Ashley but dont work in intel xdk...The @cranberrygame made a plugin that works how much is exported to the intel xdk, because his plugin has no pitch and rate. The user media has, but only works in the browser. Using intel xdk does not work. Its support says it has to do with the Intel Xdk webview, but how does the cranberrygame and Scirra plugin work?
B
8
S
1
Posts: 6
Reputation: 412


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests