hey im making a program in java were you type into a console then it responds back with the computer actually talking(with sound), im using the FreeTTs speech synthesizer. For some reason when i write the following code its output not what i want.
import java.util.Scanner;
import com.sun.speech.freetts.VoiceManager;
import com.sun.speech.freetts.Voice;
public class TextToSpeech {
    public static void main(String args[]){
         Scanner input = new Scanner(System.in);
         String userInput = input.nextLine();
         if(userInput == "hi"){
         Voice v;
         VoiceManager vm=VoiceManager.getInstance();
         v=vm.getVoice("kevin16");
         v.allocate();
         v.speak("Hey my name is jarvis");
         input.close();
         }else
             System.out.println("you suck try again");
    }
}
 
     
    