Commit 75ab1911 authored by Navodya Pasqual's avatar Navodya Pasqual

Lipsync updated

parent 62b67495
...@@ -5,21 +5,26 @@ const AWS = require('aws-sdk'); ...@@ -5,21 +5,26 @@ const AWS = require('aws-sdk');
fs = require('fs'); fs = require('fs');
const config = require('../../config/digitalHuman/config'); const config = require('../../config/digitalHuman/config');
// Configuring projectID, SessionID and Language code
const projectId = config.googleProjectID const projectId = config.googleProjectID
const sessionId = config.dialogFlowSessionID const sessionId = config.dialogFlowSessionID
const languageCode = config.dialogFlowSessionLanguageCode const languageCode = config.dialogFlowSessionLanguageCode
// Credentials for Amazon Polly // Credentials for Amazon Polly
const Polly = new AWS.Polly({ const Polly = new AWS.Polly({
// Region of AWS polly service
region: 'us-west-2', region: 'us-west-2',
// AccesskeyID of AWS polly service
accessKeyId: 'AKIAWJCX4TSYJQYA5O5H', accessKeyId: 'AKIAWJCX4TSYJQYA5O5H',
// Secret Access Key
secretAccessKey: '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' secretAccessKey: 'Wg6zHy15QjZv4jHx2+YokuzWDLzW975hbljcVhab'
}) })
// Credentials for dialogflow // Credentials for dialogflow
const credentials = { const credentials = {
// Client email of dialog flow
client_email: config.googleClientEmail, client_email: config.googleClientEmail,
// Private key of dialog flow
private_key: config.googlePrivateKey private_key: config.googlePrivateKey
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment