{"id":24867159,"url":"https://github.com/hmaier-dev/audio-stream","last_synced_at":"2025-03-26T20:14:24.667Z","repository":{"id":134673631,"uuid":"402060425","full_name":"hmaier-dev/audio-stream","owner":"hmaier-dev","description":"Stream internal audio from server to a client, using python sockets","archived":false,"fork":false,"pushed_at":"2023-07-16T17:20:34.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T01:56:50.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmaier-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-01T12:54:58.000Z","updated_at":"2022-02-07T12:22:48.000Z","dependencies_parsed_at":"2023-07-16T19:02:05.357Z","dependency_job_id":null,"html_url":"https://github.com/hmaier-dev/audio-stream","commit_stats":null,"previous_names":["hmaier-dev/audio-stream"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmaier-dev%2Faudio-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmaier-dev%2Faudio-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmaier-dev%2Faudio-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmaier-dev%2Faudio-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmaier-dev","download_url":"https://codeload.github.com/hmaier-dev/audio-stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727708,"owners_count":20662556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-01T01:56:57.428Z","updated_at":"2025-03-26T20:14:24.650Z","avatar_url":"https://github.com/hmaier-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# audio-stream installation\n\n---\n\n### Step 1\n\n- Clone this repository to both of your machines\n\n`git clone https://github.com/hmaier-ipb/audio-stream.git`\n\n### Step 2\n\n- Get the PyAudio-module installed\n- you need `pipwin` or the `python-pyaudio`- package, because these contain `portaudio` which is an C-Library that PyAudio uses to record/play audio. \n\n##### Windows\n`pip install pipwin`\n\n`pipwin install pyaudio`\n\n##### Linux\n`sudo apt install python-pyaudio`\n\n### Step 3\n\n- Enable a loopback audio interface. This is needed to record internal system audio. This loopback-interface is seen as a internals microphone.\n\n##### Pulseaudio on Linux\n`pactl load-module module-loopback`\n\n- You should get returned a number, which is the index number of the loopback-interface\n- Btw: this is just temporary, for more info visit [USB Audio Device Loopback Through Speakers](https://askubuntu.com/questions/19894/usb-audio-device-loopback-through-speakers) or [How to route pulse audio device into alsa loopback (virtual microphone)?](https://askubuntu.com/questions/895216/how-to-route-pulse-audio-device-into-alsa-loopback-virtual-microphone)\n- check `pavucontrol` to see if a new interface has appeared\n- move to the input-devices tab and set the loopback-interface as fallback\n\n##### Sound on Windows\n\n- activate your soundcard as default audio-input devices\n- here is a good article on how to do it [How to Record the Sound Coming From Your PC](https://www.howtogeek.com/217348/how-to-record-the-sound-coming-from-your-pc-even-without-stereo-mix/)\n\n### Step 4\n\n- work in progress\n\n### Appendix\n\n- by now the latency of this is way to high (5 seconds)\n- you have to manually change the IP adresses in the script \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmaier-dev%2Faudio-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmaier-dev%2Faudio-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmaier-dev%2Faudio-stream/lists"}