mixer

Pygame mixer in a subprocess does not work

孤人 提交于 2019-12-10 18:46:50
问题 Debian OS. I call a subprocess subprocess.Popen([sys.executable, "/home/pi/play_sound.py"]) And in play_sound.py, I play a sound with: def load_sound(url): class NoneSound: def play(self): pass if not pygame.mixer or not pygame.mixer.get_init(): return NoneSound() fullname = url try: sound = pygame.mixer.Sound(fullname) except pygame.error, message: print 'Cannot load sound:', fullname raise SystemExit, message return sound The problem is that when I run play_sound.py separately, it works

Android: How to configure “tinymix” to record system audio with “tinycap”

醉酒当歌 提交于 2019-12-10 16:51:50
问题 in Android it's currently impossible to record system-audio with the Android-SDK. Therefore I played around a bit with TinyALSA (since Android 4) and hope I can reroute the audio-out so I can record it. When I call "tinymix" on my device I get following configuration: ctl type num name value 0 ENUM 1 DL1 Equalizer Flat response 1 ENUM 1 DL2 Left Equalizer 450Hz High-pass 2 ENUM 1 DL2 Right Equalizer 450Hz High-pass 3 ENUM 1 Sidetone Equalizer Flat response 4 ENUM 1 AMIC Equalizer High-pass

Grab Audio Sessions as they appear in the windows audio mixer (C# or C++)

家住魔仙堡 提交于 2019-12-10 11:56:36
问题 I'm trying to figure out how to grab the individual audio streams as they appear in the audio mixer to reroute them to an aggregate audio device. I'm specifically looking to keep them as discreet streams for the purposes of the program I'm making (If they're muxed down to a 2-channel mix, that defeats the purposes of what I'm trying to achieve.) E.X.: (As I've just made this account, I apparently am not able to post images, so here's a link to the image) windows audio mixer In this, I'm

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

Working with audio in Java

假装没事ソ 提交于 2019-12-08 02:03:36
问题 I went over Java's tutorial on sounds but somehow it is way too complex for a beginner. It is here My aim is this: Detect all the audio input and output devices let the user select a audio input device capture what the user says output it to the default audio output device Now how do I go about doing that? Is there a better tutorial available? What I have tried: import javax.sound.sampled.*; public class SoundTrial { public static void main(String[] args) { Mixer.Info[] info = AudioSystem

Working with audio in Java

ⅰ亾dé卋堺 提交于 2019-12-06 11:12:44
I went over Java's tutorial on sounds but somehow it is way too complex for a beginner. It is here My aim is this: Detect all the audio input and output devices let the user select a audio input device capture what the user says output it to the default audio output device Now how do I go about doing that? Is there a better tutorial available? What I have tried: import javax.sound.sampled.*; public class SoundTrial { public static void main(String[] args) { Mixer.Info[] info = AudioSystem.getMixerInfo(); int i =0; for(Mixer.Info print : info){ System.out.println("Name: "+ i + " " + print

Audio Mixing with Java (without Mixer API)

筅森魡賤 提交于 2019-12-05 02:49:19
问题 I am attempting to mix several different audio streams and trying to get them to play at the same time instead of one-at-a-time. The code below plays them one-at-a-time and I cannot figure out a solution that does not use the Java Mixer API. Unfortunately, my audio card does not support synchronization using the Mixer API and I am forced to figure out a way to do it through code. Please advise. /////CODE IS BELOW//// class MixerProgram { public static AudioFormat monoFormat; private

京东云入选2019年度TOP100全球软件案例 新一代服务治理框架加速行业落地

萝らか妹 提交于 2019-12-04 20:02:52
11月14日-17日, 2019TOP100全球软件案例研究峰会(TOP100summit)在北京国家会议中心举办。Top100summit是科技界一年一度的案例研究峰会,每年会秉承“从用户角度出发,挑选年度最值得学习案例”的价值理念,甄选今年一年最值得研究和参考的行业100+顶级案例。京东云从超过500件案例中脱颖而出, 《非k8s环境服务网格落地——京东云内部服务网格实践》成功入围“2019年度最值得学习案例” 。 全球软件案例研究峰会(简称“壹佰案例”)是旨在发现科技界有案例教学意义的项目或方法论,如同商业领域的哈佛案例,崇尚专业的力量和案例落地实践的价值,向领先公司和早期实践者征集年度里程碑或杰出成果背后的案例故事,保证了每年发布的壹佰案例学习榜单是最有学习价值的。 京东云作为全平台云计算综合服务提供商,在产品开发时亦有诸多心得体会及成功案例。京东云拥有全球领先的云计算技术和丰富的云计算解决方案经验,在云迁移、混合元容灾、Cloud Native等领域做了非常多的技术积累和探索,而且在达达、京东到家团队中得到实际应用和验证。 在过去近两年的时间里,京东云完成了数次大型的技术产品迭代,凭借着自身的研发以及京东集团商业能力的服务输出,推出及更新多达数百款产品与服务,都具有清晰产业价值标签—— 京东云致力于成为最具产业属性的云智能厂商。 此次获奖的“服务网格

How to realize a multi channel audio pre-mixer in .net

孤街醉人 提交于 2019-12-04 12:25:49
I'd like to use C# to implement an application that can play multiple audio streams at the same time. Peanuts - now the interesting part: assuming every stream is single channel (mono) I want to adjust the volume for every speaker (5.1 or even 7.1) for every stream separately. I can use the windows mixer to do this, but the problem is, that there is only one mixer and I want to adjust this for every stream separately. Any ideas how to implement this? My first guess was to multiplex the stream eight times (7.1), apply the volume level for every "channel" and then send it to the windows mixer,

一文解析如何判断射频电路类型及指标

冷暖自知 提交于 2019-12-04 11:13:08
低噪声放大器(LNA) LNA 是一种特殊的放大器,主要用于射频接收机前端,将天线接收的信号以小的噪声和大的增益进行放大,对提高接收信号质量,降低噪声干扰,提高接收灵敏度有着极其重要的意义,它的性能好坏关系到整个通信系统的质量。 低噪声放大器的主要指标有:噪声系数(NF)、增益(Gain)、输入输出阻抗匹配程度(S11、S22、输入输出回波损耗或输入输出 VSWR)、线性性能(三阶交调点和 1dB压缩点)、反向隔离(S12)等。 由于 LNA位于邻近天线的最前端,它的性能好坏会直接影响接收机接收信号的质量。为了保证经天线接收的信号能在接收机的最后一级得到恢复,LNA 需要在放大信号的同时产生尽可能低的噪声和失真。 因此,在生产测试中,我们主要关注LNA的增益和噪声系数这两个参数。 射频 功率放大器(PA) 射频功率放大器用于发射机的末级,它将已调制的频带信号放大到所需要的功率值,送到天线中发射,保证在一定区域内的接收机可以收到满意的信号电平,并且不干扰相邻信道的通信。 不同的应用场合对发射功率的大小要求不一,如移动通信基站的发射功率可达上百瓦,卫星通信的发射功率可达上千瓦,而便携式无线通信设备却只需几十毫瓦到几百毫瓦。 射频功率放大器的主要指标有工作频段、输出功率、功率增益和增益平坦度、噪声系数、输入输出驻波比、输入输出三阶交调点、邻道功率比、效率等。 与低噪声放大器相比