[WIP] PythonicSpeaker TTS [Python + Lua]

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

[WIP] PythonicSpeaker TTS [Python + Lua]

by iangp » Sun Oct 11, 2015 18:56

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Sun Oct 11, 2015 21:04

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Sun Oct 11, 2015 21:47

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
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Sun Oct 11, 2015 23:12

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Sun Oct 11, 2015 23:49

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Mon Oct 12, 2015 18:36

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 » Mon Oct 12, 2015 18:43

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Mon Oct 12, 2015 19:36

*-*
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: 3827
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Thu Oct 15, 2015 04:18

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Thu Oct 15, 2015 11:26

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: 3827
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Thu Oct 15, 2015 23:58

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Fri Oct 16, 2015 00:17

"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: 3827
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Fri Oct 16, 2015 01:10

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
Location: Brasil - ES
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

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

by iangp » Fri Oct 16, 2015 10:42

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: 3827
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Sun Oct 18, 2015 03:16

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.
 


Return to WIP Mods



Who is online

Users browsing this forum: orwell and 2 guests