Confirmed users
35
edits
No edit summary |
No edit summary |
||
| Line 83: | Line 83: | ||
*A way a feeding audio from an input audio file audio input to the Peer Connection without having to use the GetUserMedia() API | *A way a feeding audio from an input audio file audio input to the Peer Connection without having to use the GetUserMedia() API | ||
</p> | </p> | ||
<p This sub-section explains various tools used to choose the right audio sink, record the audio played out and compute | <p> This sub-section explains various tools used to choose the right audio sink, record the audio played out and compute | ||
PESQ scores </p> | PESQ scores </p> | ||
#PulseAudio's pactl tool is used to find the right sink to play-out the audio produced by the remote Peer Connection. | |||
#PulseAudio's parec tool records mono channel audio played out at the sink in Signed Little Ending format at 16000 samples/sec. | |||
The output from the SOX tool is fed into SOX tool to generate .WAV version of the recorded audio and to trim silence at the beginning and end of the recorded audio file. <br> | #The output from the SOX tool is fed into SOX tool to generate .WAV version of the recorded audio and to trim silence at the beginning and end of the recorded audio file. <br> <br> | ||
<code> | <code> | ||
Command: | Command: | ||
| Line 94: | Line 94: | ||
<br> | <br> | ||
The recording is timed to match the length of the input audio file using SOX's trimming effects. | The recording is timed to match the length of the input audio file using SOX's trimming effects. | ||
#Finally PESQ is used to compute the quality scores between the input audio file (original) and the output audio file (recorded) <br> <br> | |||
<code> | <code> | ||
Command: | Command: | ||
PESQ +16000 <input-audio-file> <output-audio-file> | PESQ +16000 <input-audio-file> <output-audio-file> | ||
</code> | </code> | ||