Page 1 of 1

In Game Voice Chat?

Posted: Tue Apr 19, 2016 03:57
by octacian
Is it possible to write a mod that allows players to talk to each other in the game if they are close enough that you would in reality be able to hear the other person? Even if it would have to be done in the base C++, I'd really like to see something like this.

It would be really cool for people like me who don't like having to use Skype or not being able to say something that the others won't hear.

Re: In Game Voice Chat?

Posted: Tue Apr 19, 2016 16:52
by azekill_DIABLO
hard to do ....

but great idea!!

Re: In Game Voice Chat?

Posted: Tue Apr 19, 2016 18:06
by Krock
If OpenAL supports recording audio, it must be processed in real-time by our ogg/vorbis libraries, so it's not required to flood the server with raw sound data. And in the server code it must be redirected/sent to all players at once, this means the data volume is proportional to the online and speaking people.
This is really a huge piece of work if someone would try to realise that!

Re: In Game Voice Chat?

Posted: Tue Apr 19, 2016 19:31
by rubenwardy
There's no need to reinvent the wheel.

Here is a PR that adds support for mumble, an existing ingame voice thing: https://github.com/minetest/minetest/pull/3739

Re: In Game Voice Chat?

Posted: Wed Apr 20, 2016 05:25
by Calinou
rubenwardy wrote:There's no need to reinvent the wheel.

Here is a PR that adds support for mumble, an existing ingame voice thing: https://github.com/minetest/minetest/pull/3739
To be accurate, it adds support for positional audio in Mumble, which is considered useless by many users. (It's what makes it sound like the in-game player is actually talking, you hear their voice coming from their character, but of course it can easily be disabled). Other than that, Mumble is usable in any program, even if it does not explicitly support it.

Re: In Game Voice Chat?

Posted: Fri Apr 22, 2016 00:50
by octacian
Calinou wrote:
rubenwardy wrote:There's no need to reinvent the wheel.

Here is a PR that adds support for mumble, an existing ingame voice thing: https://github.com/minetest/minetest/pull/3739
To be accurate, it adds support for positional audio in Mumble, which is considered useless by many users. (It's what makes it sound like the in-game player is actually talking, you hear their voice coming from their character, but of course it can easily be disabled). Other than that, Mumble is usable in any program, even if it does not explicitly support it.
Positional audio is exactly what I am looking for. That way many people can play on a server with voice chat yet not have everything become a huge mess since normally you would hear everyone at once. However, positional audio eliminates this problem and adds a whole new aspect of fun to the game. For example, you can plot against someone without having to mute Skype...

Re: In Game Voice Chat?

Posted: Fri Apr 22, 2016 00:52
by octacian
Krock wrote:If OpenAL supports recording audio, it must be processed in real-time by our ogg/vorbis libraries, so it's not required to flood the server with raw sound data. And in the server code it must be redirected/sent to all players at once, this means the data volume is proportional to the online and speaking people.
This is really a huge piece of work if someone would try to realise that!
If positional audio is used, then flooding of data would not be a problem because only specific data would have to be sent. I would like to see something like this directly built into Minetest though, like an option in the settings or something.

Re: In Game Voice Chat?

Posted: Fri Apr 22, 2016 01:10
by octacian
rubenwardy wrote:There's no need to reinvent the wheel.

Here is a PR that adds support for mumble, an existing ingame voice thing: https://github.com/minetest/minetest/pull/3739
I checked that out and downloaded the client from mumble.info. However, I cannot figure out how I am actually supposed to use this in Minetest. If you could explain further, I'd really appreciate that.

If possible, it would be really great to have this built in to Minetest though. Something you could enable or disable in the settings and such.