{"id":2228,"date":"2008-09-22T09:01:21","date_gmt":"2008-09-22T09:01:21","guid":{"rendered":"http:\/\/t.motd.kr\/articles\/2228\/streaming-audio-from-windows-to-pulseaudio-server"},"modified":"2022-12-28T01:45:35","modified_gmt":"2022-12-27T16:45:35","slug":"streaming-audio-from-windows-to-pulseaudio-server","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/","title":{"rendered":"Streaming Audio from Windows to PulseAudio Server"},"content":{"rendered":"\n

PulseAudio<\/a> is a great network audio server for Linux. It allows me to stream audio between machines. However, the biggest problem with PulseAudio is that it doesn\u2019t have a descent client implementation for Windows. There are a couple known workarounds such as using WinESD<\/a>, but they are all pretty experimental. Also, the Win32 binary build<\/a> didn\u2019t work for me, perhaps because it\u2019s somewhat outdated and buggy.<\/p>\n\n\n\n

My first try was to use LineInCode<\/a> and Netcat for Windows<\/a> on the client side and to use module-simple-protocol-tcp<\/code> on the server side. After adding -L \"module-simple-protocol-tcp port=4712 rate=44100 format=s16le channels=2\"<\/code> option to the PulseAudio startup option, I was able to stream audio from Windows to PulseAudio server using the following command:<\/p>\n\n\n\n

linco.exe -B 16 -C 2 -R 44100 | nc.exe <host> 4712<\/code><\/pre>\n\n\n\n

However, PulseAudio dies whenever the connection is closed because of a known issue of module-simple-protocol-tcp<\/code><\/a>. I wrote some script that restarts PulseAudio whenever it dies, but I realized there\u2019s a better solution \u2013 OpenSSH.<\/p>\n\n\n\n

I have installed a Cygwin<\/a> build of OpenSSH, and replaced Netcat with it:<\/p>\n\n\n\n

linco.exe -B 16 -C 2 -R 44100 | ssh.exe <user@host> \"cat - | pacat --playback\"<\/code><\/pre>\n\n\n\n

This solution works without module-simple-protocol-tcp<\/code>, and therefore there\u2019s no need to restart the PulseAudio server on disconnection. Better security is another bonus. Instead, it requires a running SSH<\/span> server. If SSHD<\/span> is not running in the PulseAudio server, you can give it a little twist:<\/p>\n\n\n\n

linco.exe -B 16 -C 2 -R 44100 | ssh.exe <user@otherhost> \"cat - | pacat --server <host> --playback\"<\/code><\/pre>\n\n\n\n

In case your Windows machine doesn\u2019t have a sound card or it doesn\u2019t allow you to capture the audio stream, you might want to use Virtual Audio Cable<\/a>. It\u2019s a commercial software, but it is worth a purchase.<\/p>\n\n\n\n

You might also want to set up a passwordless login<\/a> so you don\u2019t have to enter the password every time you stream the audio.<\/p>\n","protected":false},"excerpt":{"rendered":"

PulseAudio is a great network audio server for Linux. It allows me to stream audio between machines. However, the biggest problem with PulseAudio is that it doesn\u2019t have a descent client implementation for Windows. There are a couple known workarounds such as using WinESD, but they are all pretty experimental. Also, the Win32 binary build… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"Streaming Audio from Windows to PulseAudio Server — T's message of the day<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Streaming Audio from Windows to PulseAudio Server — T's message of the day\" \/>\n<meta property=\"og:description\" content=\"PulseAudio is a great network audio server for Linux. It allows me to stream audio between machines. However, the biggest problem with PulseAudio is that it doesn\u2019t have a descent client implementation for Windows. There are a couple known workarounds such as using WinESD, but they are all pretty experimental. Also, the Win32 binary build... Continue reading →\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\" \/>\n<meta property=\"og:site_name\" content=\"T's message of the day\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:published_time\" content=\"2008-09-22T09:01:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-27T16:45:35+00:00\" \/>\n<meta name=\"author\" content=\"Trustin Lee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/trustin\" \/>\n<meta name=\"twitter:site\" content=\"@trustin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trustin Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\"},\"author\":{\"name\":\"Trustin Lee\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"headline\":\"Streaming Audio from Windows to PulseAudio Server\",\"datePublished\":\"2008-09-22T09:01:21+00:00\",\"dateModified\":\"2022-12-27T16:45:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\"},\"wordCount\":278,\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\",\"name\":\"Streaming Audio from Windows to PulseAudio Server — T's message of the day\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\"},\"datePublished\":\"2008-09-22T09:01:21+00:00\",\"dateModified\":\"2022-12-27T16:45:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vault.motd.kr\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Streaming Audio from Windows to PulseAudio Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/\",\"name\":\"T's message of the day\",\"description\":\"the best is yet to come\",\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\",\"name\":\"Trustin Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"contentUrl\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"width\":966,\"height\":966,\"caption\":\"Trustin Lee\"},\"logo\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/t.motd.kr\/\",\"https:\/\/www.facebook.com\/trustin\",\"https:\/\/www.instagram.com\/trustinlee\/\",\"https:\/\/www.linkedin.com\/in\/trustin\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin\",\"https:\/\/www.youtube.com\/@trustinlee\"]}]}<\/script>","yoast_head_json":{"title":"Streaming Audio from Windows to PulseAudio Server — T's message of the day","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/","og_locale":"en_US","og_type":"article","og_title":"Streaming Audio from Windows to PulseAudio Server — T's message of the day","og_description":"PulseAudio is a great network audio server for Linux. It allows me to stream audio between machines. However, the biggest problem with PulseAudio is that it doesn\u2019t have a descent client implementation for Windows. There are a couple known workarounds such as using WinESD, but they are all pretty experimental. Also, the Win32 binary build... Continue reading →","og_url":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/","og_site_name":"T's message of the day","article_publisher":"https:\/\/www.facebook.com\/trustin","article_author":"https:\/\/www.facebook.com\/trustin","article_published_time":"2008-09-22T09:01:21+00:00","article_modified_time":"2022-12-27T16:45:35+00:00","author":"Trustin Lee","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/trustin","twitter_site":"@trustin","twitter_misc":{"Written by":"Trustin Lee","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#article","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/"},"author":{"name":"Trustin Lee","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"headline":"Streaming Audio from Windows to PulseAudio Server","datePublished":"2008-09-22T09:01:21+00:00","dateModified":"2022-12-27T16:45:35+00:00","mainEntityOfPage":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/"},"wordCount":278,"publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/","url":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/","name":"Streaming Audio from Windows to PulseAudio Server — T's message of the day","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#website"},"datePublished":"2008-09-22T09:01:21+00:00","dateModified":"2022-12-27T16:45:35+00:00","breadcrumb":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/2228\/streaming-audio-from-windows-to-pulseaudio-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vault.motd.kr\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Streaming Audio from Windows to PulseAudio Server"}]},{"@type":"WebSite","@id":"https:\/\/vault.motd.kr\/wordpress\/#website","url":"https:\/\/vault.motd.kr\/wordpress\/","name":"T's message of the day","description":"the best is yet to come","publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d","name":"Trustin Lee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","contentUrl":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","width":966,"height":966,"caption":"Trustin Lee"},"logo":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/t.motd.kr\/","https:\/\/www.facebook.com\/trustin","https:\/\/www.instagram.com\/trustinlee\/","https:\/\/www.linkedin.com\/in\/trustin","https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin","https:\/\/www.youtube.com\/@trustinlee"]}]}},"_links":{"self":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/2228"}],"collection":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=2228"}],"version-history":[{"count":2,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/2228\/revisions"}],"predecessor-version":[{"id":5954,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/2228\/revisions\/5954"}],"wp:attachment":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=2228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=2228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=2228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}