Support me joining PI Network app with invitation code AlexKent
Are you curious on how to make spectrum analysers in Java? Well the below tutorials plus the above code are the solution .
Spectrum Analyzers
Java multiple audio formats player
Speech Recognition/Translation/Synthenizers
- Java Speech Recognition/Translation/Synthesizer based on Google Cloud Services
- Java-Speech-Recognizer-Tutorial--Calculator
- Java+MaryTTS=Java Text To Speech
- Java Speech Recognition Program based on Google Cloud Services
- Java Google Text To Speech
- Full Google Translate Support using Java
- Professional Java Google Desktop Translator
Example Usage ( Hey check here ):
importjavafx.application.Application;
importjavafx.scene.Cursor;
importjavafx.scene.Scene;
importjavafx.stage.Stage;
importjavax.swing.JFileChooser;
importjavax.swing.JOptionPane;
importjavax.swing.filechooser.FileNameExtensionFilter;
publicclassMainextendsApplication {
PlayerExampleplayerExample = newPlayerExample();
@Overridepublicvoidstart(StageprimaryStage) {
try {
// SceneScenescene = newScene(playerExample, 600, 600);
scene.setCursor(Cursor.HAND);
primaryStage.setScene(scene);
// ShowprimaryStage.setOnCloseRequest(c -> System.exit(0));
primaryStage.show();
// Selection of song to playJFileChooserjFileChooser = newJFileChooser();
jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
jFileChooser.setFileFilter(newFileNameExtensionFilter("audio","mp3","wav"));
jFileChooser.setAcceptAllFileFilterUsed(false);
while(true){
if(jFileChooser.showOpenDialog(null)==JFileChooser.APPROVE_OPTION){
playerExample.playSong(jFileChooser.getSelectedFile());
break;
} else{
JOptionPane.showMessageDialog(null,"Please choose audio file","Select audio",
JOptionPane.INFORMATION_MESSAGE);
}
}
} catch (Exceptionex) {
ex.printStackTrace();
}
}
publicstaticvoidmain(String[] args) {
launch(args);
}
}
