Wednesday, October 7, 2009

麦克风与music

最近玩起skype了. 说到skype, 我就被折腾得.... 呃!!!
搞alsa就扯到一堆与声音, 音乐相关的术语. 现在还没有搞清楚
不过最后使用了一个旧版本的skype才完成了语音通话

在保持通话连接的情况下有时需要来一段music, 想到了软件关掉microphone:

#!/bin/bash                                                                  
# shutdown microphone, otherwise no un-pause music 
amixer -c 0 set Capture nocap && mocp -U                   

当对方有话来时, 停掉music, 打开microphone:
#!/bin/bash                                                                                                         
# an error will raise if mocp server no running, but this is no-importance                
# example: You can stop microphone but no play music if mocp server no running 
mocp -P                                                                                                               
amixer -c 0 set Capture cap                                                                                  

把上面的两段代码绑定到两个hotkey上, 结果.... 就像DJ 一样, 想说话就说话, 想来music也行. 哈

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.