{"id":25349533,"url":"https://github.com/agehama/minimal_spectrum_analyzer","last_synced_at":"2025-11-08T06:04:45.106Z","repository":{"id":187601919,"uuid":"362989962","full_name":"agehama/minimal_spectrum_analyzer","owner":"agehama","description":"A tiny, embeddable command-line sound visualizer","archived":false,"fork":false,"pushed_at":"2022-04-14T11:02:26.000Z","size":477,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T03:07:26.886Z","etag":null,"topics":["command-line","linux","spectrum-analyzer","terminal","visualizer","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agehama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-30T01:12:56.000Z","updated_at":"2024-10-07T11:00:44.000Z","dependencies_parsed_at":"2023-08-11T11:13:19.573Z","dependency_job_id":"8336745e-8282-4af4-9985-40b7be6d29b7","html_url":"https://github.com/agehama/minimal_spectrum_analyzer","commit_stats":null,"previous_names":["agehama/minimal_spectrum_analyzer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agehama%2Fminimal_spectrum_analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agehama%2Fminimal_spectrum_analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agehama%2Fminimal_spectrum_analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agehama%2Fminimal_spectrum_analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agehama","download_url":"https://codeload.github.com/agehama/minimal_spectrum_analyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238878946,"owners_count":19545853,"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":["command-line","linux","spectrum-analyzer","terminal","visualizer","windows"],"created_at":"2025-02-14T16:43:20.482Z","updated_at":"2025-10-29T19:30:49.914Z","avatar_url":"https://github.com/agehama.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minimal_spectrum_analyzer\nA tiny, embeddable command-line sound visualizer.\n\nSupports Linux (PulseAudio) and Windows (WASAPI).\n\n![analyzer_image](https://user-images.githubusercontent.com/4939010/117427977-8f402900-af60-11eb-9d38-c56b4ce0216c.gif)\n\n## Building\n\n### Ubuntu\n\n- C++ compiler that supports C++17\n- CMake\n- PulseAudio development library\n\nInstall required packages.\n\n```\n$ sudo apt install cmake libpulse-dev\n```\n\nClone and build source code.\n\n```\n$ git clone --recursive https://github.com/agehama/minimal_spectrum_analyzer.git\n$ mkdir build\n$ cd build\n$ cmake ../minimal_spectrum_analyzer .\n$ make\n```\n\n### Windows\n\nDownload and install prerequisites.\n- Visual Studio 2019 https://visualstudio.microsoft.com/downloads/\n- CMake https://cmake.org/download/\n- Git for Windows https://gitforwindows.org/\n\nClone source code with Git.\n\n```\n$ git clone --recursive https://github.com/agehama/minimal_spectrum_analyzer.git\n```\n\nConfigure and Generate Visual Studio project.\n![image](https://user-images.githubusercontent.com/4939010/117149605-541fe780-adf2-11eb-8fb1-2e36ca4f36c3.png)\n\nOpen generated project and build with Visual Studio.\n\n\n## Embedding\nTo embed the spectrum display into other software, you can receive the text via standard output.\n\n![embedding_image](https://user-images.githubusercontent.com/4939010/117443945-c409ab80-af73-11eb-83d5-8f7376a27261.gif)\n\nHere is an example of how to pass it through a temporary file.\n\nFirst, start a background process that redirects the stdout of `analyzer` to a log file.\nMake sure to turn off the axis display and set the delimiter to LF.\n```\n$ analyzer --axis off --line_feed LF \u003e analyzer_log \u0026\n```\n\nThen `analyzer_log` will contain time-series spectral data separated by LF, as shown below.\n```\n$ tail -n 10 ./analyzer_log\n⣀⣠⣶⣾⣿⣷⣦⣤⣀⣠⣄⡀⢀⡀⣠⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀⡀⣀⠀⠀⠀\n⣠⣤⣶⣾⣿⣷⣦⣤⣀⣀⣀⡀⢀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀⠀⣀⠀⠀⠀\n⣤⣴⣶⣶⣶⣦⣤⣤⣀⣀⢀⡀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣴⣶⣶⣶⣶⣦⣤⣤⣀⣀⢀⠀⠀⠀⣀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣴⣶⣶⣶⣶⣦⣤⣤⣀⢀⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣴⣶⣶⣶⣶⣤⣤⣄⣀⠀⠀⠀⠀⠀⣀⠀⠀⡀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣴⣶⣶⣶⣶⣤⣤⣄⣀⠀⠀⠀⠀⠀⣀⠀⠀⡀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣴⣶⣶⣶⣶⣦⣤⣤⣀⠀⠀⠀⠀⠀⣀⠀⢀⡀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀\n⣤⣴⣶⣶⣶⣦⣤⣤⣀⣀⠀⠀⢀⣀⣤⣀⣀⡀⢀⣀⡀⢀⡀⣀⢀⣀⣀⣀⣄⣀⣀⣀\n⣤⣤⣶⣶⣦⣤⣄⣤⣀⣀⡀⠀⣀⣠⣤⣤⣤⣀⣠⣄⣤⣠⣄⣤⣀⣤⣤⣠⣦⣤⣤⣤\n```\n\nThen, call `tail -n 1 analyzer_log` from shell, python, or any other environment you like to embed the spectrum display into your program.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagehama%2Fminimal_spectrum_analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagehama%2Fminimal_spectrum_analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagehama%2Fminimal_spectrum_analyzer/lists"}