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
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in AUDIO
- how to play a sounds in c# forms?
- Winsound not working isn't working at all
- Ringing noise overpowering voice / Recording audio with Max 9814 microphone on Raspberry pi pico using ADC Pin / Circuitpython
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- gluon attach audio doesn't play any sound on android
- Implementing trim and fade filters with ffmpeg - MP3
- Unable to set device connection state as INPUT device type is none
- Is there a way to differentiate music and talking from a video?
- How to concatenate audio tracks and make them start a certain moment using Python?
- Combine two audio in different languages to one natural sounding
- STM32 - Serial Audio Interface (SAI) - dual data line transmit possible?
- playing mp3 downloaded via curllib gets cut short
- How to stream PCM audio to a speakers both on mac and linux in Node.js?
- Scikit-Maad -From the function rois.find_rois_cwt, I want to get a csv of the outputs so I can do my own analysis on it
- Using MediaPlayer slows down SoundPool sound effect
Related Questions in SIGNAL-PROCESSING
- What kind of ARIMA model would be best fit for this data?
- Find Transfer Function from FFT Plot MATLAB
- How can I calculate the SNR of a curve that has impulse noise added?
- How to decrease too many False Positives I get from a KNN classifier for ECG R-peak detection?
- Constant and inconstant values using NI-DAQmx Python API although not issues with NI SignalExpress 2015
- How to get the frequencies and corresponding amplitudes from the FFT of a signal?
- How to get the correct frequency amplitudes in the FFT of a signal
- Using FFT to sum independent random variables
- Decompose time-series signal into different components
- Cross-talk correction in 2D spectrum using Python
- How to remove constant part of a signal in python?
- Analyzing a Power Spectrum of an Audio File for Patterns
- Matlab Real-Time Audio Simulation Speaker Output, Annoying Clicking Issue
- Spectrogram PNG back to WAV Audio
- Is there a way to (automatically) detect if the channels of a stereo video/audio are out of phase and canceling each other?
Related Questions in SPEEX
- i want to speexCodec encoding & decoding
- SPEEX - AEC on Android device for stereo input
- PJSIP project not compiling with speex-aec enabled
- Java JNI native code jshortArray for audio lib/codec
- Libspeexjni JNI integration
- Csharp Echo Cancellation Speex
- How to implement VP9 codec in a free open source Peer-to-peer communication app?
- Speex encode in terminal MAC OS but command not found
- Recommendation on client side echo cancellations
- Cannot install speex using pip
- WebRtc Acoustic Echo Cancellation3 (AEC3) giving Flat MicOutPut after Echo Cancellation
- Compiling Speex and SpeexDSP for Android 64bit architectures results in "error: impossible constraint in 'asm'"
- add cpp classes into android project
- python install speex dsp module error
- speexenc unavailable after install speex on linux
Related Questions in JSPEEX
- Libspeexjni JNI integration
- JSpeex vs porting Speex in android?
- Decoding audio with Jspeex in android produces choppy/clipped sound
- Ideal Audio Formatting For Lagless Streaming?
- Packing Speex with Ogg on iOS
- When playing back decoded Speex data, all I hear is static
- speex and jspeex decoding
- Java applet to play SPEEX files from URL
- Encoding in WP7 with NSpeex works, decoding the stream on a JavaEE server with JSpeex does not
- jspeex, java.lang.NoClassDefFoundError in android
- JSpeex Decoding not working
- speex support in android
- Audio compression in android
- jspeex decoder not producing the correct output
- Can we play speex file from java?
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 # Hahtags
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.