Skip to content

Commit

Permalink
Merge pull request #1 from dyte-in/fix/capps-3042-aws-transcribe-changes
Browse files Browse the repository at this point in the history
fix(build): type dependency was causing build failure for server
  • Loading branch information
ravindra-dyte authored Jul 6, 2023
2 parents 0654cc6 + ca11e6d commit bdc3dc1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Once done, download the key containing your accessKeyId, secretAccessKey from th

To keep things simple, in this repo, you will be asked to put keys in .env file. Please alter the code as per the security standards of your application.

<b>Note:</b> Without having accessKeyId & secretAccessKey, this repo may not work properly.
<b>Note:</b> Without having accessKeyId & secretAccessKey, this repo may not work, locally.


# How to use
Expand Down
2 changes: 1 addition & 1 deletion client/src/AWSTranscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class AWSTranscribe {
transcript = decodeURIComponent(escape(transcript));

if (this.translate) {
const translationResponse = await fetch(`${this.translationEndpoint}?sourceLanguageCode=${this.source}&targetLanguageCode=${this.target}&text=${transcript}`);
const translationResponse = await fetch(`${this.translationEndpoint}?sourceLanguageCode=${this.source}&targetLanguageCode=${this.target}&text=${encodeURIComponent(transcript)}`);
transcript = (await translationResponse.json()).data.translatedText;
}

Expand Down
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"query-string": "^6.0.0"
},
"devDependencies": {
"@types/cors": "^2.8.13",
"@types/express": "^4.17.13",
"@types/query-string": "^6.3.0",
"ts-node": "^10.8.2",
Expand Down

0 comments on commit bdc3dc1

Please sign in to comment.