### Add Membrane WAV Plugin to Dependencies Source: https://hexdocs.pm/membrane_wav_plugin Add `membrane_wav_plugin` to your project's dependencies in `mix.exs` to install the package. ```elixir def deps do [ {:membrane_wav_plugin, "~> 0.10.1"} ] end ``` -------------------------------- ### Sample WAV Processing Pipeline Source: https://hexdocs.pm/membrane_wav_plugin Example of a Membrane pipeline that reads a WAV file, parses it, converts the audio format, serializes it back to WAV, and saves it to a new file. ```elixir defmodule Mixing.Pipeline do use Membrane.Pipeline @impl true def handle_init(_ctx, _opts) do spec = child(:file_src, %Membrane.File.Source{location: "/tmp/input.wav"}) |> child(:parser, Membrane.WAV.Parser) |> child(:converter, %Membrane.FFmpeg.SWResample.Converter{ input_stream_format: %Membrane.RawAudio{channels: 1, sample_rate: 16_000, sample_format: :s16le}, output_stream_format: %Membrane.RawAudio{channels: 2, sample_rate: 48_000, sample_format: :s16le} }) |> child(:serializer, Membrane.WAV.Serializer) |> child(:file_sink, %Membrane.File.Sink{location: "/tmp/output.wav"}) {[spec: spec], %{}} end end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.