Closed trivikr closed 3 years ago
N/A
The original pcmEncode function was picked up from: https://github.com/amazon-archives/amazon-transcribe-websocket-static/blob/6a0b97f1c667b649c31cd9b550c37795a5c7ce25/lib/audioUtils.js#L1-L10
This PR cleans it up by using let/const instead of var, and removing redundant variables.
Verified that real-time audio transcription works.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue
N/A
Description
The original pcmEncode function was picked up from: https://github.com/amazon-archives/amazon-transcribe-websocket-static/blob/6a0b97f1c667b649c31cd9b550c37795a5c7ce25/lib/audioUtils.js#L1-L10
This PR cleans it up by using let/const instead of var, and removing redundant variables.
Testing
Verified that real-time audio transcription works.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.