Created
April 8, 2020 12:17
-
-
Save savelee/fcd1c22b55e2b64420a10938584dacba to your computer and use it in GitHub Desktop.
Dialogflow Streaming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1) | |
sessionId = uuid.v4(); | |
// 2) | |
sessionClient = new df.SessionsClient(); | |
sessionPath = sessionClient.sessionPath(projectId, sessionId); | |
// 3) | |
request = { | |
session: sessionPath, | |
queryInput: { | |
// 4) | |
audioConfig: { | |
sampleRateHertz: sampleRateHertz, | |
encoding: encoding, | |
languageCode: languageCode | |
}, | |
singleUtterance: singleUtterance | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment