{"id":18352739,"url":"https://github.com/membraneframework/membrane_wav_plugin","last_synced_at":"2025-04-06T11:33:03.485Z","repository":{"id":39995451,"uuid":"388777515","full_name":"membraneframework/membrane_wav_plugin","owner":"membraneframework","description":"Plugin providing elements handling audio in WAV file format.","archived":false,"fork":false,"pushed_at":"2024-03-20T15:11:05.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T22:33:41.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/membraneframework.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-23T11:22:50.000Z","updated_at":"2022-11-28T09:56:25.000Z","dependencies_parsed_at":"2023-01-23T08:45:38.838Z","dependency_job_id":"628b9e35-a85b-4eb0-bb74-43920cd5143a","html_url":"https://github.com/membraneframework/membrane_wav_plugin","commit_stats":{"total_commits":63,"total_committers":10,"mean_commits":6.3,"dds":0.7777777777777778,"last_synced_commit":"fcc733e4fda359cb5f7c280bea5f997807d82699"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":"membraneframework/membrane_template_plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_wav_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_wav_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_wav_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_wav_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membraneframework","download_url":"https://codeload.github.com/membraneframework/membrane_wav_plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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":"2024-11-05T21:37:07.141Z","updated_at":"2025-04-06T11:33:03.122Z","avatar_url":"https://github.com/membraneframework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membrane WAV Plugin\n\n[![Hex.pm](https://img.shields.io/hexpm/v/membrane_wav_plugin.svg)](https://hex.pm/packages/membrane_wav_plugin)\n[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_wav_plugin)\n[![CircleCI](https://circleci.com/gh/membraneframework/membrane_wav_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_wav_plugin)\n\nPlugin providing elements handling audio in WAV file format.\n\nIt is part of [Membrane Multimedia Framework](https://membraneframework.org).\n\n## Installation\n\nThe package can be installed by adding `membrane_wav_plugin` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:membrane_wav_plugin, \"~\u003e 0.10.1\"}\n  ]\nend\n```\n \n## Parser\n\nThe Parser requires a WAV file on the input and provides a raw audio in uncompressed, PCM format on\nthe output.\n\nParsing steps:\n\n- Reading WAV header\n- Extracting audio metadata and sending it through a pad to the next element\n- Sending only audio samples to the next elements\n\nIt can parse only uncompressed audio.\n\n## Serializer\n\nThe Serializer adds WAV header to the raw audio in uncompressed, PCM format.\n\n### Warning\n\nThe Serializer creates header with invalid blocks which depend on the file size. You can bypass this\nusing `Membrane.File.Sink` to save the file or fixing the header afterwards with `Membrane.WAV.Postprocessing`\nif you need to use any other sink.\n\n## Sample usage\n\n```elixir\ndefmodule Mixing.Pipeline do\n  use Membrane.Pipeline\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    spec = child(:file_src, %Membrane.File.Source{location: \"/tmp/input.wav\"})\n      |\u003e child(:parser, Membrane.WAV.Parser)\n      |\u003e child(:converter, %Membrane.FFmpeg.SWResample.Converter{\n        input_stream_format: %Membrane.RawAudio{channels: 1, sample_rate: 16_000, sample_format: :s16le},\n        output_stream_format: %Membrane.RawAudio{channels: 2, sample_rate: 48_000, sample_format: :s16le}\n      })\n      |\u003e child(:serializer, Membrane.WAV.Serializer)\n      |\u003e child(:file_sink, %Membrane.File.Sink{location: \"/tmp/output.wav\"})\n\n    {[spec: spec], %{}}\n  end\nend\n```\n\n## Copyright and License\n\nCopyright 2021, [Software Mansion](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane)\n\n[![Software Mansion](https://logo.swmansion.com/logo?color=white\u0026variant=desktop\u0026width=200\u0026tag=membrane-github)](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane)\n\nLicensed under the [Apache License, Version 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_wav_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembraneframework%2Fmembrane_wav_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_wav_plugin/lists"}