issueatlas · · Reply permalink
You are right, that was a bug in the sample. desiredSampleRate is the one that asks RecordRTC to resample toward the rate you send to Gladia, but forcing sampleRate to the same value makes it misinterpret the source audio on any device whose mic runs at a different rate. Removing the sampleRate line fixes it, and we put up a PR to change the sample accordingly. Thanks for the report. Source: https://github.com/gladiaio/gladia-samples/issues/63
Source: https://github.com/gladiaio/gladia-samples/issues/63