Caution
This library is feature complete but there is still a potential for bugs, please report all of them here
- Proximity voice chat
- Sound categories
- Groups
- Customisation
- Codec
- Distance
- MTU
- Keepalive
- Recording
Gradle (Kotlin)
repositories {
mavenCentral()
maven("https://repo.hypera.dev/snapshots/")
}
dependencies {
implementation("dev.lu15:simple-voice-chat-minestom:0.1.0-SNAPSHOT")
}Gradle (Groovy)
repositories {
mavenCentral()
maven { url 'https://repo.hypera.dev/snapshots/' }
}
dependencies {
implementation 'dev.lu15:simple-voice-chat-minestom:0.1.0-SNAPSHOT'
}Maven
<repository>
<id>hypera.dev</id>
<url>https://repo.hypera.dev/snapshots/</url>
</repository>
<dependency>
<groupId>dev.lu15</groupId>
<artifactId>simple-voice-chat-minestom</artifactId>
<version>0.1.0-SNAPSHOP</version>
</dependency>Java Example
VoiceChat voicechat = VoiceChat.builder("0.0.0.0", 21000) // create a new voice chat instance
.mtu(1024) // Set the mtu of the voice server. This is used determine the largest size of a packet.
.groups(true) // Enable groups
.recording(true) //
.publicAddress("voice.example.org:30000") // Set the public address of the voice server. This is used to tell clients where to connect to.
.enable(); // Start the server