noahsettersten commited on
Commit
8b51593
1 Parent(s): 489ce65

chore: Disable Membrane PortAudio plugin temporarily

Browse files
lib/medical_transcription_web/live/audio_live/index.ex CHANGED
@@ -51,9 +51,10 @@ defmodule MedicalTranscriptionWeb.AudioLive.Index do
51
  end
52
 
53
  defp transcription_pipeline(self_pid) do
54
- child(%Membrane.PortAudio.Source{channels: 1, sample_format: :f32le, sample_rate: 16_000})
55
- |> child(MedicalTranscription.Audio.MembraneFilter)
56
- |> child(%Membrane.Debug.Sink{
 
57
  handle_buffer: fn buffer ->
58
  buffer.payload |> dbg()
59
 
@@ -61,19 +62,4 @@ defmodule MedicalTranscriptionWeb.AudioLive.Index do
61
  end
62
  })
63
  end
64
-
65
- # defp playback_pipeline() do
66
- # child(%Membrane.File.Source{
67
- # location: Path.join(System.user_home(), "Dropbox/+Inbox/medasrdemo-Paul.mp3")
68
- # })
69
- # |> child(Membrane.MP3.MAD.Decoder)
70
- # |> child(%Membrane.FFmpeg.SWResample.Converter{
71
- # output_stream_format: %Membrane.RawAudio{
72
- # sample_format: :s16le,
73
- # sample_rate: 48000,
74
- # channels: 2
75
- # }
76
- # })
77
- # |> child(Membrane.PortAudio.Sink)
78
- # end
79
  end
 
51
  end
52
 
53
  defp transcription_pipeline(self_pid) do
54
+ # TODO: Re-enable these when we have the PortAudio source working on Fly.
55
+ # child(%Membrane.PortAudio.Source{channels: 1, sample_format: :f32le, sample_rate: 16_000})
56
+ # |> child(MedicalTranscription.Audio.MembraneFilter)
57
+ child(%Membrane.Debug.Sink{
58
  handle_buffer: fn buffer ->
59
  buffer.payload |> dbg()
60
 
 
62
  end
63
  })
64
  end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  end
mix.exs CHANGED
@@ -53,7 +53,7 @@ defmodule MedicalTranscription.MixProject do
53
  {:plug_cowboy, "~> 2.5"},
54
  {:audio_tagger, git: "https://github.com/headwayio/audio_tagger.git"},
55
  {:membrane_core, "~> 1.0"},
56
- {:membrane_portaudio_plugin, "~> 0.18.0"},
57
  {:membrane_file_plugin, "~> 0.16.0"},
58
  {:membrane_mp3_mad_plugin, "~> 0.18.2"},
59
  {:membrane_ffmpeg_swresample_plugin, "~> 0.19.1"}
 
53
  {:plug_cowboy, "~> 2.5"},
54
  {:audio_tagger, git: "https://github.com/headwayio/audio_tagger.git"},
55
  {:membrane_core, "~> 1.0"},
56
+ # {:membrane_portaudio_plugin, "~> 0.18.0"},
57
  {:membrane_file_plugin, "~> 0.16.0"},
58
  {:membrane_mp3_mad_plugin, "~> 0.18.2"},
59
  {:membrane_ffmpeg_swresample_plugin, "~> 0.19.1"}
