[WIP] PythonicSpeaker TTS [Python + Lua]

Post Reply
User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

[WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

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
Last edited by iangp on Mon Oct 12, 2015 18:35, edited 4 times in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

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...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

If someone test it, please let me know..
I want know if it's working or not !!!
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by kaeza » Post

The download link takes you to a file named `starwars.zip` that's not what you are advertising here.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

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...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

Update: Added dependencies list...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


arpruss
Member
Posts: 39
Joined: Sat Sep 26, 2015 14:01
GitHub: arpruss

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by arpruss » Post

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.
Last edited by arpruss on Tue Oct 13, 2015 16:03, edited 1 time in total.

User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

*-*
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
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by Sokomine » Post

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.
A list of my mods can be found here.

User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

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
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by Sokomine » Post

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).
A list of my mods can be found here.

User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

"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...
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by Sokomine » Post

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.
A list of my mods can be found here.

User avatar
iangp
Member
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp
Location: Brasil - ES

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Post

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
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):


Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [WIP] PythonicSpeaker TTS [Python + Lua]

by Sokomine » Post

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".
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests