soundcard

How to create a surround effect using python by controlling the volume of speakers channels?

自作多情 提交于 2020-07-23 06:48:21
问题 I have bought a soundcard: Focusrite Scarlett 4i4 3rd Gen , with 4 outputs channels. I also have 4 speakers and I will link each speaker with the soundcard. I would like to be able to set separately the volume of each speaker, with maybe a tkinter interface (ultimately, but that is not the point). I have seen that we could have plenty of different librairies (I'm using windows 10 for this project): the ones that seems to be interesting are sounddevice and soundcard. I would though like to

How to create a surround effect using python by controlling the volume of speakers channels?

☆樱花仙子☆ 提交于 2020-07-23 06:46:16
问题 I have bought a soundcard: Focusrite Scarlett 4i4 3rd Gen , with 4 outputs channels. I also have 4 speakers and I will link each speaker with the soundcard. I would like to be able to set separately the volume of each speaker, with maybe a tkinter interface (ultimately, but that is not the point). I have seen that we could have plenty of different librairies (I'm using windows 10 for this project): the ones that seems to be interesting are sounddevice and soundcard. I would though like to

How to use portAudio to read audio data output from sound card?

旧街凉风 提交于 2019-12-25 14:48:15
问题 I was wondering if it is possible to read data that is going from the sound card to the speakers with the PortAudio API. After looking through the documentation, I found an example (http://portaudio.com/docs/v19-doxydocs/paex__record_8c_source.html) where they read data from the microphone. However, I would like to be able to capture the audio that is coming from the sound card. Is there a way to do this in PortAudio and if not please point me in the right direction. Also, it is important

How can I notify my application that the default sound playback device has changed?

岁酱吖の 提交于 2019-12-13 00:54:53
问题 I have two sound cards on my Win XP SP3 computer, and I've written a C++ app, with which I change the default playback device by editing the following Registry entry: regKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Multimedia\Sound Mapper", true); My app changes the "Playback" key value for the purposes of using the first or second sound card as the default playback device. The problem is when I change the default device, the application still uses the old one (which was set as

Set up Raspberry Pi 3 USB mic ( creative sound blaster )

倾然丶 夕夏残阳落幕 提交于 2019-12-11 04:45:28
问题 Can someone please help me in setting up my RPi 3. I'm tying to build a speech to text / speech recognition with my gaming headset (Creative Technology, Ltd Sound Blaster Tactic(3D) Sigma sound card). The speakers are now working but unfortunately I'm stuck in setting up the mic. Before i tweaked the settings, I can record/create a wav file but whenever i play the wav file there's no sound. After changing some settings, i'm encountering new error below. Thanks in advance! Error: pi

Output sound to multiple channels of the sound card

江枫思渺然 提交于 2019-12-10 10:14:05
问题 I am trying to build a program in Java, which would be able to output sound to different output lines on my sound card. How is it possible to do in Java? 回答1: I'm not sure what background you have in working with sound (it might be bigger than mine) but what I think you have is a number of lines that you want to direct to a number of ports? http://download.oracle.com/javase/7/docs/api/javax/sound/sampled/package-summary.html - This might be an API for this, which I don't know much about (I've

Taking control of the soundCard with JAVA

不打扰是莪最后的温柔 提交于 2019-12-08 09:48:36
问题 I'm trying to build a "mixing console" in JAVA. In this mixer, each "slider" would be a line, as if it was a physical mixing console. But, after my search on Goo*** and read the oracle documentation, I didn't really find anything to help me. First, I list the mixers available (see code at the end) and happily, it list all my soundcards and find the line in and line out. But then, what I have to do ? My aim is to create "virtual line" that will catch the sound from any line in (microphone) or

Output sound to multiple channels of the sound card

谁说胖子不能爱 提交于 2019-12-05 23:08:15
I am trying to build a program in Java, which would be able to output sound to different output lines on my sound card. How is it possible to do in Java? I'm not sure what background you have in working with sound (it might be bigger than mine) but what I think you have is a number of lines that you want to direct to a number of ports? http://download.oracle.com/javase/7/docs/api/javax/sound/sampled/package-summary.html - This might be an API for this, which I don't know much about (I've seen a program using something like that with VoIP). By the way if yr working on Windows, I believe that

Playing 2 musics through 2 different sound cards at same time

亡梦爱人 提交于 2019-12-04 16:53:57
问题 Trying something pretty out of the box... I have a simple app with a button that when pushed, plays music out of the audio jack of my android tablet. public void btn1 (View view) { MediaPlayer mp = MediaPlayer.create(this, R.raw.xxx); mp.start(); } I've now added a usb audio interface (through a micro usb adapter) and I can hear audio out of it. I'm able to list the sound cards with this AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); for

Playing 2 musics through 2 different sound cards at same time

半世苍凉 提交于 2019-12-03 10:51:56
Trying something pretty out of the box... I have a simple app with a button that when pushed, plays music out of the audio jack of my android tablet. public void btn1 (View view) { MediaPlayer mp = MediaPlayer.create(this, R.raw.xxx); mp.start(); } I've now added a usb audio interface (through a micro usb adapter) and I can hear audio out of it. I'm able to list the sound cards with this AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); for (AudioDeviceInfo device : devices) { int b = device.getId(); int d = device.getType(); CharSequence productName =