mix.lock CHANGED
@@ -37,7 +37,6 @@
37
  "membrane_file_plugin": {:hex, :membrane_file_plugin, "0.16.0", "7917f6682c22b9bcfc2ca20ed960eee0f7d03ad31fd5f59ed850f1fe3ddd545a", [:mix], [{:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm", "b0727998f75a9b4dab8a2baefdfc13c3eac00a04e061ab1b0e61dc5566927acc"},
38
  "membrane_mp3_mad_plugin": {:hex, :membrane_mp3_mad_plugin, "0.18.2", "cc8748c195208b2c49ab6def652c92c20bce694c6b6dd0c9f79eb1a0558e3143", [:mix], [{:bundlex, "~> 1.3", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_common_c, "~> 0.16.0", [hex: :membrane_common_c, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_mpegaudio_format, "~> 0.3.0", [hex: :membrane_mpegaudio_format, repo: "hexpm", optional: false]}, {:membrane_precompiled_dependency_provider, "~> 0.1.0", [hex: :membrane_precompiled_dependency_provider, repo: "hexpm", optional: false]}, {:membrane_raw_audio_format, "~> 0.12.0", [hex: :membrane_raw_audio_format, repo: "hexpm", optional: false]}, {:unifex, "~> 1.1.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "6e6da1ccd201820894f9edbfa42f02d013a7ced74a34182bf1042e7eb9b97bf9"},
39
  "membrane_mpegaudio_format": {:hex, :membrane_mpegaudio_format, "0.3.0", "d4fee77fad9f953171c52acd6d53b6646cfc7fbb827c63caa7c6a1efeb86450a", [:mix], [], "hexpm", "dec903efd0086133402b44515d04301790832b4f39995747b0e712c8f966d50d"},
40
- "membrane_portaudio_plugin": {:hex, :membrane_portaudio_plugin, "0.18.3", "1c1df27aefb08142e7312d494cd1a571157c4c1c770562e9f8417f1cf5b9c976", [:mix], [{:bunch, "~> 1.5", [hex: :bunch, repo: "hexpm", optional: false]}, {:bundlex, "~> 1.3", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_common_c, "~> 0.16.0", [hex: :membrane_common_c, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_precompiled_dependency_provider, "~> 0.1.0", [hex: :membrane_precompiled_dependency_provider, repo: "hexpm", optional: false]}, {:membrane_raw_audio_format, "~> 0.12.0", [hex: :membrane_raw_audio_format, repo: "hexpm", optional: false]}, {:mockery, "~> 2.1", [hex: :mockery, repo: "hexpm", optional: false]}], "hexpm", "15a835f6f9255627b442889c4a1a5c4f8995c5405e8aa6a8d88da61445efbbbe"},
41
  "membrane_precompiled_dependency_provider": {:hex, :membrane_precompiled_dependency_provider, "0.1.1", "a0d5b7942f8be452c30744207f78284f6a0e0c84c968aba7d76e206fbf75bc5d", [:mix], [{:bundlex, "~> 1.4", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "87ad44752e2cf0fa3b31c5aac15b863343c2f6e0f0fd201f5ec4c0bcda8c6fa3"},
42
  "membrane_raw_audio_format": {:hex, :membrane_raw_audio_format, "0.12.0", "b574cd90f69ce2a8b6201b0ccf0826ca28b0fbc8245b8078d9f11cef65f7d5d5", [:mix], [{:bimap, "~> 1.1", [hex: :bimap, repo: "hexpm", optional: false]}, {:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm", "6e6c98e3622a2b9df19eab50ba65d7eb45949b1ba306fa8423df6cdb12fd0b44"},
43
  "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"},
 
37
  "membrane_file_plugin": {:hex, :membrane_file_plugin, "0.16.0", "7917f6682c22b9bcfc2ca20ed960eee0f7d03ad31fd5f59ed850f1fe3ddd545a", [:mix], [{:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm", "b0727998f75a9b4dab8a2baefdfc13c3eac00a04e061ab1b0e61dc5566927acc"},
38
  "membrane_mp3_mad_plugin": {:hex, :membrane_mp3_mad_plugin, "0.18.2", "cc8748c195208b2c49ab6def652c92c20bce694c6b6dd0c9f79eb1a0558e3143", [:mix], [{:bundlex, "~> 1.3", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_common_c, "~> 0.16.0", [hex: :membrane_common_c, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_mpegaudio_format, "~> 0.3.0", [hex: :membrane_mpegaudio_format, repo: "hexpm", optional: false]}, {:membrane_precompiled_dependency_provider, "~> 0.1.0", [hex: :membrane_precompiled_dependency_provider, repo: "hexpm", optional: false]}, {:membrane_raw_audio_format, "~> 0.12.0", [hex: :membrane_raw_audio_format, repo: "hexpm", optional: false]}, {:unifex, "~> 1.1.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "6e6da1ccd201820894f9edbfa42f02d013a7ced74a34182bf1042e7eb9b97bf9"},
39
  "membrane_mpegaudio_format": {:hex, :membrane_mpegaudio_format, "0.3.0", "d4fee77fad9f953171c52acd6d53b6646cfc7fbb827c63caa7c6a1efeb86450a", [:mix], [], "hexpm", "dec903efd0086133402b44515d04301790832b4f39995747b0e712c8f966d50d"},
 
40
  "membrane_precompiled_dependency_provider": {:hex, :membrane_precompiled_dependency_provider, "0.1.1", "a0d5b7942f8be452c30744207f78284f6a0e0c84c968aba7d76e206fbf75bc5d", [:mix], [{:bundlex, "~> 1.4", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "87ad44752e2cf0fa3b31c5aac15b863343c2f6e0f0fd201f5ec4c0bcda8c6fa3"},
41
  "membrane_raw_audio_format": {:hex, :membrane_raw_audio_format, "0.12.0", "b574cd90f69ce2a8b6201b0ccf0826ca28b0fbc8245b8078d9f11cef65f7d5d5", [:mix], [{:bimap, "~> 1.1", [hex: :bimap, repo: "hexpm", optional: false]}, {:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm", "6e6c98e3622a2b9df19eab50ba65d7eb45949b1ba306fa8423df6cdb12fd0b44"},
42
  "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"},