PulseAudioä¸ã®é²é³ã«é¢ããè¦ãæ¸ã(WAVEå½¢å¼ã§ã®ä¿å)
ããã§ã¯ãPulseAudioä¸ã®é³å£°ãã¼ã¿ãé²é³ãã¦WAVEå½¢å¼ã«ä¿åããããã®2éãã®æ¹æ³ãæ±ãã
(2015/1/10)PulseAudioãçµ±åãããæ°ãããã£ã¹ããªã§ã¯ã¢ããªã±ã¼ã·ã§ã³ã®åºãé³ã¯ALSAåãã®ã¢ããªã±ã¼ã·ã§ã³ãããé²é³ã§ãããã¾ããparecãªã©ã®å°ç¨ãã¼ã«ã§ãç´æ¥WAVEå½¢å¼ã«æ¸ãåºãé²é³ãã§ããã
GStreamerã使ç¨ããæ¹æ³
GStreamerã®PulseAudioãã©ã°ã¤ã³*1ã使ç¨ãããã¨ã§ãWAVEå½¢å¼ã®ãã¡ã¤ã«ã«ä¿åãããã¨ãã§ããã使ç¨ããã®ã¯gst-launchã¨ããã³ãã³ãã§ãGentooã§ã¯gst-launch-0.10ã®ãããªã³ãã³ãåã«ãªã(media-libs/gstreamerã«å«ã¾ãã)ãDebian/Ubuntuã§ã¯ãgstreamer-toolsãã¨ããããã±ã¼ã¸ã«å«ã¾ããã
é²é³ããããã¤ã¹ã®æå®ã«é¢ããæ±ãã¯ãPulseAudio上の録音に関する覚え書き(オーディオストリームの録音)ãã¨åæ§ã
Sink(åºå)å´ã®é²é³
device=ãªãã·ã§ã³ã§ãåºåå ããã¤ã¹ã®ã¢ãã¿ããã¤ã¹ãæå®ãããä¸ã¯ãã¢ãã¿ããã¤ã¹åããalsa_output.default.monitorãã®å ´åã®ä¾ã
$ gst-launch pulsesrc device=alsa_output.default.monitor ! queue ! audioconvert ! wavenc ! filesink location=out.wav (Ctrl+Cãæ¼ãã¨åæ¢)
Source(å ¥å)å´ã®é²é³
device=å¼æ°ã¯ä»ããªãã$ gst-launch pulsesrc ! queue ! audioconvert ! wavenc ! filesink location=out.wav (Ctrl+Cãæ¼ãã¨åæ¢)
JACK Audio Connection Kitã¨é£æºããæ¹æ³
è¨å®ãã¡ã¤ã«default.pa*2ã§module-jack-sinkã使ç¨ããããã«è¨å®ãã*3ã¨ãPulseAudioããã®ãªã¼ãã£ãªåºåãJACK Audio Connection Kitã®åºåãã¼ãã¨ãã¦ãå¥ã®JACKã¢ããªã±ã¼ã·ã§ã³ã®å ¥åãã¼ãã¨æ¥ç¶ãããã¨ãã§ãããããã«ãããJACKåãã®ã¢ããªã±ã¼ã·ã§ã³ã§é²é³ãããã¨ãã§ããããã¡ãããJACK Rackãªã©ãéä¸ã«æãã§å å·¥ããé³ããªã¢ã«ã¿ã¤ã ã§é²é³ãããã¨ãå¯è½ãã¾ããåæ§ã«ãmodule-jack-sourceã使ç¨ããå ´åãJACKå´ãããPulseAudio JACK Sourceãã®ãã¼ãã¸æ¥ç¶ãããã¼ã¿ãPulseAudioå´ã§Sourceã¨ãã¦ä½¿ç¨ã§ããã
ä¸ã®ç»åã¯ä¸¡æ¹ã®ã¢ã¸ã¥ã¼ã«ã使ç¨ããã¨ãã®JACKå´ã®æ¥ç¶ç¶æ³ã
(2008/9/13)ããããPulseAudio JACK Sinkããããsystemãã¸èªåçã«ä½æãããæ¥ç¶ã(éä¸ã«JACKã¢ããªã±ã¼ã·ã§ã³ãæããªã©ã®é½åã§)éªéã«ãªãã®ã§ããã°
$ pulseaudio &; sleep 3 && jack_disconnect "PulseAudio JACK Sink:front-left" system:playback_1 && jack_disconnect "PulseAudio JACK Sink:front-right" system:playback_2
ã®ãããªå½¢ã§PulseAudioãèµ·åããã¨ãæ¥ç¶å¾ããã«åæããããã«ãªãã
ä¾: JACK Timemachineã§é²é³ãã
ã音飛びに強く、音声放送などの録音にも役立つ録音ツールãã§æ±ã£ã¦ããéããJACK Timemachineã使ç¨ãããã¨ã§ãJACKã®ãªã¼ãã£ãªã¹ããªã¼ã ãWave64ãããã¯WAVE(-f wavãªãã·ã§ã³ä½¿ç¨æ)ã®å½¢å¼ã§ä¿åãããã¨ãã§ãããé²é³ã¯ããã¿ã³ãæ¼ãã10ç§åã®ç¶æ ããéå§ãããããã¼ãã®æ¥ç¶ã«é¢ãã¦ã¯ãç»åã®ããã«ãPulseAudio JACK Sinkãããå¼ã£å¼µã£ã¦ããã
(64bitã§ãªã)WAVEå½¢å¼ã§ä¿åããããã®ã¢ã¼ãã§Timemachineããã¹ã¯ãããç°å¢ã®ã¡ãã¥ã¼ããèµ·åããããã®.desktopãã¡ã¤ã«ã¯ã同記事ã®è¿½è¨ãåç §ã
ä¸ã¯ãéä¸ã«JACK Rackãæãã å ´åã®ãã¼ãæ¥ç¶ä¾ã®åèç»åã
使ç¨ãããã¼ã¸ã§ã³:
- PulseAudio 0.9.10(0.9.10-r51)
- GStreamer 0.10.20
- gst-plugins-pulse 0.9.7
- JACK Audio Connection Kit 0.109.2(0.109.2-r1)
- QjackCtl 0.3.2
*1:ããã±ã¼ã¸åã¯ãDebian/Ubuntuã§ã¯ãgstreamer0.10-pulseaudioã(0.10ã®é¨åã¯ä»å¾å¤æ´ãããå¯è½æ§ããã)ãGentooã§ã¯ãgst-plugins-pulseã
*2:ãããã¯PulseAudioã®èµ·åæã«-nF [.paãã¡ã¤ã«]ãªãã·ã§ã³ã§ä»£ããã«æå®ããå¥ãã¡ã¤ã«
*3:module-hal-detectãmodule-detectãmodule-alsa-sinkã¨ãã£ãã¢ã¸ã¥ã¼ã«ã®èªã¿è¾¼ã¿é¨åãå ¨ã¦ã³ã¡ã³ãã¢ã¦ããã¦ããload-module module-jack-sinkãã追å