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

Add --bits option for explicitely setting recording bit depth of 16, 24 #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lumpidu
Copy link

@lumpidu lumpidu commented Jun 29, 2024

This arguments gives an explicit possibility to select the recording bit depth to either 16 or 24 bits. For 24 bits, we use dtype='float32' for the sounddevice.InputStream() call.

Tested on OS-X and Python 3.12

lumpidu added 3 commits June 29, 2024 13:46
This arguments gives an explicit possibility to select the
recording bit depth to either 16 or 24 bits. For 24 bits, we use
dtype='float32' for the sounddevice.InputStream() call.

Tested on OS-X and Pytnon 3.12

Signed-off-by: Daniel Schnell <dschnell@grammatek.com>
To improve usability, add possibility to use the audio device name
additionally to the audio device index for options --audio-in/--audio-out.
In case the device name is not found, the script is exited.

Additionally provide a convenience function --device-name to set the
input/output audio device name at the same time, in case the same device
index can be used for input/output (as is the case for many external audio
interfaces) or in case it's the same name for input AND output but
different device indices (as is the case for some external headphones).

Furthermore, require that either --audio-in/--audio-out OR
--audio-device is set and bump out with a list of detected devices and an
error message if not provided.

Signed-off-by: Daniel Schnell <dschnell@grammatek.com>
Start small test recording to verify the device & settings are usable for
recording _before_ a recording session begins.

Signed-off-by: Daniel Schnell <dschnell@grammatek.com>
lumpidu added 4 commits July 10, 2024 14:36
The parameters for the script 'intensity_norm_script.py' were:

--mean 3 --std_dev 1.3 --min_val 1 --max_val 5

Signed-off-by: Daniel Schnell <dschnell@grammatek.com>
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.

1 participant