generic_audio_examples¶
Examples for testing audio tests. It’s called “Audio Jack Codec”, “Smart Speaker Amplifier”, or “Speaker Amplifier” in AVL.
Inherit¶
AudioDiagnostic¶
pytest_name¶
AudioQuality¶
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "99" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "0" ]
wav_file
"/usr/local/factory/third_party/SPK48k.wav"
DSMCalibration¶
pytest_name¶
args¶
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "0" ]
HeadphoneManual¶
pytest_name¶
args¶
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "1" ]
check_headphone
true
require_headphone
true
ScanAudioCardName¶
pytest_name¶
args¶
device_data_key
"component.audio_card_name"
label
"Audio Card Name"
SpeakerChannel0DMic¶
Use the minimal volume_gain and lower frequency to protect ears in the examples. Use default volume_gain and frequency in production to achieve higher accuracy.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Dmic" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Dmic"
require_dongle
false
check_dongle
true
tests_to_conduct
[ { "max_frequency": 1000, "min_frequency": 500, "output_channels": [ 0 ], "threshold": 80, "type": "audiofun", "volume_gain": 1 } ]
SpeakerDMic¶
Use the minimal volume_gain and lower frequency to protect ears in the examples. Use default volume_gain and frequency in production to achieve higher accuracy.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Dmic" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Dmic"
require_dongle
false
check_dongle
true
tests_to_conduct
[ { "max_frequency": 1000, "min_frequency": 500, "threshold": 80, "type": "audiofun", "volume_gain": 1 } ]
SpeakerDMic2¶
Dmic2 is an alias of Rear Mic.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Dmic2" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Dmic2"
require_dongle
false
check_dongle
true
tests_to_conduct
[ { "max_frequency": 1000, "min_frequency": 500, "threshold": 80, "type": "audiofun", "volume_gain": 1 } ]
SpeakerDMicManual¶
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "99" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "0" ]
SpeakerDMicNoiseTest¶
Use the minimal volume_gain and lower frequency to protect ears in the examples. Use default volume_gain and frequency in production to achieve higher accuracy.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Dmic" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Dmic"
require_dongle
false
check_dongle
true
tests_to_conduct
[ { "amplitude_threshold": [ -0.9, 0.9 ], "duration": 2, "rms_threshold": [ null, 0.5 ], "type": "noise" } ]
SpeakerDMicSineWaveTest¶
Use the minimal volume_gain and lower frequency to protect ears in the examples. Use default volume_gain and frequency in production to achieve higher accuracy.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Dmic" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Dmic"
require_dongle
false
check_dongle
true
tests_to_conduct
[ { "freq_threshold": 300, "rms_threshold": [ 0.08, null ], "type": "sinewav" } ]
SpeakerExtmic¶
Use the minimal volume_gain and lower frequency to protect ears in the examples. Use default volume_gain and frequency in production to achieve higher accuracy.
pytest_name¶
args¶
input_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Extmic" ]
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "Speaker" ]
mic_source
"Extmic"
require_dongle
false
check_dongle
false
tests_to_conduct
[ { "max_frequency": 1000, "min_frequency": 500, "threshold": 80, "type": "audiofun", "volume_gain": 1 } ]
SpeakerManual¶
pytest_name¶
args¶
output_dev
[ "eval! device.component.audio_card_name or constants.audio.card_name", "0" ]
check_headphone
true
require_headphone
false