Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux : Virtual device creation and routing microphone audio via a python script #2

Merged
merged 10 commits into from
Jan 5, 2021

Conversation

arushsharma24
Copy link
Contributor

Created a folder 'linux' which contains the following files:-

  1. dynopii.sh : a shell script to create a virtual device named "dynopii" if it does not exist already, and stream microphone audio input into it.
  2. a README.md on how to use the script

@arushsharma24
Copy link
Contributor Author

arushsharma24 commented Jan 5, 2021

Update:
Now instead of a shell script, we have a python script (as originally planned for this project) which should fulfill all requirements on a linux system.
Commit : 619e3dd adds

  1. dynopii.py : A python script that pipes audio from arecord to aplay, and this recorded audio can be further processed if so desired. Also runs the scripts dynopii.sh and close.sh
  2. dynopii.sh : Creates the null-sink-module (basically our virtual device) named dynopii and opens pavucontrol.
  3. close.sh : Closes the playback, the virtual device and the script. Is run automatically when the python script dynopii.py is quit using Ctrl-C.

Commit f7e9600 updates README accordingly

@arushsharma24 arushsharma24 changed the title Linux : Virtual device creation and microphone audio routing Linux : Virtual device creation and microphone audio routing through python script Jan 5, 2021
@arushsharma24 arushsharma24 changed the title Linux : Virtual device creation and microphone audio routing through python script Linux : Virtual device creation and routing microphone audio via a python script Jan 5, 2021
linux/README.md Outdated
@@ -0,0 +1,17 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

linux/README.md Outdated
#
## Requirements:-
pavucontrol, python module subprocesss, audioop
#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

In your conferencing software, select '_Monitor of dynopii_' as your audio input device.

And your microphone audio is now routed to the conference!
#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

linux/dynopii.sh Outdated
Comment on lines 24 to 26
#arecord -f cd - | python wire.py | aplay - Will use this when I can get piping working.
#python hope.py | aplay -f cd This one should work but I don't know how to work with the subprocess module
#arecord -f cd - | aplay -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these lines relevant? If yes, please add proper introduction comments. If not, please remove

@arushsharma24
Copy link
Contributor Author

arushsharma24 commented Jan 5, 2021

Update :
Included the code of all the shell scripts into the python file so there is no extra file (in c59265a and 598ddad), everything bundled inside the single dynopii.py file.
Also removed the superfluous lines as suggested from the readme as well. (fc2fe7f)

Thank you for reviewing and hope you can give this a look again whenever possible :)

@arushsharma24 arushsharma24 requested a review from xprilion January 5, 2021 18:40
@xprilion xprilion merged commit 9d1d034 into dynopii:main Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants