dialogflow-javascript-client
dialogflow-javascript-client copied to clipboard
No microphone access using Javascript SDK
My project needs to access the device's microphone, and I am trying to achieve it using the Javascript SDK.
Here is the code as follows,
const streamClient = client.createStreamClient();
streamClient.onInit = function () {
console.log("Entered streamClient function");
streamClient.open();
};
The issue is that the streamClient
is not created because webkitAudioContext
is not defined. Why is this issue occuring? Is there a work around for this?
PS: I am able to send and receive text responses using the same SDK. So I guess it is only the microphone part of the SDK that has bugs.