IDEA - speak_text - Activating speech TTS on the client

User avatar
lordfingle
Member
 
Posts: 65
Joined: Sat Apr 04, 2015 09:21
GitHub: eidy
IRC: lordfingle
In-game: lordfingle

IDEA - speak_text - Activating speech TTS on the client

by lordfingle » Sat Oct 29, 2016 15:06

Image

I am developing minetest for education.

In the past I have used "os.execute()" to do Text To Speech. It was suggested that this was a less that nice solution..... ahem

Obviously this doesn't work on servers and I am discovering I can't make it work on Android.

With this in mind I'm suggesting the lua command "player:speak_text(textToSpeak)" that invokes the client based synthesizer.

I am hanging this of the player object, as I feel it is effectively an extension of the player's hud. Do you agree?

I am currently prototyping this for Android successfully and would be able to implement this for Windows and MacOS.

What say you all about this being a good idea?
Attachments
TI_SpeakSpell_no_shadow.jpg
TI_SpeakSpell_no_shadow.jpg (106.15 KiB) Viewed 1285 times
----------------------------------------------------------------------------------------------
Team Lead on "eidy- Love learning"
I like reading, walks on the beach and building edutech experiences in lua (Find out more in this post)
"Coming together is a beginning; keeping together is progress; working together is success." - Henry Ford
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: IDEA - speak_text - Activating speech TTS on the client

by MineYoshi » Sat Oct 29, 2016 21:19

Well... Always that has good performance is ok!
If you try to implement a "Text2Speech" engine in Minetest then i don't know if the game can lag a bit...
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
srifqi
Member
 
Posts: 508
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: IDEA - speak_text - Activating speech TTS on the client

by srifqi » Sun Oct 30, 2016 10:32

I don't know how to send another type of packet to client...

EDIT: Actually, I forget what I want to say.
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
lordfingle
Member
 
Posts: 65
Joined: Sat Apr 04, 2015 09:21
GitHub: eidy
IRC: lordfingle
In-game: lordfingle

Re: IDEA - speak_text - Activating speech TTS on the client

by lordfingle » Wed Nov 02, 2016 00:04

I was thinking of calling the platform specific TTS API, not compiling in another library.
I know how to do this for Android and Windows...not so sure about Linux though (other than shelling out to run the espeak commandline)
----------------------------------------------------------------------------------------------
Team Lead on "eidy- Love learning"
I like reading, walks on the beach and building edutech experiences in lua (Find out more in this post)
"Coming together is a beginning; keeping together is progress; working together is success." - Henry Ford
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: IDEA - speak_text - Activating speech TTS on the client

by Sokomine » Tue Nov 29, 2016 16:44

TTS would be great for mobs. NPC could start talking to the player, so this could be a very useful feature. Has any progress been made on this?
A list of my mods can be found here.
 

User avatar
lordfingle
Member
 
Posts: 65
Joined: Sat Apr 04, 2015 09:21
GitHub: eidy
IRC: lordfingle
In-game: lordfingle

Re: IDEA - speak_text - Activating speech TTS on the client

by lordfingle » Wed Nov 30, 2016 05:28

We are testing this in the "eidy" branch here:

https://github.com/dgt0011/minetest/tree/eidy

Currently it uses Android TTS (whatever engine is installed on the device) and the "espeak" commandline for Windows, Mac and Linux, which is a bit fiddly.

I would like to call the Windows/Mac APIs directly.

I'm not sure there is a speech API for Linux?
----------------------------------------------------------------------------------------------
Team Lead on "eidy- Love learning"
I like reading, walks on the beach and building edutech experiences in lua (Find out more in this post)
"Coming together is a beginning; keeping together is progress; working together is success." - Henry Ford
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 5 guests

cron