How to redirect from Audio Output to Mic Input using PulseAudio?

后端 未结 1 1018
无人及你
无人及你 2021-01-01 20:23

I\'m working on a mobile app for Maemo/MeeGo and Maemo uses PulseAudio. I want to play a mp3 to caller (and cancel the mic when doing it, and not to listen caller, everythin

相关标签:
1条回答
  • 2021-01-01 20:45

    The manuals for pactl and pacmd are readily available if you give it a search. I found them here:

    pactl

    pacmd (pulse-cli-syntax)

    I think you are interested in the following excerpt from the pactl manual:

    move-sink-input ID SINK : Move the specified playback stream (identified by its numerical index) to the specified sink (identified by its symbolic name or numerical index).

    You should be able to use pactl list sink-inputs, pactl list source-outputs, pactl list sinks, and pactl list sources combined with some grep and/or sed or something of that nature to programmatically determine the correct stream and sink.

    0 讨论(0)
提交回复
热议问题