Audio: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
When using audio in your experiment, especially when presenting time-critical stimuli, special care should be taken to optimize the audio settings on multiple levels (hardware, OS, script), as many things can go wrong along the way. | When using audio in your experiment, especially when presenting time-critical stimuli, special care should be taken to optimize the audio settings on multiple levels (hardware, OS, script), as many things can go wrong along the way. | ||
| Line 6: | Line 5: | ||
==Recording== | ==Recording== | ||
When recording audio for stimuli material or as input for your experiment, please: | When recording audio for stimuli material or as input for your experiment, please: | ||
* Use a high quality microphone, with a [https://www.audio-technica.com/en-us/support/a-brief-guide-to-microphones-whats-the-pattern/ polar pattern] suitable for your application. | * Use a high quality [[Microphone|microphone]], with a [https://www.audio-technica.com/en-us/support/a-brief-guide-to-microphones-whats-the-pattern/ polar pattern] and form-factor suitable for your application. | ||
* Use a high quality recorder or audio interface, capable of recording at 24bit and 48kHz or higher. | * Use a high quality recorder or audio interface, capable of recording at 24bit and 48kHz or higher. | ||
* Place the microphone at an appropriate distance from your subject. Set the levels so the audio does not clip (exceeding maximum volume). | * Place the microphone at an appropriate distance from your subject. Set the levels so the audio does not clip (exceeding maximum volume). | ||
| Line 19: | Line 18: | ||
We recommend using the following export settings: | We recommend using the following export settings: | ||
* File format: .wav (PCM). | * File format: .wav (PCM). | ||
* Sample Frequency: | * Sample Frequency: 48kHz. | ||
* Bit depth: 16 bit. | * Bit depth: 16 bit. | ||
The [[Lab Computer]] audio output is also set to 16 bit, | The [[Lab Computer]] audio output is also set to 16 bit, 48kHz. We found that this is good enough for most applications; higher settings will increase file size with limited perceivable quality gains. | ||
When using multiple audio files in your experiment, make sure they all use the same settings for consistent playback in your experiment. | When using multiple audio files in your experiment, make sure they all use the same settings for consistent playback in your experiment. | ||
| Line 29: | Line 28: | ||
==Windows Settings== | ==Windows Settings== | ||
Windows | Windows has a habit of automatically enabling '''audio enhancements''' when connecting new speakers or headphones. These "enhancements" can distort your audio and cause timing issues. Therefore, please make sure they are turned off: | ||
# Right click sound icon on taskbar (next to clock) -> Sounds | # Right click sound icon on taskbar (next to clock) -> Sounds | ||
# Goto Playback tab. Select your audio output device and click "Properties" | # Goto Playback tab. Select your audio output device and click "Properties" | ||
| Line 60: | Line 59: | ||
audio.close() | audio.close() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | |||
* [[Audio Interfaces]] | |||