I am writing a Java desktop application. One of the tasks is to make the previously recorded audio file output to one specific earpiece (right or left). I can't find anything about it anywhere. The closest thing I found: https://stackoverflow.com/questions/6458780/sending-a-buzz-sound-to-ear-bud-left-or-right But there we are talking about Android and it seems that it does not work.

  • four
    Alternatively, you can generate an audio file in stereo format, in one channel zeros and in another channel the information you need. And then the standard player to drive this file into the audio channel. - pepsicoca1
  • Thank! And where can I read, how to do it? - Maria Lifshits
  • @MariaLifshits download some lightweight application for working with audio files, and therefore, in Google, enter "program_name into different ears / channels". there works 2 minutes: find the necessary twisters (which, according to the default, will be in the middle) and tweak as you need. save. - Wlad
  • [And where can I read, how to do it?] Read the formats of audio files. Look for Java libraries to work with audio files. Something like this. Well, or deal with the interface to the audio driver. What OS? Windows or Linux? - pepsicoca1
  • OS - macOS. I understand, I will think. - Maria Lifshits

0