SpeechReceiver | Receive voice data. Alpha 0.1

Wanna cast Harry Potter spells in Minecraft? With the incantation?

  1. Gober
    Native Minecraft Version:
    1.15
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    Languages Supported:
    English
    SpeechReceiver

    Voice-activation in Minecraft, is real.

    • Using Google-speech-to-text-API (requires Valid Internet)
    • You can voice activate in different servers.
    • Using game client
    Requirements:
    VoiceRecognizer (For client/players 2.7 MB)

    Addons: (Add to your server)
    HarryPotterVR

    There are currently 9 spells:
    • 'Wingardium Leviosa'
    • 'Avada Kedavra'
    • 'Protego' (Deflects any coming spell for 4 seconds)
    • 'Recanto Meteolojinx' (Weather clear)
    • 'Expelliarmus'
    • 'Stupefy'
    • 'Ascendio'
    • 'Crucio'
    • 'Petrificus Totalus'
    And yes, you need a wand (stick).

    SERVER
    1. Install SpeechReceiver (this plugin) on your server
    2. Restart your server
    3. Go to /plugins/SpeechReceiver/config.yml
    4. Change port to anything you'd like, as long as it's open. (Some servers have their port closed, you might need someone to open this port)
    4.5. (OPTIONAL)
    Install Addons (You can do this later)
    5. Restart your server and you are ready to receive voices.

    CLIENT/PLAYERS
    0. Join the Minecraft Server

    1. Download the client (link above)
    2. Open the client and you'll see something like this: (Ik it looks bad T-T)
    upload_2020-4-24_22-17-39.png
    3. Put your server numeric ip at 'Server IP' and the port you used on your SpeechReceiver's Port. (See server installation step 3)

    4. Put your player name at 'Player Name' box.

    5. Go to Minecraft and do the command /voicepassword <password>

    6. Use that same password on the password box.

    7. Click Connect

    8. Try saying something, if you the message 'Connected to Voice' exists on your Minecraft, you are connected and ready to go.

    Code (Java):
    /**
    * There is one event you can use to listen to voice events:
    * VoiceEvent.class
    *
    *
    */


    import com.jyckos.speechreceiver.events.VoiceEvent
    public class MyListener implements Listener {
    @EventHandler
      public void onVoice(VoiceEvent e) {
         Player p = e.getPlayer();
     
         // Player said 'kill everyone' on the client
         if (!e.getSentence().startsWith("kill everyone")) return;
         p.damage(100);
         // DO SOMETHING TO PLAYER
      }
    }
    egor123 likes this.