{"id":14994719,"url":"https://github.com/joldibaev/silicon-audio-wave","last_synced_at":"2025-09-25T15:30:49.544Z","repository":{"id":58218474,"uuid":"530682990","full_name":"joldibaev/silicon-audio-wave","owner":"joldibaev","description":"Very simple audio wave system from Silicon","archived":false,"fork":false,"pushed_at":"2024-11-21T13:56:31.000Z","size":2304,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T17:11:02.937Z","etag":null,"topics":["angular","audio","audio-visualizer","audio-wave","player","silicon"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/audio-wave","language":"TypeScript","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/joldibaev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-30T14:01:19.000Z","updated_at":"2024-11-26T09:15:57.000Z","dependencies_parsed_at":"2024-09-25T00:34:06.552Z","dependency_job_id":null,"html_url":"https://github.com/joldibaev/silicon-audio-wave","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.26086956521739135","last_synced_commit":"3ae569fadfceb52edfd3ed40b8719f11b66b6552"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joldibaev%2Fsilicon-audio-wave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joldibaev%2Fsilicon-audio-wave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joldibaev%2Fsilicon-audio-wave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joldibaev%2Fsilicon-audio-wave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joldibaev","download_url":"https://codeload.github.com/joldibaev/silicon-audio-wave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234207677,"owners_count":18796297,"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":["angular","audio","audio-visualizer","audio-wave","player","silicon"],"created_at":"2024-09-24T16:08:21.530Z","updated_at":"2025-09-25T15:30:49.527Z","avatar_url":"https://github.com/joldibaev.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Media"],"readme":"# Audio Wave for Angular 13+\n\nVery simple audio wave system\n\n## Screen\n![alt text](https://github.com/joldibaev/silicon-audio-wave/raw/master/public/demo2.png)\n\n## Installation\n\nInstall the npm package.\n\n\tnpm i ngx-audio-wave --save\n\nImport module:\n\n```ts\nimport {NgxAudioWaveModule} from \"ngx-audio-wave\";\n\n@NgModule({\n  imports: [NgxAudioWaveModule]\n})\n```\n\n## Usage\n\n```ts\naudioSrc = 'https://cdn.freesound.org/previews/219/219167_3162775-lq.ogg';\n```\n\n```html\n\u003csection\u003e\n  \u003cdiv\u003eplayed percent: {{ngxAudioWave.playedPercent()}} ({{ngxAudioWave.exactPlayedPercent()}})\u003c/div\u003e\n  \u003cdiv\u003ecurrent time: {{ngxAudioWave.currentTime()}} ({{ngxAudioWave.exactCurrentTime()}})\u003c/div\u003e\n\n  \u003cngx-audio-wave\n    #ngxAudioWave\n    audioSrc=\"https://cdn.freesound.org/previews/219/219167_3162775-lq.ogg\"\n  \u003e\u003c/ngx-audio-wave\u003e\n\n  \u003cdiv\u003eduration: {{ngxAudioWave.duration()}} ({{ngxAudioWave.exactDuration()}})\u003c/div\u003e\n\u003c/section\u003e\n```\n\n## Properties\n\n```html\n\u003c!-- rounded --\u003e\n\u003cngx-audio-wave [rounded]=\"false\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\n\u003c!-- color --\u003e\n\u003cngx-audio-wave color=\"#ee2133\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\n\u003c!-- isLoading --\u003e\n\u003csection\u003e\n  \u003cngx-audio-wave #audioRef color=\"#ee2133\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n  @if(!audioRef.isLoading()){\n    \u003cdiv\u003eduration: {{ngxAudioWave.duration() | toTimer}} (no duration while loading)\u003c/div\u003e\n  }\n  \u003cdiv\u003eduration: {{ngxAudioWave.duration() | toTimer}} (zero will be display while loading)\u003c/div\u003e\n\u003c/section\u003e\n\n\u003c!-- height --\u003e\n\u003cngx-audio-wave [height]=\"50\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\u003cngx-audio-wave [height]=\"100\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\u003cngx-audio-wave [height]=\"10\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\n\u003c!-- gap --\u003e\n\u003cngx-audio-wave [gap]=\"1\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\u003cngx-audio-wave [gap]=\"2\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\u003cngx-audio-wave [gap]=\"9\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\n\u003c!-- error will be displayed, cause 404 --\u003e\n\u003cngx-audio-wave audioSrc=\"assets/no_file.mp3\"\u003e\u003c/ngx-audio-wave\u003e\n```\n\n## Custom btn\n\n### One action btn\n\n```html\n\u003cngx-audio-wave #audioRef1 [hideBtn]=\"true\" audioSrc=\"assets/voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\u003cbutton (click)=\"audioRef1.play()\"\u003ePlay\u003c/button\u003e\n\u003cbutton (click)=\"audioRef1.pause()\"\u003ePause\u003c/button\u003e\n```\n\n### Toggle btn\n```html\n  \u003cb\u003eToggle btn (is pause: {{ audioRef2.isPaused() }})\u003c/b\u003e\n\u003cngx-audio-wave #audioRef2 [hideBtn]=\"true\" audioSrc=\"voice_29-06-2022_23-30-15.ogg\"\u003e\u003c/ngx-audio-wave\u003e\n\n@if (audioRef2.isPaused()) {\n\u003cbutton (click)=\"audioRef2.play()\"\u003ePlay\u003c/button\u003e\n} @else {\n\u003cbutton (click)=\"audioRef2.pause()\"\u003ePause\u003c/button\u003e\n}\n\u003cbutton (click)=\"audioRef2.stop()\"\u003eStop\u003c/button\u003e\n```\n\nor you can get access to The HTML ```\u003caudio\u003e``` element inside component\n```audioRef2.audio?.nativeElement```\n\nExample:\n```html\n@if(audioRef2.audio?.nativeElement?.paused) {\n    \u003cbutton (click)=\"audioRef1.play()\"\u003ePlay\u003c/button\u003e\n} @else {\n    \u003cbutton (click)=\"audioRef1.pause()\"\u003ePause\u003c/button\u003e\n}\n```\n#### WARNING: using this code will lead to [NG0100: ExpressionChangedAfterItHasBeenCheckedError]\n\n\n## Source\n\nhttps://github.com/joldibaev/silicon-audio-wave/tree/master/projects/ngx-audio-wave\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoldibaev%2Fsilicon-audio-wave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoldibaev%2Fsilicon-audio-wave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoldibaev%2Fsilicon-audio-wave/lists"}