I have built an application using Java Sound API which enables to record and play the voice and the program shows a wave form of the recorded voice after the recording is finished. I want to show the wave form at the same time when the recording is done. Can anyone suggest a method or a java library to achieve this?
Thanks a lot.
You could use Processing for your visualization. It does a good job of visualizing realtime data. Write your analyzer using Java Sound API to process the audio input in real time, and draw the visualization using processing.
Related
Is it possible to capture a video stream from a game in windowed mode?
I tried using "FFmpeg" to get only a record of applications not related to Directx or Open GL.
When recording games, a duplicate video stream consisting of black frames is obtained.
Attempting to record a game Devil May Cry 5 in windowed mode using FFmpeg
Any capture methods related to Java are needed. Since my course project is based on the knowledge of this language. Thanks in advance!
If you simply need to record something happening on your screen use OBS https://obsproject.com/ - its free and will directly copy whatever's on your screen, then just use any video editor to reduce anything on the recording you don't want
I want to know if it is possible to access the audio that is currently playing on the Android device.
Example: if Spotify is running in the background, I want to access the audio to control some LEDs that are connected to my RaspberryPi.
I want to create some sort of equalizer that changes colors depending on the sound that is currently playing. I appreciate if some one could tell me if accessing the main audio output is possible or not.
Unless you are using a rooted phone, it's not possible to capture output of a random app on Android.
You can however create an app that plays media files and captures the output for the purpose of visualization with "Visualizer" effect. You can take a look on the sample here: https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/media/AudioFxDemo.java
(look for "Visualizer").
If you are using Raspberry Pi anyway, you can just play all your music through it, capture and analyze it there. You will need an external USB sound card though. See for example this post: http://www.g7smy.co.uk/2013/08/recording-sound-on-the-raspberry-pi/
There they just record and play audio back, but you can insert an analysis phase in between.
I need to implement a voice activity detection algorithm in Java so that I can know when to start and/or stop recording audio. I am looking for an algorithm that can take either a byte[], a target-data-line, or an audio file as input. Also, a solution would preferably not use external dependencies.
Give a look at TarsosDSP as source of inspiration: It is so far the best open source Java library to deal with Audio Detection. It is purely written in Java and briefly provides:
SoundDetection
PitchDetection
PercussionDetection
Audio Time Stretching
Pitch Shifting
IIR-filters
Check also the official paper and manual for a better grasp on the topic.
I am busy with a movie/video-clip player/library.
I want to do this in JavafX. Almost 90% of the video clips is in AVI format. I cannot for several reasons covert the movies/video-clips.
I also want the program to mark the video files that were played, from start to complete, so that I will know what have been watched. So the program needs to be able to interact with the video player to know when the video has played to the end.
JavafX doesn't allow playback for AVI files. What's the alternative to be able to use this with? And how will I know if the video has fully played from beginning to end.
I read the following
Adding other video codecs / DVD support to JavaFX 2.2
Where they suggest I use portable VLC player. Is this the best way to use it in JavafX and if possible does the API have register hooks to register a method that can be triggered to know when the video has stopped?
I am working on an application that needs to record audio streams from online radio, either live (that broadcasts to everybody) or on demand (like last.fm and pandora), is there any tool that can help me do so, or an opensource code that does so,please if any body knows how this can be done help.
Thanks