Page 1 of 1
[WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 11, 2015 18:56
by iangp
HI again,
(A long time ago...)
First:
I <3 Python
Everything started In the Brazilian Forum (Discussion in other languages:
viewtopic.php?f=24&t=9585).
I've interested to make a python API or even a python communication with Lua scripts;
Because python are beautiful and powerful language.
So, I made a little communication with the python interpreter... on Linux (I love Linux too)
When you open the chat and enter the message "say_item", the Lua scrip run the python script...
AND IT SPEAK WHICH ITEM YOU ARE HOLDING!!!
And when you type the command "/say Hello World", the script says Hello World!!!
This is AWESOME!!!
Dependencies:
--------------------------
On windows (tested on Windows 7 32bits [on virtualbox]):
python2.7
PyWin32
On linux (tested on ubuntu):
python2.7
Download the latest version on Dropbox
Download the latest version on GitHub
See my mods on GitHub
License:
Code: LGPL
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 11, 2015 21:04
by iangp
I'm working now on a way to make an audio file (must be a ogg file, but ok...)
just for play inside the game...
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 11, 2015 21:47
by iangp
If someone test it, please let me know..
I want know if it's working or not !!!
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 11, 2015 23:12
by kaeza
The download link takes you to a file named `starwars.zip` that's not what you are advertising here.
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 11, 2015 23:49
by iangp
Sorry XD,
kaeza wrote:The download link takes you to a file named `starwars.zip` that's not what you are advertising here.
Now it's fixed...
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Mon Oct 12, 2015 18:36
by iangp
Update: Added dependencies list...
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Mon Oct 12, 2015 18:43
by arpruss
Nice way to get TTS in Minetest! (Though you might want to use the insecure environment to make this work for users who have mod security activated.)
If you want to interface Python code with Minetest, you might also consider using the Raspberry PI Minecraft API which is designed for Python-Minecraft interfacing. My
RaspberryJamMod for Minetest implements most of this API and includes a lot of sample python scripts.
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Mon Oct 12, 2015 19:36
by iangp
*-*
I'm now looking your GitHub...
I'll study your code... nice work.
------------------------------------------------------------------------------------------
This is really amazing:
http://www.instructables.com/id/Python- ... Minecraft/
------------------------------------------------------------------------------------------
I didn't know about os.execute() restrictions, but could be really dangerous...
Thank's
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Thu Oct 15, 2015 04:18
by Sokomine
Text to speach might be very intresting. With that, mobs could actually say what they have to say! At least if speakers are turned on. Imagine a trader advertising his goods, or just some background chat. Though it might soon become too monotone.
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Thu Oct 15, 2015 11:26
by iangp
Yeah !!!
"mobs could actually say what they have to say"
That's a good a idea!
I'll implement it soon (each message from a entity => TTS speaker)
and put a setting for turn it on an off...
Two 'words':
Computer Scientists...
Some kind of AI...
the statement "Though it might soon become too monotone." could become false.
(*----*) heavy breathing
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Thu Oct 15, 2015 23:58
by Sokomine
iangp wrote:
Two 'words':
Computer Scientists...
Some kind of AI...
the statement "Though it might soon become too monotone." could become false.
That sounds like a good idea :-) AIs or robots could be expected to talk a bit strange. Monsters could also talk in a similar way as long as they don't have too much to say (but hopefully more than the "Die!" cry some mobs shout at each other).
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Fri Oct 16, 2015 00:17
by iangp
"hey don't have too much to say"
That's the point...
makes a true AI for mobs,
a real machine learning...
Imagine:
The mob NPC learns how to build a house alone, by itself... just looking for how you build
-----------------------------------------------------------------------------------------------------------------------------
When I graduate in Computational Physics at USP or even in Computer Science at UNICAMP
(Both are universities in São Paulo, here in Brazil... and I'm not at University yet)
maybe I could make this AI project in a lab...
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Fri Oct 16, 2015 01:10
by Sokomine
iangp wrote:
"hey don't have too much to say"
That's the point...
makes a true AI for mobs,
a real machine learning...
No, I mean it the opposite side around: As long as they don't talk too much, it won't become noticable too soon that they don't really modulate their voice(s?).
langp wrote:
Imagine:
The mob NPC learns how to build a house alone, by itself... just looking for how you build
The dungeon generator already beats many not-very-promising players hands-down when it comes to building something nice. Some players create very ugly cobble boxes. But that might not be the point. There are already mods out there who allow a mob to (re)create an existing building. See towntest or - newer and better - npcf for that.
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Fri Oct 16, 2015 10:42
by iangp
Oh, right (now I understood, sorry)!
monster aren't very intelligent => don't talk so much =>
so I think it's not necessary modulate their voices,
only if they might talk something more, like: "GRR... I WILL GET YOU" or some other hahaha
The map generator is really cool :D. Are they based on fractals?
And towntest looks cool... I just looked the old version...
Thanks for the tips
Re: [WIP] PythonicSpeaker TTS [Python + Lua]
Posted: Sun Oct 18, 2015 03:16
by Sokomine
iangp wrote:
Oh, right (now I understood, sorry)!
monster aren't very intelligent => don't talk so much =>
so I think it's not necessary modulate their voices,
only if they might talk something more, like: "GRR... I WILL GET YOU" or some other hahaha
Yes, that's what I wanted to say :-) It will only become a problem if they try to tell you the story of their life (though that might be short for a mob...spawned there, met a player, and that's it :))
langp wrote:
The map generator is really cool :D. Are they based on fractals?
Most of the mapgen experts talk about things like "perlin noise".