I have a number of voice sound streams encoded in PCM (PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian) which I want to send over the network. To save bandwidth I currently encode the streams using JSpeex. However to save even more bandwidth I would like to (if possible) combine these multiple streams into a single stream before encoding with JSpeex. My DSP knowledge is severely lacking & I am wondering how to go about combining the streams in Java?
Combining multiple sound streams in Java
4k Views Asked by dbotha At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in AUDIO
- Play multiple audio files in a slider
- Unity3d AudioSource not creatable
- JavaFX can't play mp3 files
- iPhone simultaneous sound output
- Phonegap Build App - Play Audio
- HTML5 Audio pause not working
- Java boolean play button issue (play over and over again with each click)
- import a sound externally or from the library? AS3
- Set audio source
- Saving a sound bite as a ringtone
- Using OnAudioFilterRead with playOnAwake
- Audio recorded with Samsung does not play on iOS
- fftw of 16bit Audio :: peak appearing wrong at 2f
- How to Export an audio file with effect in iOS
- Tried multiple solutions onsite, none worked: Play <audio> on Konami code
Related Questions in SIGNAL-PROCESSING
- Calculate energy for each frequency band around frequency F of interest in Python
- convert sound to list of phonemes in python
- Why is there a difference in magnitude response between scipy.filtfilt and scipy.lfilter?
- Image 2x downsampling with Lanczos filter
- Simple Python Median Filter for time series
- FFT Fundamental frequency calculation from LomontFFT
- Daubechies orthogonal wavelet in python
- fftw slight peak inaccuracy/drifting
- Zoom in on np.fft2 result
- How can I find process noise and measurement noise in a Kalman filter if I have a set of RSSI readings?
- Giving large no of samples to KissFFT
- FFT coefficients using python
- SignalGenerator class at naudio library - duration time play
- Extract binary data stream from audio signal
- FFT: find and cut noisy 50Hz in signal
Related Questions in SPEEX
- Convert void *(void * const mAudioData) to Short * using Objective c?
- How to Call SPEEX Audio Decode/Encode in HTML5 / JavaScript (Without Flash)
- speex support in android
- android speex mp3 file echo cancellation
- SPEEX - AEC on Android device for stereo input
- i want to speexCodec encoding & decoding
- C++ Speex to Flac wrapper/library
- Facing trouble to cancel acoustic echo using speex in Android
- Easiest way to use speex preprocessor in C#?
- Make portaudio and speex work together
- Python Audio over Network Problems
- #error You now need to define either FIXED_POINT or FLOATING_POINT
- Python ctypes & libspeex.dll/libspeex.so; what are the equivilents to #define, typedef, and structs?
- Convert wav to flv using speex codec
- Speex echo cancellation configuration
Related Questions in JSPEEX
- speex support in android
- Ideal Audio Formatting For Lagless Streaming?
- Libspeexjni JNI integration
- JSpeex vs porting Speex in android?
- speex and jspeex decoding
- Can we play speex file from java?
- Packing Speex with Ogg on iOS
- When playing back decoded Speex data, all I hear is static
- Speex encoding in Java
- WAV to Speex conversion taking a lot of time
- Combining multiple sound streams in Java
- Decoding audio with Jspeex in android produces choppy/clipped sound
- jspeex, java.lang.NoClassDefFoundError in android
- Help with creating a Speex Voip server and client
- Encoding in WP7 with NSpeex works, decoding the stream on a JavaEE server with JSpeex does not
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I combine multiple audio streams with this MixingAudioInputStream. The mentioned AudioConcat example uses the same class and it gives you a good idea of how to do the mixing.
You hand it a chosen format and a List of AudioInputStream objects and it mixes them down into one mixed AudioInputStream that you can send back to the clients.
I found it works well provided that your input stream lengths are more or less the same size in length.