[
https://issues.apache.org/jira/browse/GUACAMOLE-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17223468#comment-17223468
]
Mike Jumper commented on GUACAMOLE-1201:
----------------------------------------
{quote}
I found that createScriptProcessor() and onaudioprocess() WebAudio APIs used in
AudioRecorder.js deprecated.
https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor
Maybe the audio input issues are related to this?
{quote}
No, unfortunately not. This also would not account for the fact that some
Windows applications are able to record sound correctly. If this were the
issue, all audio recorded via Guacamole would be failing identically.
I've been looking into this behavior off-and-on at my day job:
https://jira.glyptodon.com/browse/GLEN-242
Findings so far are:
* The audio captured by the web application is correct. When received data on
the Guacamole server is dumped into a file and played back, it is exactly what
is expected.
* The audio data sent by guacd is correct. Audio data is sent in the format
negotiated with the RDP server, and capturing the sent data to a file on the
Guacamole server reveals exactly what would be expected (it plays back
accurately).
* The issues with quality are application-specific:
** Some applications (Audacity) produce a recording with quality and duration
issues that look like buffer underruns. Comparing the raw recorded data from
Audacity against the data sent to the RDP server reveals that it matches ...
except that some samples are mysteriously missing.
** Some applications (Windows' audio recorder) work perfectly.
* The issues with quality are driver-specific:
** While Audacity produces an incorrect recording with the default settings, it
suddenly produces a correct recording if the "WASAPI" driver is used instead of
"MME" or "DirectSound".
It's unclear what could possibly be happening on the Guacamole side to cause
this behavior ... except that it must be _something_.
> Audio Input issues - Recording at an incorrect rate and Having much noise
> -------------------------------------------------------------------------
>
> Key: GUACAMOLE-1201
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1201
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-client, guacamole-server
> Affects Versions: 1.0.0, 1.1.0, 1.2.0
> Environment: FreeRDP 2.2.0, Apache Guacamole Server 1.3.0, Apache
> Guacamole Client 1.3.0
> Reporter: Jimmy
> Priority: Minor
> Attachments: adobe-audition-crash-1.png, adobe-audition-crash-2.png,
> audacity-recorded-time.png, ms-voice-recorder.png
>
>
> I found some audio input issues when using Audacity and Adobe Audition.
> The test environment follows as below:
> * *FreeRDP*: stable-2.0
> * *Apache* *Guacamole* *Server*: staging/1.3.0
> * *Apache Guacamole Client*: staging/1.3.0
> * *Remote Server*: Windows 10 64 bit Version 2004 (OS Build 19041.572)
> * Ubuntu 18.04 64 bit
> * Audacity 2.3.3
> * Adobe Audition 2020
>
> The test case follows as below:
> # Connect to the remote server (Windows 10, 64bit) over the Apache Guacamole
> Client.
> # In the remote server, run Audacity.
> # In Audacity, click the record button and start to record the audio.
> # In Audacity, after 10 seconds, click the stop button.
> # In Audacity, click the play button.
>
> In step 5, we can see the following issues:
> # The recording time is 10.5 seconds, but the actual recorded time is about
> 7.5 seconds. (see 'audacity-recorded-time.png' image.)
> # The recorded audio has a lot of noise.
> FYI: When using Adobe Audition, the crash issue frequently occurs. (see
> 'adobe-audition-crash.png' image)
>
> The weird things follow as below:
> * When performing the above test case by using xfreerdp (2.2.0, c72055d74),
> we can't see the above two issues in Audacity.
> * When performing the above test case by using mstsc (10.0.18362), we can't
> see the above two issues in Audacity.
> Especially, when using the Apache Guacamole Server & Client, we can't see the
> above two issues in Microsoft Voice Recorder. (see 'ms-voice-recorder.png'
> image)
>
> For these audio input issues, I researched the followings:
> *
> [http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/audio-support-in-RDP-td7508.html]
> * https://issues.apache.org/jira/browse/GUACAMOLE-236
> * https://issues.apache.org/jira/browse/GUACAMOLE-228
> * [https://jira.glyptodon.com/browse/GUAC-1511]
>
> But I didn't get any solution and workaround.
>
> *Please let me know some solution or workaround to fix these issues.*
> Thanks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)